I need to find a <div>
with certain content and click
it from Selenium, as so:
<tr> <td>clickAndWait</td> <td>//div[@class='gwt-Label' ***WITH CONTENT='Logout'***]</td> <td>5000</td> </tr>
Is there some way to do this? I don't want to use an absolute xpath.
You could also use CSS locators:
<div class="gwt-Label">This FindMe DIV</div>
Could be located using:
css=.gwt-Label:contains('FindMe')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With