Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Selenium web驱动程序:45000毫秒后无法连接到端口7055上的主机127.0.0.1。Firefox控制台输出:ce6fd}_Java_Selenium_Firefox_Intellij Idea - Fatal编程技术网

Java Selenium web驱动程序:45000毫秒后无法连接到端口7055上的主机127.0.0.1。Firefox控制台输出:ce6fd}

Java Selenium web驱动程序:45000毫秒后无法连接到端口7055上的主机127.0.0.1。Firefox控制台输出:ce6fd},java,selenium,firefox,intellij-idea,Java,Selenium,Firefox,Intellij Idea,当我运行SeleniumWebDriver脚本时,出现了一个名为 "org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output". 使用的平台: Firefox-44.0.2 selenium web驱动程序-2.48.2 语言-java 我还尝试了谷歌对不同版本的firefox

当我运行SeleniumWebDriver脚本时,出现了一个名为

"org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output".
使用的平台:

  • Firefox-44.0.2
  • selenium web驱动程序-2.48.2
  • 语言-java

  • 我还尝试了谷歌对不同版本的firefox和selenium的建议,但我仍然面临这个问题。请帮助我克服此错误。

    尝试在最新的Firefox上使用Selenium 3.0.1。不要忘记将系统变量设置为其路径:

    System.setProperty("webdriver.gecko.driver","path of geckodriver.exe");
    WebDriver driver = new FirefoxDriver();
    

    尝试在最新的Firefox中使用Selenium 3.0.1。不要忘记将系统变量设置为其路径:

    System.setProperty("webdriver.gecko.driver","path of geckodriver.exe");
    WebDriver driver = new FirefoxDriver();
    

    谢谢@Moshisho您的解决方案对我有效,但我可以通过我的脚本(如谷歌和其他网站)访问正常url,而无需安全认证。但是,当我试图访问需要手动添加认证例外的project web url时,我的脚本将在手动添加认证例外的步骤停止,并且我收到如下错误:“错误加载页面(警告:服务器未提供任何跟踪信息)(……)”请向我推荐需要新问题的解决方案;)更多细节。。。我不知道你的项目如何接受证书,也许你可以通过REST调用或类似的方式解决这个问题……好的,我将创建新问题谢谢你的解决方案谢谢@Moshisho你的解决方案对我有效,但我可以通过我的脚本(如谷歌和其他网站)访问正常的url,而无需安全认证。但是,当我试图访问需要手动添加认证例外的project web url时,我的脚本将在手动添加认证例外的步骤停止,并且我收到如下错误:“错误加载页面(警告:服务器未提供任何跟踪信息)(……)”请向我推荐需要新问题的解决方案;)更多细节。。。我不知道你的项目是如何接受证书的,也许你可以通过REST调用或类似的方式来解决这个问题……好的,我将创建一个新问题,谢谢你的解决方案