Let's next understand a very important class in Selenium: DesiredCapabilities. Before understanding the DesiredCapabilities class, knowing what Desired Capability means is necessary.
DesiredCapabilities
What is a Desired Capability?
All server implementations will rarely support every feature of WebDriver. It is advised that the client and server should use JSON objects with certain predefined properties when describing which features a user requests that has to be supported by a session. If a session cannot support a certain capability that is requested in the Desired Capabilities, a capabilities object is returned, which is read-only, and this object indicates the capabilities the session supports.