mardi 23 août 2016

C# Selenium, how to check that text exists on page

I was wondering whether anyone is aware of a method to check that text exists on a page, I have tried a few solutions, however sadly to no avail.

<div style="display:inline-block;vertical-align:top">
    text I want to find<br>
    more text I want to find<br>                        
</div>

How do I confirm/assert that this is present? I'm assuming that TagName is involved? I am not sure however, I am at a very hello world level.

Thank you for your help.

Aucun commentaire:

Enregistrer un commentaire