How to change from DesiredCapabilities.Chrome() to new ChromeOptions()

Hi there,

I receive this error when running our tests in Chrome :

Mar 26, 2018 3:40:17 PM org.openqa.selenium.remote.DesiredCapabilities chrome

INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`

Where do I go to change Desired capabilities to ChromeOptions?

I checked in the script tab but I cant see this written anywhere?

Kyle

6 Likes

I have the same question. Any answers?

you need to update your web driver version, I had same question and after upgrade, the issue got resolved.
you can find the approach from this link:

1 Like

hi @yangsust

this link error :frowning:
I have the same problem

Regards,

I am having same issue. I updated Chrome Driver but still it is not working. Any help would be appreciate.
Error:

May 05, 2020 10:26:45 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()