Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Selenium by (7k points)

I am a newbie and saw samples of executing WebDriver tests on different platforms by just targeting these for the capabilities of the browser or OS. 

capability= DesiredCapabilities.firefox();
capability.setBrowserName("firefox"); 
capability.setPlatform(org.openqa.selenium.Platform.ANY);
or
capability= DesiredCapabilities.internetExplorer();
capability.setBrowserName("iexplore"); 
capability.setPlatform(org.openqa.selenium.Platform.WINDOWS);

Is it possible to run tests and verify on different OS and Browsers just by using the libraries provided by the Selenium?

1 Answer

0 votes
by (31.9k points)

You may use Selenium Grid and an online service. And you can also use base Selenium/Selenium Server along with a number of other libraries to test all modern browser and OS combinations

Want to learn Selenium, checkout our Selenium training.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...