Waits up to $timeout seconds for an element to appear on the page.
If the element doesn't appear, a timeout exception is thrown.
php
waitForElement('#agree_button', 30); // secs
$I->click('#agree_button');
?>
See also:
Codeception\Module\WebDriver::waitForElement()