2

I am relatively new to selenium webdriver.

I wanted to know what is the main difference between Desiredcapabilities vs Chromeoptions?

In which situation to use them?

Thanks.

1 Answer 1

3

This link will answer your question. Basically, it says:

Capabilities are options that you can use to customize and configure a ChromeDriver session. This page documents all ChromeDriver supported capabilities and how to use them.

There are two ways to specify capabilities.

  1. The first is to use the ChromeOptions class.
  2. If your client library does not have a ChromeOptions class (like the selenium ruby client), you can specify the capabilities directly as part of the DesiredCapabilities.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.