waitForText()
public method
Waits up to $timeout seconds for the given string to appear on the page.
Can also be passed a selector to search in.
If the given text doesn't appear, a timeout exception is thrown.
php
waitForText('foo', 30); // secs
$I->waitForText('foo', 30, '.title'); // secs
?>