- Platform Configurator
- Getting Started with Selenium for Automated Website Testing
- Getting Started with Appium for Mobile Native Application Testing
- Selenium Bootcamp by Dave Haeffner
- Appium Bootcamp by Dave Haeffner and Matthew Edwards
You'll see this error when Sauce Labs doesn't receive a response from Selenium or Appium to your script's last command in more than five minutes (the default duration for the timeout). Without this timeout, any tests in which the Selenium, Appium server, or browser crashes would keep running forever, consuming all test minutes available in your account.
There are a few potential causes for this error.
- A less common, but still possible cause, is Selenium or Appium legitimately needing more than five minutes to run your command
- This error will also be thrown if the browser crashes during your test
How to Resolve
- If the issue is Selenium needing more than five minutes to run your command, you can use the commandTimeout desired capability to have Sauce wait longer for your command to execute. You can find out more about this desired capability in the Timeouts section of the Test Configuration Options topic.
- If the cause is a browser crash, the easiest way to check is to watch the video of the test. If this is the case, you may be able to resolve the error by removing memory-hungry commands from your test script, like fetching the page source or taking screenshots with Selenium.