This repository contains code samples from http://www.browserstack.com/automate/java. Please feel free to clone the repo and use the example code.
Master branch contains Selenium 3 samples, for Selenium 4 - W3C protocol please checkout selenium-4 branch
- Setup
BROWSERSTACK_USERNAME
andBROWSERSTACK_ACCESS_KEY
environment variables with browserstack credentials or directly update these strings in Browserstack.java - Run using
mvn clean compile exec:java