Checks that the current page contains the given string.
Specify a locator as the second parameter to match a specific region.
php
see('Logout'); // I can suppose user is logged in
$I->see('Sign Up','h1'); // I can suppose it's a signup page
$I->see('Sign Up','//body/h1'); // with XPath
?>
public function _createEmptyModule(WebGuy $I) { $I->canSee('Create empty root element'); $I->wait(2); $I->click('.typeaheadName'); $I->waitForElement('.typeahead'); $I->click('interfaces'); $I->click('.typeaheadNS'); $I->expectTo('see only one available NS'); $I->seeNumberOfElements('.typeaheadNS + .typeahead a', 1); $I->click('urn:ietf:params:xml:ns:yang:ietf-interfaces'); $I->click('Create'); $I->waitForText('interfaces'); }