Can't click <select> option via WebDriver

Fixed Issue #7463647

Details

Author
Jason C.
Created
May 6, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14316
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Create a test page containing a <select> tag with some options:

<select id="sel">
    <option id="opt1" value="foo">Foo</option>
    <option id="opt2" value="bar" selected>Bar</option>
</select>

Find “opt1” and click it using WebDriver, or first find “sel” and click it to open the selector, then find and click "opt1". In both cases, the WebDriver server returns a failing response for the [opt1]/click request with an “UnknownError” message.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

    • Thank you for your feedback. Could you please include your code that is failing, it will help us investigate the issue. Having said that I would like to add that both SelectByIndex (C#) and selectByVisibleText(Java) methods worked on my end. Please confirm your webdriver version whether is insider or public and let me know if I am missing steps in the repro. 

      All the best,
      The MS Edge Team 

    • Hi, sorry for taking so long to get back to you. I’m using MS Edge 14366 with Selenium 2.53.1 and the current Insider MicrosoftWebDriver.exe. The process I’m using is this:

      1. Load a page containing the element

      bar

      2. Find the element with ID "d" -- this works
      3. Click the found element -- this works, and causes the select to open
      4. Find the element with ID "o1" -- this works
      5. Click the found element -- this causes Selenium to throw a rather uninformative exception "Unknown error (WARNING: The server did not provide any stacktrace information)"
      
      I get the same error when clicking the option whether I previously clicked the select element itself or not.
    • That looked better in the preview…

    • Second attempt…

      Hi, sorry for taking so long to get back to you. I’m using MS Edge 14366 with Selenium 2.53.1 and the current Insider MicrosoftWebDriver.exe. The process I’m using is this:

      1. Load a page containing a select element with ID “d” which contains 2 option elements, one with ID “o1” and one with ID “o2”
      2. Find the element with ID “d” – this works
      3. Click the found element – this works, and causes the select to open
      4. Find the element with ID “o1” – this works
      5. Click the found element – this causes Selenium to throw a rather uninformative exception "Unknown error (WARNING: The server did not provide any stacktrace information)"

      I get the same error when clicking the option whether I previously clicked the select element itself or not.

    • Thank you for the update. I was able to make selection through Webdriver (14366) on Windows Insider(14393) successfully. Could you please provide us the code you are using, this may help us to reproduce the issue.

      All the best,
      The MS Edge Team 

    • I’m no longer seeing the problem in Edge 14393 using WebDriver 14393. Using the same test case I do see the problem using Edge 14366 and WebDriver 14393, so something appears to have been fixed between the two versions of Edge.

    • Microsoft Edge Team

      Changed Status to “Fixed”

    • Thank you for the update. I will go ahead and close this bug as fixed for now, but please feel free to add your comment or create a new feedback if you see any inconsistency.

      All the best,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in