-1

Selenium tests giving SSL certificate error

Selenium tests giving this error "IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate veri(...)"

IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate veri(...)

Already tried add this but does not work:

options.add_argument('--ignore-certificate-errors')
user10751590
  • 283
  • 2
  • 4
  • 11

1 Answers1

0

I fixed it using this command:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context
user10751590
  • 283
  • 2
  • 4
  • 11