I'm working on some automation and I came across one dropdown where I'm having an issue to select an option.
Only way, I was able to get the element is trough IHTMLDocument3
:
$dropdown = $ie.Document.IHTMLDocument3_getElementsByName("searchTypeChoice")
This is limiting my options how to select an option, since I can't use
.Options.Selected = $true
or anything else. I found these questions:
- Powershell..select drop down menu from web page
- Select option on dropdown list for web ui testing automation in windows powershell
This is the element I'm talking about:
Do you have any suggestions? Or maybe another method how to get the dropdown in other way?