FAQ
Hi,

As said you can use Select class to select values from drop downs. If
select class does not working, then use sendKeys(text to select);

Thanks,
http://seleniumtrainer.com/
On Wednesday, April 29, 2015 at 6:57:54 PM UTC+5:30, Bryan Kardisco wrote:

I'm attempting to select a drop-down box with the Firefox Driver and am
being told the element is hidden. However, when opening the URL the link
is there and can be clicked.

I am doing the following:


WebElement inputElement = driver
.findElement(
By.id("diningAvailabilityForm-searchTimeid-base"))
.findElement(By.id("searchTime-wrapper"))
.findElement(By.name("searchTime"));


Object obj = ((JavascriptExecutor) driver)
.executeScript("$(\".searchTime\").click()");


new Select(inputElement).selectByIndex(2);

Anything else I can do?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/412bee80-6472-4046-bde3-5ad4c12efd06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupselenium-users @
categoriesselenium
postedApr 29, '15 at 1:27p
activeApr 30, '15 at 6:37p
posts5
users5
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase