Maven 在Ubuntu中获取selenium web驱动程序时出错
注意:程序在Windows操作系统中运行良好。只有在Ubuntu操作系统中才会出现问题 Selenium Webdriver:2.40 FF版本:27.0 使用Maven插件 我尝试在Ubuntu机器上运行SeleniumWebDriver自动化脚本 我有以下错误。请帮我解决这个问题 org.openqa.selenium.firefox.NotConnectedException:无法连接 45000毫秒后,在端口7055上承载127.0.0.1。Firefox控制台输出: 进程:8689:GLib-CRITICAL**:g\u-slice\u-set\u-config:assertion “sys\u page\u size==0”失败错误:无法打开显示:1.0 进程:8697:GLib-CRITICAL**:g\u-slice\u-set\u-config:assertion “sys\u page\u size==0”失败错误:无法打开显示:1.0 在 org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.startNewProfileExtensionConnection.java:118 在 org.openqa.selenium.firefox.FirefoxDriver.startClientFirefoxDriver.java:247 在 org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriver.java:112 在 org.openqa.selenium.firefox.FirefoxDriver.FirefoxDriver.java:192 在 org.openqa.selenium.firefox.FirefoxDriver.FirefoxDriver.java:187 在 org.openqa.selenium.firefox.FirefoxDriver.FirefoxDriver.java:183 在 org.openqa.selenium.firefox.FirefoxDriver.FirefoxDriver.java:100Maven 在Ubuntu中获取selenium web驱动程序时出错,maven,ubuntu,selenium-webdriver,Maven,Ubuntu,Selenium Webdriver,注意:程序在Windows操作系统中运行良好。只有在Ubuntu操作系统中才会出现问题 Selenium Webdriver:2.40 FF版本:27.0 使用Maven插件 我尝试在Ubuntu机器上运行SeleniumWebDriver自动化脚本 我有以下错误。请帮我解决这个问题 org.openqa.selenium.firefox.NotConnectedException:无法连接 45000毫秒后,在端口7055上承载127.0.0.1。Firefox控制台输出: 进程:8689:G
我认为您应该使用selenium的最新版本2.44.0。下载最新版本
Selenium最新版本支持firefox版本33。Hi.。感谢您的更新。但是Selenium webdriver 2.40支持FF 27.0。它在Windows中也可以正常工作。仅在Ubuntu机器中,我面临这个问题。Ubuntu机器中需要任何配置更改吗?您在eclipse中将所有JAR添加到项目中了吗?是的。我使用maven运行脚本。它将所有必需的JAR下载到我的项目中。您应该澄清这些问题,您正在使用maven,该程序在windows中正常运行。只有ubuntu等的问题…你在运行headless吗???