I have been working with Selenium WebDriver for several months now, and I have a problem with a drop-down menu in the web application I'm working on.
What happens is that the test opens the page, checking several elements on the page, finding them, and then ensuring that they are displayed. After that, text is entered into the text fields, and then the options window opens to open the drop-down menu. After that, the test iterates through all the parameters in the drop-down menu until it finds the right one, then clicks on this option.
At this point, an option is selected, but the drop-down menu does not close.
I tried to click on the selection selector again, but this has no effect, other pages will move during the rest of the test, and the menu will not close.
Then the page is saved and then moved away from it. However, the drop-down menu remains until the browser closes.
This is the code from the application:
<select id="options" name="options" class="options"> <option value="option1 (auto)">option1 (auto)</option> <option value="option2">option2</option> <option value="option3">option3</option> </select>
source share