3

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.

2 Answers 2

7

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! My test cases run much faster now
2

Use setSpeed(300) it is reasonable speed to see what is happening on the screen

Comments

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.