[Solved] selenium Error: ERROR:ssl_client_socket_impl.cc(962)] handshake failed; returned -1, SSL

Solution:
This error occurs due to an unsafe address error, a loop error is reported, and the program is terminated. With a –ignore-certificate-errors parameter, those certificate errors are ignored, as follows:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(options=chrome_options)
chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--ignore-certificate-errors') driver = webdriver.Chrome(options=chrome_options)
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(options=chrome_options)

 

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *