【发布时间】:2014-04-01 04:05:03
【问题描述】:
我无法启动 Firefox - 使用 selenium 2.41(仅限此版本)
这就是我调用的方式..
WebDriver d = new FirefoxDriver();
d.get("https://www.google.com");
遇到异常..
java.lang.NoSuchMethodError: org.openqa.selenium.Proxy.extractFrom(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/Proxy;
at org.openqa.selenium.firefox.FirefoxDriver.dropCapabilities(FirefoxDriver.java:313)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:192)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
at com.qglobal.automation.utility.convertt.main(convertt.java:103)
有什么想法吗??
编辑
我刚刚发现,如果我关联了 selendroid-standalone-0.8.0-with-dependencies.jar(我需要这个在 android 中运行我的测试),就会发生这种情况。如果我删除这个 jar,则不会发生上述异常。
我怎样才能在我的测试中同时拥有两个罐子?有什么想法吗?
(问题仅在 Firefox 中发现。Chrome 工作正常。)
【问题讨论】:
标签: android selenium-webdriver webdriver remotewebdriver