dontSeeElement

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

Arguments

Name Type Required Default Description
selectorOrName string true The selector or name of the element to not find.

Examples

it( "can see that a specific element does not exist", function() {
    this.visit( "/" )
        .dontSeeElement( ".alert" );
} );