Forum Discussion
this is working - https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select ?
That proves that the standard list box works, and that the correct item is selected, when using ClickItem method.
The control that is not working for you, you need to find out exactly what sort of control it is - the UI may look like a standard list control, but the coding behind the scenes may be a wrapper class that mimics a list control. Therefore, ClickItem may not work for you.
The web application that I test, we use Bootstrap and some of the UI controls are wrapped around custom classes. In certain instances, ClickItem does not work for me. I may have to perform a Click, to show the dropdown list box, and then perform ClickItem on the actual dropdown list box.
Related Content
- 2 years ago
- 2 years ago
- 5 years ago