HTML XPath Searching by class and text -
i want find elements in xpath class , text. have tried not work.
//[contains(@class, 'myclass')]//[text() = 'qwerty']
i trying find elements have class of 'myclass' , text 'qwert' (these span elements)
//span[contains(@class, 'myclass') , text() = 'qwerty']
or
//span[contains(@class, 'myclass') , normalize-space(text()) = 'qwerty']
Comments
Post a Comment