My tests are running too fast, and the code always fail. Is there a way to pause?
I tried $this->pause(‘3000’); and $this->wait(‘3000’); but it doesn’t work.
Right now, I’m using $this->setSpeed(‘3000’); but it’s running too slow.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you really need to wait a fixed amount of time: Sleep function will work as you would expect.
But better solution is to wait for elements/text to be visible – the test will be able to resume work almost immediately after an HTML element is ready.