dontSee

Verifies that the given text does not exist in any element on the current page.

Arguments

Name Type Required Default Description
text string true The text that should not appear.
caseSensitive boolean false true If true, will only fail if the text exists and matches case.

Examples

it( "can see that text is not on a page", function() {
    this.visit( "/" )
        .dontSee( "Oops!  An error occurred." );
} );