0

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");
}
}

yml file: enter image description here

6
  • 1
    stackoverflow.com/questions/36093658/… Commented Feb 25, 2019 at 16:34
  • Still receiving an error. Updated my post with more pictures Commented Feb 25, 2019 at 16:49
  • @VaheShak I've tried to change class_name to same as .php class,but still received same problem. Commented Feb 25, 2019 at 16:53
  • Have you tried using waitForText() instead of wait()? Commented Feb 25, 2019 at 17:01
  • Yea I've tried, received: [RuntimeException] Call to undefined method AcceptanceTester::waitForText.. As I understand those functions should work by default,no? Commented Feb 25, 2019 at 17:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.