2016-09-27 73 views
0

无法在Firefox浏览器中导航特定的URL。我写了这个示例代码:无法在Firefox浏览器中导航特定的URL。

public class TestUrl 

{ 
public static void main(String args[])throws Exception 
{ 


WebDriver fd=new FirefoxDriver(); 
Thread.sleep(3000L); 
fd.navigate().to("http://www.facebook.com"); 


} 

} 

我收到错误:

org.openqa.selenium.firefox.NotConnectedException:无法连接后45000毫秒到主机端口7055 127.0.0.1 。 Firefox控制台输出: dons.xpi DEBUG更新XPIState for {“id”:“[email protected]”,“syncGUID”:“{0652d9a4-3656-4279-8810-8a89767444bb}”,“location”:“”winreg-应用全局”, “版本”: “10.3.5.39”, “类型”: “扩展名”, “INTERNALNAME”:空, “器updateURL”:空, “updateKey”:空, “optionsURL”:空, “optionsType” :空, “aboutURL”:空, “图标”:{}, “iconURL”: “铬://sp/content/common/skin/img/logo-safeprice-48.png”, “icon64URL”:空, “defaultLocale”:{“name”:“Avast SafePrice”,“description”:“Safe shopping extension”,“creator”:“AVAST Software”,“homepageURL”:“http://www.avast.com/”},“visible” “:false,”userDisabled“:true,”appDisabled“:false,”descriptor“:”C:\ Program Files \ AVAST Software \ Avast \ SafePrice \ FF“,”installDate“:1474951630115,”updateDate“:1474951630115, applyBackgroundUpdates “:1,” 引导 “:真正的” 换肤功能 “:假的,” 大小 “:1877359”,sourceURI “:空,” releaseNotesURI “:空,” softDisabled “:假的,” foreignInstall “:真实的,” hasBinaryComponents” :假的,“strictCompatibili TY “:假,” 区域设置 “:[],” targetApplications “:[{” ID “:”{ec8030f7-C20A-464f-9b0e-13a3a9e97384} “ ”MINVERSION“: ”38.0a1“, ”MAXVERSION“:” “targetPlatforms”:[],“multiprocessCompatible”:false,“signedState”:2,“seen”:true} 1474957798423 DeferredSave.extensions.json DEBUG保存更改 1474957798423 addons.xpi DEBUG使用更改更新数据库已安装的加载项 1474957798424 addons.xpi-utils的DEBUG更新附加状态 1474957798425 addons.xpi-utils的DEBUG编写插件列表

回答

0

请更新您的“硒独立服务器瓶”最新版本,并降级你的Firefox的最新版本(意味着使用Firefox的最低/稳定版本),这可能会帮助你。

+0

嘿谢谢哥们..我降级到Firefox安装程序46.0.1及其工作感谢您的建议。 –

相关问题