在selenium webdriver上运行脚本时出现以下错误.Firefox版本是47.0&硒版本是2.53.help me

时间:2016-06-29 06:47:50

标签: selenium firefox selenium-webdriver

org.openqa.selenium.firefox.NotConnectedException:45000 ms后无法在端口7055上连接到主机127.0.0.1。 Firefox控制台输出:-7e08-4474-a285-3208198ce6fd}"," syncGUID":" Ibg45AKVHxci"," location":" appglobal& #34;"版本":" 47.0""类型":"主题"" INTERNALNAME&#34 ;: "经典/ 1.0""器updateURL":空," updateKey":空," optionsURL":空," optionsType& #34;:空," aboutURL":空,"图标" {" 32":"的icon.png"&#34 ; 48":"的icon.png"}" iconURL":空," icon64URL":空," defaultLocale {"名称":"默认""描述":" Thedefaulttheme""创建器":" Mozilla的&#34 ;," homepageURL":空,"贡献者[" MozillaContributors"]}"可见":真,"有源&#34 ;: true," userDisabled":false," appDisabled":false," descriptor":" C:\ Program Files \ Mozilla Firefox \ browser \ extensions \ {972ce4c6-7e08-4474a285-3208198ce6fd}的.xpi"" installDate":1466515023522," updateDate&#3 4;:1466515023522," applyBackgroundUpdates":1,"设置外观的":真,"大小":22006" sourceURI":空,& #34; releaseNotesURI":空," softDisabled":假," foreignInstall":假," hasBinaryComponents":假," strictCompatibility&#34 ;:真,"区域设置":[]," targetApplications":[{" ID":" {ec8030f7c20a464f9b0e13a3a9e97384}"&# 34; MINVERSION":" 47.0"" MAXVERSION":" 47.0"}]," targetPlatforms":[], " see":true} 1467181409746 addons.xpi DEBUG getModTime:{972ce4c6-7e08-4474-a285-3208198ce6fd}的递归扫描1467181409748 DeferredSave.extensions.json DEBUG保存更改1467181409748 addons.xpi DEBUG使用更改更新数据库安装附加组件1467181409748 addons.xpi-utils DEBUG更新附加组件状态1467181409749 addons.xpi-utils DEBUG编写附加组件列表 1467181409753 addons.xpi DEBUG为C:\ Program Files \ Mozilla Firefox \ browser \ features \ e10srollout@mozilla.org.xpi注册清单 1467181409753 addons.xpi DEBUG在e10srollout@mozilla.org上调用bootstrap方法启动版本1.01467181409754 addons.xpi DEBUG为C:\ Program Files \ Mozilla Firefox \ browser \ features \ firefox@getpocket.com.xpi注册清单1467181409754 addons.xpi DEBUG调用bootstrap方法启动在firefox@getpocket.com版本1.0.2 1467181409755 addons.xpi DEBUG为C:\ Program Files \ Mozilla Firefox \ browser \ features \ loop@mozilla.org.xpi注册清单 1467181409756 addons.xpi DEBUG在loop@mozilla.org上调用bootstrap方法启动版本1.3.2 1467181409774 addons.manager DEBUG为XPIProvider注册shutdown blocker 1467181409774 addons.manager DEBUG Provider完成启动:XPIProvider     1467181409774 addons.manager DEBUG启动提供程序:LightweightThemeManager     1467181409774 addons.manager DEBUG为LightweightThemeManager注册关闭阻止程序     1467181409774 addons.manager DEBUG Provider完成启动:LightweightThemeManager     1467181409775 addons.manager DEBUG启动提供程序:GMPProvider     1467181409782 addons.manager DEBUG为GMPProvider注册关闭阻止程序     1467181409782 addons.manager DEBUG提供程序已完成启动:GMPProvider     1467181409782 addons.manager DEBUG启动提供程序:PluginProvider     1467181409782 addons.manager DEBUG为PluginProvider注册关闭阻止程序     1467181409783 addons.manager DEBUG Provider完成启动:PluginProvider     1467181409783 addons.manager DEBUG完成启动顺序     1467181411397 DeferredSave.extensions.json DEBUG开始写     1467181411403 addons.manager DEBUG开始提供者:     1467181411403 addons.manager DEBUG注册关闭阻止程序     1467181411403 addons.manager DEBUG Provider完成启动:     1467181412587 addons.repository DEBUG找不到addons.json。     1467181412588 DeferredSave.addons.json DEBUG保存更改     1467181412603 DeferredSave.addons.json DEBUG启动计时器     1467181412727 addons.manager DEBUG Starting provider:PreviousExperimentProvider     1467181412727 addons.manager DEBUG为PreviousExperimentProvider注册关闭阻止程序     1467181412728 addons.manager DEBUG Provider完成启动:PreviousExperimentProvider     1467181412732 DeferredSave.extensions.json DEBUG写成功     1467181412733 addons.xpi-utils已保存DEBUG XPI数据库,将架构版本首选项设置为17     1467181412734 DeferredSave.addons.json DEBUG开始写     1467181412829 DeferredSave.addons.json DEBUG写成功

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
    at GmailLogintest.setUp(GmailLogintest.java:24)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

0 个答案:

没有答案