raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_CONNECTION_TIMED_OUT
(Session info: headless chrome=113.0.5672.127)
Stacktrace:
Backtrace:
GetHandleVerifier [0x00A08893+48451]
(No symbol) [0x0099B8A1]
(No symbol) [0x008A5058]
(No symbol) [0x008A1843]
(No symbol) [0x00898AC5]
(No symbol) [0x00899B2A]
(No symbol) [0x00898E23]
(No symbol) [0x00898175]
(No symbol) [0x0089810C]
(No symbol) [0x00896D46]
(No symbol) [0x008974A8]
(No symbol) [0x008A67F2]
(No symbol) [0x008FCA61]
(No symbol) [0x008EA2BC]
(No symbol) [0x008FC482]
(No symbol) [0x008EA0B6]
(No symbol) [0x008C7E08]
(No symbol) [0x008C8F2D]
GetHandleVerifier [0x00C68E3A+2540266]
GetHandleVerifier [0x00CA8959+2801161]
GetHandleVerifier [0x00CA295C+2776588]
GetHandleVerifier [0x00A92280+612144]
(No symbol) [0x009A4F6C]
(No symbol) [0x009A11D8]
(No symbol) [0x009A12BB]
(No symbol) [0x00994857]
BaseThreadInitThunk [0x769F7D49+25]
RtlInitializeExceptionChain [0x7741B74B+107]
RtlClearBits [0x7741B6CF+191]文章来源:https://www.toymoban.com/news/detail-757667.html
from selenium import webdriver
option = webdriver.ChromeOptions()
option.add_argument('headless')
driver = webdriver.Chrome(options=option)
driver.get('https://www.baidu.com')
遇到如上报错 ,请配置phantomjs 环境 下载网址如下:https://phantomjs.org/download.html 配置网址可参考:https://blog.csdn.net/LI4836/article/details/122505228?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168497304216782427425176%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=168497304216782427425176&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2alltop_positive~default-1-122505228-null-null.142v87insert_down28,239v2insert_chatgpt&utm_term=phantomjs&spm=1018.2226.3001.4187 的博主博客 ,文章来源地址https://www.toymoban.com/news/detail-757667.html
到了这里,关于【selenium 无头浏览器练习】raise exception_class(message, screen, stacktrace) selenium.common.exceptions.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!