Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Can you help me how to find a path to desired "filtervalue", such as value "Search in active documents"?
As you can see in the picture, the class filtervalue is there multiple times.
Thank you in advance for your help.
I'll consider XPath. It seems you'd need to use text() as well:
//span[@class="filtervalue" and contains(text(), "Search")]
You don't need to use contains(), you can use just text()=, but it seems to me that the text value might change, so contains() might apply even after the change.
Required, but never shown