seeElement

Verifies that the given element exists on the current page.

Arguments

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

Examples

it( "can see that a specific element exists", function() {
    this.visit( "/" )
        .seeElement( ".alert" );
} );