Run Selenium Java Tests on Different Browsers on Sauce Labs

Run Selenium Java Tests on Different Browsers on Sauce Labs

In this tutorial learn how to use different browser options with a Selenium Java Test to set the browser you would like to run your tests in on Sauce Labs. Use a switch statement using Selenium BrowserType class to detect the browser, then add browser options to set capabilities for 5 different types of browsers. Finally, you will see how to run tests on different browser (and operating systems). You will also see how to use the -D flag to set options to run on different browsers.
This video is a part of module 3 of the Automation Quickstart course on Sauce School(https://training.saucelabs.com/quickstart/)

Connect with Sauce Labs on Social Media
LinkedIn: https://www.linkedin.com/company/sauce-labs
Twitter: @saucelabs