I am writing the selenium test.
I have a label there “Assign Designer” and the select box followed right after the label.
Unfortunetely, select box has the dynamic id and I can not query it by id or any other it’s attribute.
Can I build the XPath query that returns “First select tag after text ‘Assign Designer'”?
PS. Selenium supports only XPath 1.0
This would be something like:
Note that:
<label>, you should use the actual element name, of course. 😉[1], in this case) whenever you use an axis like “following-sibling“. It’s easily forgotten and if it is, your expressions may produce unexpected results.