【问题标题】:selenium web driver no longer working correctlyselenium web 驱动程序不再正常工作
【发布时间】:2015-02-27 15:02:38
【问题描述】:

我在 python 中使用 selenium 模块,它一直按预期工作,直到我今天不得不更新 firefox。 Firefox 更新后,每次将 webdriver.Firefox() 分配给变量驱动程序时,firefox 网络浏览器都会在默认页面中打开,然后 python 程序停止等待而不执行其余代码。我是 selenium 新手,所以我不知道是否有解决方法。

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Firefox()
driver.get(#somewebsite)

【问题讨论】:

    标签: python firefox selenium


    【解决方案1】:

    您需要将 selenium 升级到今天发布的 2.45。

    签出:https://pypi.python.org/pypi/selenium

    pip install -U selenium

    【讨论】:

    • 太棒了!可以给个下载链接吗?
    • 欣赏。谢谢!
    猜你喜欢
    • 2012-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-15
    • 1970-01-01
    • 1970-01-01
    • 2012-01-04
    • 1970-01-01
    相关资源
    最近更新 更多