Selenium: Select Method with selectby index is not working for the Selenium 3.0.0-beta3

Created on 20 Sep 2016  路  13Comments  路  Source: SeleniumHQ/selenium

Meta -

OS: Windows 7
Selenium Version: 3.0.0-beta3, Eclipse Neon
Browser: Firefox48 with GECKODRIVER

Browser Version: 48.0.2

Expected Behavior - It should select the dropdown value as it was working in 2.53 version of selenium

Actual Behavior - not selecting the dropdown option.

Steps to reproduce -

selenium select issue

All 13 comments

I am not sure whether it is issue or not but I am facing this problem in selecting the drop-down value after upgraded to Selenium 3.0.0-beta3 from 2.53.1 in old version same script was running perfectly. Also attached the screenshot for the error.

I have experienced issues with trying to use the Select class with firefox 48.02 and Selenium 3.0.0-beta3. The page in question has a few textfields in a questionnaire and then a pulldown. In the automated test, I can see the textfields being filled in and then when coming to the pulldown, I see the textfields are cleared, which shouldn't happen as there is no element on the page to reset these fields. The test just hangs without throwing an exception. We are using selectByIndex() because the element doesn't use value attribute and use language properties files so selectByVisibleText() doesn't work as cleanly.

I am encountering the same issue on selenium beta 3 in Safari 10.

I have the same problem using Selenium 3.0.0-beta3 with geckodriver v0.10.0 and firefox browser version 49.0
Selectby Value and selectby visibleText are working fine instead.

A lot of the select issues in Firefox have been fixed in Firefox 49. If they are not working still, please reopen and please provide a concise reproducible test case and describe what results you are seeing and what results you expect.

See CONTRIBUTING.md

This is occurring for me today using selenium-java 3.0.1 in Firefox 49 and 50 and Windows 7, running through SauceLabs (thus not sure of the exact geckodriver version). Same tests pass using Chrome 54.

I am still facing the issue on Safari 10 browser with selenium 3.3.1 and am unable to select the value in drop down with selectbyindex or any other methods. Help please.

@vaishnavidesai we encountered the same months ago and it has totally blocked us from doing safaridriver automation. Not sure if this is a problem on the selenium side or driver implementation side. I filed an issue on the apple developer forum https://forums.developer.apple.com/message/184592#184592 but have never got a response only other idea i have is bugging an apple dev about it 馃槈 cc. @burg

I can provide a reproduceable repo/spec if needed.

Thanks for following up. If you find a solution for it or apple gets back please provide details here!
Thanks again.

Having the same issue - not able to select from dropdown on safari . Has anyone any ideas how to fix or overcome this problem?

overcoming now with javascript
element.ExecuteScript("document.getElementById('" + element.Id + "').value = " + optionName);

@svetikshark: the Select class in Java uses clicking on the

Please try it with STP 41's safaridriver and let me know if it still doesn't work.

-Brian

Having the same issue - not able to select from dropdown on Firefox.

Was this page helpful?
0 / 5 - 0 ratings