网站制作学习网经验与学习→正文:ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error
字体:

ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error

经验与学习 2023/7/8 14:21:30  点击:不统计

学习www.网for站asp制.cn作

在使用python selenium 调用 Chrome drivers 使用浏览器操作,出现了 
ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error code 1,net_error -103
错误。
 
怎么解决该错误呢? 就是在chrome 设置option时 去掉相关或者忽略相关操作。
添加代码如下:
 
# 忽略证书错误
options.add_argument('--ignore-certificate-errors')
# 忽略 Bluetooth: bluetooth_adapter_winrt.cc:1075 Getting Default Adapter failed. 错误
options.add_experimental_option('excludeSwitches', ['enable-automation'])
# 忽略 DevTools listening on ws://127.0.0.1... 提示
options.add_experimental_option('excludeSwitches', ['enable-logging'])
 
 
转:https://blog.csdn.net/weixin_67276852/article/details/129811248

·上一篇:Message: session not created: This version of ChromeDriver only suppor >>    ·下一篇:No `` tag found >>
推荐文章
最新文章