![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
有梦想的人运气不太差
你知道的太多了
展开
-
python+selenium+Firefox, WebDriver使用默认Firefox配置
使用系统默认Firefox使用webdriver.firefox()时,如果参数为空, 则程序调用的是一个全新的firefox如果想复用已经配置好的Firefox设置, 程序中可添加FirefoxProfile文件来支持 (FirefoxProfile文件目录就是mimeTypes.rdf的上级目录)def __init__(self): self.url = '+++++++++++++' profile=webdriver.FirefoxProfile("C:\Users\用户名\原创 2021-02-10 12:32:44 · 1629 阅读 · 0 评论 -
selenium火狐浏览器报错 WebDriverException: Reached error page: about:neterror?e=dnsNotFound&u=https%3A//www
selenium火狐浏览器报错 WebDriverException: Reached error page: about:neterror?e=dnsNotFound&u=https%3A//www环境查找原因判断返回信息环境Anacondapython 3.8Firefox v72geckodriver v0.28查找原因排除geckodriver路径错误, 已放置在python和Firefox的路径下判断返回信息dnsNotFoundDNS ,推测是proxy的原因;在原创 2021-02-10 12:07:09 · 2838 阅读 · 0 评论