Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.06 KB

README.md

File metadata and controls

64 lines (45 loc) · 2.06 KB
runme
id version
01HHQ3F23DXXD7K4KP7GZ22YH8
v2.0

Getting started with Sauce Labs Visual in Java WebDriver

Prerequisites

Run the demo

  • Install Eclipse Temurin JDK (for macOS Ventura):
brew install --cask temurin
  • Clone the repository:
git clone https://github.com/saucelabs/visual-examples
cd visual-examples/wd-java-testng
export SAUCE_USERNAME=__YOUR_SAUCE_USERNAME__
export SAUCE_ACCESS_KEY=__YOUR_SAUCE_ACCESS_KEY__
  • Run the test
./mvnw clean test

By default, the test will run on desktop with a Chrome browser. If you'd like to run the test with a mobile device or emulator, you can set the PLATFORM_NAME environment variable accordingly. Available options are ANDROID, ANDROID_EMULATOR, IOS and IOS_SIMULATOR.

PLATFORM_NAME=ANDROID_EMULATOR ./mvnw clean test
./mvnw clean test -Dmodified=true

Installation & Usage

View installation and usage instructions on the Sauce Docs website.