Checks that the current page doesn't contain the text specified (case insensitive).
Give a locator as the second parameter to match a specific region.
php
dontSee('Login'); // I can suppose user is already logged in
$I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page
$I->dontSee('Sign Up','//body/h1'); // with XPath
Note that the search is done after stripping all HTML tags from the body,
so
$I->dontSee('strong') will fail on strings like:
-
I am Stronger than thou
-
But will ignore strings like:
-
Home
-
Home
-
For checking the raw source code, use seeInSource().