Wednesday, 15 March 2017

Selenium + Node.JS - how to disable chrome error messages

I'm getting this error message from chrome:

[5428:3548:0315/155552.809:ERROR:ssl_client_socket_impl.cc(1136)] handshake failed; returned -1, SSL error code 1, net_error -101

I've already tried to pass different arguments like --disable-logging, --test-type, --ignore-certificate-errors and --silent which I found in the simillar questions, but all of these doesn't seems to work. My current code is here:

var webdriver = require('selenium-webdriver'),
    By = webdriver.By,
    until = webdriver.until;

var capabilities = {
  'browserName' : 'chrome',
  'chromeOptions': {
    'args': ['silent','disable-logging','test-type','ignore-certificate-errors']
  }
}

var driver = new webdriver.Builder()
    .withCapabilities(capabilities)
    .build();



via Denis Sheremet

No comments:

Post a Comment