dontSeeInElement

Verifies that the given element does not contain the given text on the current page.

Arguments

Name Type Required Default Description
text string true The text that should not be found.
selectorOrName string true The provided selector or name to check for the text in.

Examples

it( "can verify text is not in an element", function() {
    this.visit( "/" )
        .dontSeeInElement( "Please Log In.", ".error" );
} );