【发布时间】:2014-07-30 17:18:31
【问题描述】:
我正在使用 selenium 的 python 版本
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
import selenium.webdriver.support.ui as ui
from selenium.webdriver.common.keys import Keys
fp = webdriver.FirefoxProfile("C:\\Users\\%user%\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\fyet0w0h.default")
browser = webdriver.Firefox(firefox_profile=fp)
browser.get("https://helloworld.com/")
firefox 驱动程序打开,但我无法使用 browser.get("url") 加载任何 url。没有代理。 Python 3.2 火狐 31
任何帮助将不胜感激。
【问题讨论】:
-
可能是selenium版本/firefox版本组合错误
-
不传入 Firefox 配置文件是否可以工作?
-
另外,如果您设置了日志记录,您会在那里看到任何错误吗? code.google.com/p/selenium/wiki/…
-
这实在是太模糊了,无法按原样回答。我们需要您提供更多详细信息,包括堆栈跟踪、错误消息或类似信息。这很可能是一个配置问题,如果没有这些,任何潜在的解决方案都只是猜测。我最初的猜测是它的 firefox 版本与您使用的 selenium 版本不兼容,因为这可能是我看到的此类问题中最常见的问题。
标签: python firefox selenium selenium-webdriver