October 2018
Intermediate to advanced
192 pages
5h 12m
English
DesiredCapabilities is a class in the org.openqa.selenium.remote.DesiredCapabilities package. It gives one the facility to set the properties of the browser, which are mainly BrowserName, Platform, and the version of the browser.
Generally, the DesiredCapabilities class is used when we need to use Selenium Grid and multiple test cases have to be executed on multiple systems with different browsers having different versions with different operating systems. Earlier, this was a major concern but now browsers autoupdate by themselves. We will see one example for Internet Explorer, where our tests may fail because of protected mode settings.
Read now
Unlock full access