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.

enter image description here

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.

| improve this answer | |
  • Thanks. It works. – Majkl Nov 28 '19 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.