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).