Handling timeouts on Automate TurboScale sessions
Learn how to handle session timeouts for your tests running on BrowserStack Automate TurboScale.
Timeouts in automated testing refer to the specified maximum duration a script waits for a condition to be met before throwing an error. In BrowserStack Automate TurboScale, timeouts manage how long a test will wait for actions like page loading, script execution, or element interaction to complete.
This guide covers the following type of timeouts
These timeouts may appear in the STOP_SESSION logs of your sessions:
Cloud-hosted instance idle timeout
The default time interval that BrowserStack waits for a command is set to 90 seconds. If no new command reaches the BrowserStack hub 90 seconds after the previous command was served, the session ends with BROWSERSTACK_IDLE_TIMEOUT
. You can increase the timeout using the idleTimeout
capability. Example:
If you are using BrowserStack SDK, you can set the following capabilities in the browserstack.yml
file:
idleTimeout: 300
You can use either Selenium 4 or Selenium Legacy JSON to organize your tests.
BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.
"browserstack.idleTimeout": 300
It may also be the case that all commands in your script have run but driver.quit
was not received at the end of the session. In such cases, the session ends with BROWSERSTACK_IDLE_TIMEOUT
because BrowserStack cannot detect if the test has ended.
Self-hosted instance idle timeout
Read the Configure different Timeouts documentation to learn how to set test-level timeouts according to your testing requirements.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!