Firefox 窗口已打开但 URL 未放置在地址栏中 [英] Firefox window is opened but the URL is not placed in the address bar

查看:25
本文介绍了Firefox 窗口已打开但 URL 未放置在地址栏中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Webdriver 的初学者.

I am the beginner of the Webdriver.

我从 firefox IDE 导出到 webdriver 的脚本运行成功,但问题是我编写了一个非常简单的脚本来加载 google 主页.

My script exported from firefox IDE to webdriver is running successfully but the problem I written the very simple script to load the google home page.

import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.firefox.FirefoxDriver; 

public class sample { 
    public static void main(String[] args) { 
       WebDriver test = new FirefoxDriver(); 
       test.get("www.google.com"); 
    }
}

发生的情况是 Firefox 网络浏览器正在打开,但 URL 未发送到地址栏.结果,我收到如下所示的错误:

What's happening was that the Firefox web-browser is opening but the URL is not sent to the address bar. As a result I am getting an error as shown below:

错误

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

提前致谢

推荐答案

将 Firefox 版本从最新版本降级到 FF 22.0 后问题解决

The problem is solved when i downgraded the Firefox version from latest version to FF 22.0

这篇关于Firefox 窗口已打开但 URL 未放置在地址栏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆