Text Assertions

Learn how to assert text using Selenium and try it out yourself.

Assert label text

Label tags are commonly used in web pages to wrap some text like:

Press + to interact
<label id="receipt_number">NB123454</label>

It is very useful to assert such texts from time ...