What XPath can I use to select any category with a name attribute specified and any child node author with the value specified.
I\'ve tried different variations of t
Here, we can do this way as well:
//category [@name='category name']/author[contains(text(),'authorname')]
OR
//category [@name='category name']//author[contains(text(),'authorname')]
To Learn XPATH in detail please visit- selenium xpath in detail