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?
--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.