seeInElement

Verifies that the given element contains the given text on the current page.

Arguments

Name Type Required Default Description
text string true The expected text.
selectorOrName string true The provided selector or name to check for the text in.

Examples

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