dropDown is not able to find select menu by label #1729
Replies: 6 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @NivedhaSenthil thank you for the quick reply. I've realized I ruched and misnamed the issue and just fixed its title. Now the title describes the issue properly. I'd expect |
Beta Was this translation helpful? Give feedback.
-
Since there is only one dropdown on your page the following should work
As mentioned earlier "Most of my mail is…" is a dropdown value and not a label. |
Beta Was this translation helpful? Give feedback.
-
Also to match part text you should ideally be using regex support
|
Beta Was this translation helpful? Give feedback.
-
Yes, I mentioned the empty @zabil would you recommend another way of finding the select by the visually displayed selected option? |
Beta Was this translation helpful? Give feedback.
-
The only other way is to refer the dropdown by index https://docs.taiko.dev/working_with_element_lists/#using-indexes-and-loops Or use a proximity selector to locate the dropdown near another element
|
Beta Was this translation helpful? Give feedback.
-
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps (or script) to reproduce the behavior:
This is the static HTML for the page in the link used below (https://leandrosansilva.gitlab.io/taiko-page-test/):
For the context, in the real application, the tags attributed (selected, disabled) are generated by Vue.js, and the issue might lie there.
This is the taiko code:
But it kind of works if I omit the label (I assume taiko uses the first found element):
Expected behavior
I expect taiko to find the menu and select the option "marketing".
Screenshot
Versions:
Gauge version: 1.1.6
Commit Hash: 3af456f
Plugins
html-report (4.0.12)
js (2.3.12)
screenshot (0.0.1)
xml-report (0.2.3)
Beta Was this translation helpful? Give feedback.
All reactions