hi
we have a local web application that has box like this and i want to click on it and choose between different options:
i use two option of css locating and xpath locating
this is the element inspect pic
i use css:#form_powerplant
and xpath://*[@id=“form_powerplant”]
but i have error that element not found
Hi,
Did you verified that the locator is unique? And check Element Should Be Visible?
This doesn’t seems to be a standard choice list, so you could try:
Click Element //*[@id=“form_powerplant”]/parent::span
Or
Click Element //input[@id=“form_powerplant”]/parent::span
Then wait for the list container to be visible and click the choice.
Regards
Charlie
1 Like