Firefox驱动程序在android中不工作

Firefox驱动程序在android中不工作,android,selenium-webdriver,selenium-firefoxdriver,remotewebdriver,firefox-driver,Android,Selenium Webdriver,Selenium Firefoxdriver,Remotewebdriver,Firefox Driver,我想在android设备的firefox浏览器中运行我的网页UI测试,为此我需要获得firefox驱动程序,以便使用该驱动程序我可以在网页中执行某些操作。 在我的例子中,最初我可以通过使用以下命令启动一个intent来打开firefox浏览器 /platform-tools/adb shell am start -a android.intent.action.MAIN -n org.mozilla.firefox/.App 在此之后,我使用以下代码行获取webdriver,但无法获取此打开浏

我想在android设备的firefox浏览器中运行我的网页UI测试,为此我需要获得firefox驱动程序,以便使用该驱动程序我可以在网页中执行某些操作。 在我的例子中,最初我可以通过使用以下命令启动一个intent来打开firefox浏览器

/platform-tools/adb shell am start -a android.intent.action.MAIN -n org.mozilla.firefox/.App
在此之后,我使用以下代码行获取webdriver,但无法获取此打开浏览器的驱动程序实例

DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setBrowserName("firefox");
capability.setCapability("Browser", "firefox"); capability.setCapability(CapabilityType.BROWSER_NAME, "firefox");
wd = new RemoteWebDriver(u, capability);
有人请帮我解决这个问题。
提前感谢。

org.openqa.selenium.remote.UnreachableBrowserException:无法启动新会话。可能的原因是远程服务器地址无效或浏览器启动失败。构建信息:版本:'2.45.0',版本:'5017cb8',时间:'2015-02-26 23:59:50'系统信息:主机:'hdc2-d-7tfs4p1.gdnindia.com',ip:'10.211.166.253',os.name:'Mac os X',os.arch:'x86_64',os.version:'10.8.5',java.version:'1.6.0_65'驱动程序信息:Driver.version:RemoteWebDriver位于org.openqa.remote.selenium.RemoteWebDriver.execute(RemoteWebDriver.java:593)[INFO]2015-05-19 09:58:50340[ExecuteTest]getWebDriver-Webdriver:Null我得到上面的异常,Webdriver总是Null我在构建路径中添加了“Selendroid.jar”,但错误仍然存在。此外,除了上面提到的异常,我还得到下面的异常,