Timeline for How to select option in a dropdown when the html-tag has a random id
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 15, 2020 at 11:20 | history | edited | JAINAM | CC BY-SA 4.0 |
added 2 characters in body
|
Sep 23, 2019 at 11:39 | comment | added | Majkl | During debugging, if test made a click on drop-down arrow I can see all options. But list is closed in the line var table = driver.FindElement(By.Id("advFilter")); And I got exception "OpenQA.Selenium.ElementNotInteractableException: 'element not interactable: Element is not currently visible and may not be manipulated" It is possible to write into the FIELD text box and search option in the list by letters, but I still can not select option. | |
Sep 20, 2019 at 18:12 | comment | added | Niels van Reijmersdal | While reading this answer stackoverflow.com/questions/9562853/… I would suspect the options to have the Text property filled. Your select has 14 options, that looks good, but maybe the page is still rendering? Maybe your test is to fast and the text hasnt been set yet? | |
Sep 20, 2019 at 18:09 | comment | added | Niels van Reijmersdal | You found the Select element though. I am not sure how the SelectElement class works internally. Did you try by value or index? See the documentation: seleniumhq.github.io/selenium/docs/api/dotnet/html/… | |
Sep 20, 2019 at 16:37 | comment | added | Majkl | I tried this solution, but there is no text value. So, I still can not select desired option. | |
Sep 20, 2019 at 11:38 | history | answered | Niels van Reijmersdal | CC BY-SA 4.0 |