Troubleshoot errors in Automated tests
Learn how to resolve common errors.
Automated tests is an easy-to-use automated solution to add accessibility testing to your pre-existing test suite. You can find solutions to common problems in the following section.
Common errors and solutions
You can contact support if your issue is not listed in the following table:
Problem | Solution |
---|---|
Automated Tests on Playwright failing with the following error:Error: Playwright Version Not Supported
|
Update Playwright version using the following command:npm Install @playwright/test@latest
|
Accessibility tests not running due to an unsupported version of BrowserStack SDK. | Please review the framework documentation for information on supported SDK versions or instructions for updating to the latest BrowserStack SDK version. |
Running Automated Tests without BrowserStack SDK. | Install the latest version of BrowserStack SDK by following the instructions for your framework. |
User not on the right plan. | Upgrade to a plan that suites your needs. |
Incorrect accessibilityOptions
|
Refer to the available accessibilityOptions and fix any errors. |
Invalid browser or browser versions | Automated tests work only on Chrome version 100 and later. |
Using Chrome browser in legacy headless mode | Use headed mode or the new headless mode introduced with Chrome 112. |
Using Chrome browser in incognito mode | Automated tests currently does not support incognito mode. |
As per the includeTagsInTestingScope and excludeTagsInTestingScope , there are no applicable test cases for accessibility testing. |
Refer to the configuration options and fix the tags specified in includeTagsInTestingScope and excludeTagsInTestingScope to ensure there are test cases assigned for accessibility testing. |
Extension installation failure if the user passes chromeOptions that do not allow extensions - with excludeSwitches set to load-extension or flags such as disable-extensions or disable-extensions-except . |
Fix the chromeOptions and reinstall the BrowserStack Accessibility Toolkit
|
Additional tips | Do not quit the driver inside the test case itself. Also, do not invoke driver.close method as it is not patched. Similarly, do not initialize the driver inside the test case. Instead, do it in a before method. |
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!