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

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -