The minimum version of browserstack-java-sdk that supports Automated tests is 1.13.10. To support Safari, you need version 1.57.00 or later of browserstack-java-sdk.
To get the instructions to integrate Automated tests in your test suites, select one of the following tabs depending on where your test suites run:
Install or update to the latest BrowserStack Java SDK
If you already use browserstack-java-sdk, update the entry enclosed within the <version> - </version> tags as LATEST in the pom.xml file of your project and run the following command to update to the latest SDK version.
If you don’t have browserstack-java-sdk installed already, run the following command on your terminal/command prompt to add browserstack-java-sdk dependency and browserstack.yml file in your project.
Automated tests mandatorily needs the following five configurations in the browserstack.yml file. In particular, set the accessibility flag as true at the end of the browserstack.yml file.
The projectName and buildName config must be static and not change across different runs of the same build. This deviates from the standard BrowserStack Automate approach, because Automated tests automatically identify different build runs.
```yml
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
buildName: "Your static build/job name of CI goes here"
projectName: "Your static project name goes here"
...
accessibility: true
platforms:
- os: Windows
osVersion: 10
browserName: Chrome
browserVersion: latest
- os: OS X
osVersion: Sequoia
browserName: Safari
browserVersion: latest
- platformName: android
platformVersion: 16.0
    deviceName: Samsung Galaxy S26
browserName: Chrome
browserVersion: latest
```
Automated tests support the following browsers and operating systems:
Operating system
Chrome
Safari
Edge
Windows
Versions 100 and above
N/A
Not supported
macOS
Versions 100 and above
osVersion: Sequoia, osVersion: Tahoe, and osVersion: Golden Gate
Not supported
Android
Android 15 and 16
N/A
Not supported
iOS
Not supported
Not supported
Not supported
Use the exact configurations provided in the example for mobile browser testing. Using different combinations of configurations may cause testing errors.
Window handle commands might cause instability to Automated tests. If you face issues, consider removing window handle commands or contact support.
Run your test suite with Automated tests
Continue running your tests as you have been running previously. The command to run your tests using the BrowserStack SDK remains unchanged. For your reference, here’s a sample command:
Install or update to the latest BrowserStack Java SDK
If you already use browserstack-java-sdk, update the entry enclosed within the <version> - </version> tags as LATEST in the pom.xml file of your project and run the following command to update to the latest SDK version.
If you don’t have browserstack-java-sdk installed already, run the following command on your terminal/command prompt to add browserstack-java-sdk dependency and browserstack.yml file in your project.
Automated tests mandatorily needs the following five configurations in the browserstack.yml file. In particular, set the accessibility flag as true at the end of the browserstack.yml file.
The projectName and buildName config must be static and not change across different runs of the same build. This deviates from the standard BrowserStack Automate approach, because Automated tests automatically identify different build runs.
```yml
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
buildName: "Your static build/job name of CI goes here"
projectName: "Your static project name goes here"
...
turboscale: true
accessibility: true
platforms:
- os: Windows
osVersion: 10
browserName: Chrome
browserVersion: latest
- os: OS X
osVersion: Sequoia
browserName: Safari
browserVersion: latest
- platformName: android
platformVersion: 16.0
    deviceName: Samsung Galaxy S26
browserName: Chrome
browserVersion: latest
```
Automated tests support the following browsers and operating systems:
Operating system
Chrome
Safari
Edge
Windows
Versions 100 and above
N/A
Not supported
macOS
Versions 100 and above
osVersion: Sequoia, osVersion: Tahoe, and osVersion: Golden Gate
Not supported
Android
Android 15 and 16
N/A
Not supported
iOS
Not supported
Not supported
Not supported
Use the exact configurations provided in the example for mobile browser testing. Using different combinations of configurations may cause testing errors.
Window handle commands might cause instability to Automated tests. If you face issues, consider removing window handle commands or contact support.
Run your test suite with Automated tests
Continue running your tests as you have been running previously. The command to run your tests using the BrowserStack SDK remains unchanged. For your reference, here’s a sample command:
Install or update to the latest BrowserStack Java SDK
If you already use browserstack-java-sdk, update the entry enclosed within the <version> - </version> tags as LATEST in the pom.xml file of your project and run the following command to update to the latest SDK version.
If you don’t have browserstack-java-sdk installed already, run the following command on your terminal/command prompt to add browserstack-java-sdk dependency and browserstack.yml file in your project.
Automated tests mandatorily needs the following five configurations in the browserstack.yml file. In particular, set the accessibility flag as true at the end of the browserstack.yml file.
The projectName and buildName config must be static and not change across different runs of the same build. This deviates from the standard BrowserStack Automate approach, because Automated tests automatically identify different build runs.
Google Chrome policy changes in v142 and later prevent accessibility automation from functioning for customers using non-BrowserStack infrastructure.
To continue performing accessibility automation, you must either:
Automated tests support the following browsers and operating systems:
Operating system
Chrome
Safari
Edge
Windows
Versions 100 and above
N/A
Not supported
macOS
Versions 100 and above
osVersion: Sequoia, osVersion: Tahoe, and osVersion: Golden Gate
Not supported
Android
Android 15 and 16
N/A
Not supported
iOS
Not supported
Not supported
Not supported
Use the exact configurations provided in the example for mobile browser testing. Using different combinations of configurations may cause testing errors.
Window handle commands might cause instability to Automated tests. If you face issues, consider removing window handle commands or contact support.
Run your test suite with Automated tests
Continue running your tests as you have been running previously. The command to run your tests using the BrowserStack SDK remains unchanged. For your reference, here’s a sample command: