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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -