What is the difference between DesiredCapabilities vs RequiredCapabilities?

522 views Asked by At

Can somebody tell me the difference between the DesiredCapabilities vs RequiredCapabilities in RemoteWebDriver constructor?

Here is the link for the constructor: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/remote/RemoteWebDriver.html#RemoteWebDriver(java.net.URL,%20org.openqa.selenium.Capabilities,%20org.openqa.selenium.Capabilities)

2

There are 2 answers

0
raluru On

For the benefit of those who find this question and still haven't found the answer, please look at this answer by Andrew Regan to the same question asked again slightly differently by Dev Raj.

I haven't seen any one use it or any blog posts - so far - (I haven't gone out in search of one, but the usual ones I read) never mentioned this constructor with requiredCapabilities. So, it seems to be a less popular feature that is available!

0
sri On

Currently you needn't worry about the requiredCapabilities, because it's been deprecated in Selenium v3.4.0.