click

Clicks on a link in the current page.

Arguments

Name Type Required Default Description
link string true A selector of a link or the text of the link to click.

Examples

it( "can click on a link", function() {
    this.visit( "/" )
        .click( "/about" )
        .seePageIs( "/about" );
} );