html - Selenium: how to find div with specific content? -
Click me some content and
& lt; Div & gt;
Code> from selenium, such as:
& lt; Tr & gt; & Lt; TD & gt; ClickAndWait & lt; / TD & gt; & Lt; Td> // div with [@ class = 'gwt-label' *** content = 'logout' ***] & lt; / Td> & Lt; TD & gt; 5000 & lt; / TD & gt; & Lt; / TR & gt;
Is there any way to do this? I do not want to use an absolute xpath. Try it:
Try it:
// div [@ class = 'Gwt-Label' and in it (., 'Logout')]
Comments
Post a Comment