2016-09-27 26 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及其工作感謝您的建議。 –

相關問題