This document guides you with the steps to resolve the BROWSERSTACK_FAILED_TO_START_BROWSER error.
This error occurs when BrowserStack is unable to launch the browser specified in your script, thus preventing test execution.
Following are the various causes and possible fixes to the error:
If the target browser is incompatible with Selenium JAR or Appium version you have specified in the script, the browser will fail to launch.
You can resolve this error in the following ways:
browserstack.selenium_version, or browserstack.appium_version capability in your test. BrowserStack automatically runs your test on the most compatible Selenium JAR or Appium version for the target browser.If your target browser is incompatible with the specified browser driver, the browser will fail to launch.
You can resolve this error in the following ways:
browserstack.chrome.driver, browserstack.firefox.driver, or browserstack.ie.driver capability. BrowserStack automatically picks the most compatible driver for your target browser.If you pass an incorrect or unsupported option in ChromeOptions or firefoxOptions, the browser will fail to launch.
You can resolve this error in the following ways:
Capabilities that attempt to access restricted machine/device sections are blocked for security reasons. However, if your test cases require the use of such capabilities, contact our Support team.
If your test adds a faulty or corrupted Chrome extension or Firefox plugin to the remote browser, the browser may crash.
You can resolve this error in the following ways:
If you are using Internet Explorer with Windows 8.1, Windows 8, Windows 7, or Windows XP, you can specify the IE Driver architecture (32-bit or 64-bit). However, if the OS is incompatible with the IE Driver architecture (for instance, 64-bit IE on Windows XP), the browser will fail to launch.
You can resolve this error in the following ways:
browserstack.ie.arch capabilitySince there are multiple components involved in running a test, it could be difficult to pinpoint the exact cause of the error. The browser may fail to launch due to bugs in the Selenium JAR or Appium version, browser drivers, and so on.
If the tips listed above didn’t help, try simply re-running the tests. You can also use the BrowserStack REST API to fetch session status and add a retry after every occurrence of an error.
If you consistently experience the BROWSERSTACK_FAILED_TO_START_BROWSER error, please get in touch with our Support team and share the session IDs of some failed tests so we can work on resolving the error.
Contact our Support team for immediate help while we work on improving our docs.
Contact our Support team for immediate help while we work on improving our docs.
Thank you for your valuable feedback!