ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error
经验与学习 2023/7/8 14:21:30 点击:不统计
在使用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