Closed Bug 1314671 Opened 9 years ago Closed 9 years ago

Unable to automate dropdown usage on Firefox.

Categories

(Firefox :: Untriaged, defect)

49 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1255955

People

(Reporter: ksarpong, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36 Steps to reproduce: Im running some automated browser tests using nightwatch.js ( An automated JavaScript Tool) but noticed that my sd-dropdown control does not work. You enter the postcode, the system checks if its valid then populates the drop down with addresses. I then click the dropdown and Im supposed to see all valid addresses. It works manually but when I use automation, noting happens when the dropdown is selected. When doen manually, it works fine but when automated, nothing happens. This works on IE and Chrome. Actual results: A click event is sent to the dropdown control, which should then show all valid addresses with that postcode. provided, the postcode is valid. In this case, nothing happens and I dont even get an error on the console. Expected results: clicking the dropdown should have shown me all the addresses linked to that postcode.
Additional information, I was using selenium server standalone 3.0.0- beta2 server.
Not a security bug. Andreas, can you help triage this into a Firefox/Selenium issue and ensure the right people look at it? Reporter: it would be useful if you provided more details about your setup / tests, like an example page or github repo or whatever, or a minimal testcase.
Group: firefox-core-security
Flags: needinfo?(ksarpong)
Flags: needinfo?(ato)
I wanted to test an online broadband speed checker site where the test case is as follows: - enter your postcode - dropdown is now populated with addresses as list items for that postcode - select a specific address from this dropdown. - click button - The site will go and fetch the latest speed details for that address. The markup is as follows : <sd-dropdown id="addresses" placeholder="Select address" class="addresses" item-formatter="function (e){var t=&quot;&quot;,n=[e.houseNumber,e.houseName,e.businessName,e.subBuildingName,e.street,e.locality,e.town];return n.forEach(function(e){t=r(t,e)}),t}"><select class="com-dropdown hidden"></select> In my test im using this Xpath to locate the element click('//sd-dropdown[@id="addresses"]') This works with IE and Chrome with no problems but not with Firefox. I dont even get an error that it could not locate element. I know recently I had to update to use the following, webdriver.gecko.driver" to get the latest selenium to work with the latest firefox and not sure if it has anything to do with this?
WFM with `document.evaluate('//sd-dropdown[@id="addresses"]', document, null, XPathResult.ANY_TYPE, null).iterateNext()` for comment 3.
Support for interaction with <select> elements was added in https://bugzilla.mozilla.org/show_bug.cgi?id=1255955.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(ksarpong)
Flags: needinfo?(ato)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.