Writing a small test for my website. However, my browser works way to slow for my test so I need a short 'timeout' while everything loads there. I tried to used .wait(secs), but I receive an error:
[RuntimeException] Call to undefined method AcceptanceTester::wait
Here's everything what I got from my code:
class LoginCest
{
public function successFirstTest(AcceptanceTester $I)
{
$I->wantTo("Create test case for login");
$I->amOnPage('link');
// $I->wait(5);
$I->see("wow");
$I->fillField("//input[@name='userIdentifier']", 'myEmail');
$I->click("//button[contains(text(),'Prisijungti')]");
$I->wait(10);
$I->see("thEText");
}
}