Browser opens with the below mentioned line-
You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer.
as well as after few second the browser close and the error is thrown.
I am facing the above error when i run my code on chrome.
I am using chrome version - 44.0.2403.155 and latest selenium jars.
Can anybody help me out?
If you are using Windows version, make sure the shortcut of Chrome leads to chrome.exe without any further command line parameters. Another solution could be going to chrome://flags inside Chrome. Look for "Extensions on chrome:// URLs" and disable it.
You can add this to the shortcut of the chrome browser, in the Target portion:
–test-type
This would disable any warning messages. Not the best solution, but it works.
For a chrome version of 58.0.3029.110
, You should use Chrome.driver of 2.28 version
. Download driver from http://chromedriver.storage.googleapis.com/index.html?path=2.28/
Note: If you want to download other chromedriver of other version
then change version number
in the above url.
Happy learning
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With