Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to find path to filtervalue

19 views
Skip to first unread message

Addin Test

unread,
Nov 25, 2019, 1:11:08 PM11/25/19
to Selenium Users

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.

23nHF.png


Thank you in advance for your help.


Aditya Sisodiya

unread,
Nov 25, 2019, 2:49:52 PM11/25/19
to seleniu...@googlegroups.com
for this you need to write  xpath using regular expression.
you can use this xpath - driver.findElement(By.xpath(" span[contains(text(),' Search in active documents')] "));
it will search your desire element by given text.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/926a4a77-1bd8-452d-8cd8-30e1983a9110%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages