Getting intermittent issue with dropdown located with class attribute #2206
Ananda0488
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
await dropDown({class: "location-select"}).select({index:'1'});
When using the above line in my test script, I am getting the below issue intermittently.
Error: DropDown[class*="location-select"] not found
In the web page I am working on, [class="location-select"] locates only one element, but [class*="location-select"] locates 3 elements. Class is the only attribute associated with the element i am trying to locate. Is there any way by which i can avoid this intermittent issue?
Beta Was this translation helpful? Give feedback.
All reactions