Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
161 views
by

We do have 

DesiredCapabilities capabilities = DesiredCapabilities.chrome();

why do we use 

new ChromeOptions()?

How is that different?

1 Answer

1 like 0 dislike
by
Chrome Option is a feature given to users to customize the Browser. For a simple scenario - When you automate Chrome driver through Selenium then an information is displayed - Chrome is running with Automated Software. This is inbuilt feature for Chrome. So, now you don't want this information to displayed while executing your Test script. Then you need to customize the browser with command like "Don't display information bar" , this customization is achieved through Chrome Options.
...