51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1685|回复: 4
打印 上一主题 下一主题

【求助】selenium webdriver编译的时候出错了

[复制链接]
  • TA的每日心情

    2015-12-29 11:07
  • 签到天数: 20 天

    连续签到: 1 天

    [LV.4]测试营长

    跳转到指定楼层
    1#
    发表于 2015-8-28 16:29:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    如下,求大神帮忙看下,谢谢了

    org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
    BM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\fxdriver@googlecode.com
    1440752080854    addons.xpi    DEBUG    Ignoring file entry whose name is not a valid add-on ID: C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\webdriver-staging
    1440752080856    addons.xpi    INFO    Mapping dict@www.youdao.com to C:\Dict\stable\extensions\firefox
    1440752080858    addons.xpi    INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
    1440752080859    addons.xpi    DEBUG    Skipping unavailable install location app-system-share
    1440752080859    addons.xpi    DEBUG    Skipping unavailable install location app-system-local
    1440752080869    addons.xpi    DEBUG    checkForChanges
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1440752081290    addons.xpi    INFO    Mapping IBM-cck@firefox-extensions.ibm.com to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\IBM-cck@firefox-extensions.ibm.com
    1440752081290    addons.xpi    DEBUG    Installed distribution add-on IBM-cck@firefox-extensions.ibm.com
    1440752082710    addons.xpi    INFO    Mapping ietab@ip.cn to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\ietab@ip.cn
    1440752082711    addons.xpi    DEBUG    Installed distribution add-on ietab@ip.cn
    1440752086903    addons.xpi    INFO    Mapping langpack-en-US@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-en-US@firefox.mozilla.org
    1440752086903    addons.xpi    DEBUG    Installed distribution add-on langpack-en-US@firefox.mozilla.org
    1440752091063    addons.xpi    INFO    Mapping langpack-es-ES@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-es-ES@firefox.mozilla.org
    1440752091063    addons.xpi    DEBUG    Installed distribution add-on langpack-es-ES@firefox.mozilla.org
    1440752095112    addons.xpi    INFO    Mapping langpack-fr@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-fr@firefox.mozilla.org
    1440752095112    addons.xpi    DEBUG    Installed distribution add-on langpack-fr@firefox.mozilla.org
    1440752099170    addons.xpi    INFO    Mapping langpack-it@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-it@firefox.mozilla.org
    1440752099170    addons.xpi    DEBUG    Installed distribution add-on langpack-it@firefox.mozilla.org
    1440752103422    addons.xpi    INFO    Mapping langpack-ja@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-ja@firefox.mozilla.org
    1440752103422    addons.xpi    DEBUG    Installed distribution add-on langpack-ja@firefox.mozilla.org
    1440752107660    addons.xpi    INFO    Mapping langpack-ko@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-ko@firefox.mozilla.org
    1440752107661    addons.xpi    DEBUG    Installed distribution add-on langpack-ko@firefox.mozilla.org
    1440752112117    addons.xpi    INFO    Mapping langpack-pt-BR@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-pt-BR@firefox.mozilla.org
    1440752112118    addons.xpi    DEBUG    Installed distribution add-on langpack-pt-BR@firefox.mozilla.org
    1440752116622    addons.xpi    INFO    Mapping langpack-zh-CN@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-zh-CN@firefox.mozilla.org
    1440752116622    addons.xpi    DEBUG    Installed distribution add-on langpack-zh-CN@firefox.mozilla.org
    1440752120619    addons.xpi    INFO    Mapping langpack-zh-TW@firefox.mozilla.org to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\langpack-zh-TW@firefox.mozilla.org
    1440752120619    addons.xpi    DEBUG    Installed distribution add-on langpack-zh-TW@firefox.mozilla.org

    Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
    System info: host: 'ADMINIB-4V1NQEB', ip: '9.123.212.126', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
    Driver info: driver.version: FirefoxDriver
        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
        at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:223)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:212)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
        at com.example.tests.CFM.setUp(CFM.java:20)
        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.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:50)
        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)
    Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    BM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\fxdriver@googlecode.com
    1440752080854    addons.xpi    DEBUG    Ignoring file entry whose name is not a valid add-on ID: C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\webdriver-staging
    1440752080856    addons.xpi    INFO    Mapping dict@www.youdao.com to C:\Dict\stable\extensions\firefox
    1440752080858    addons.xpi    INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
    1440752080859    addons.xpi    DEBUG    Skipping unavailable install location app-system-share
    1440752080859    addons.xpi    DEBUG    Skipping unavailable install location app-system-local
    1440752080869    addons.xpi    DEBUG    checkForChanges
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1440752081290    addons.xpi    INFO    Mapping IBM-cck@firefox-extensions.ibm.com to C:\Users\IBM_AD~1\AppData\Local\Temp\anonymous7856056425371178995webdriver-profile\extensions\IBM-cck@firefox-extensions.ibm.com
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    无聊
    2020-12-8 11:20
  • 签到天数: 605 天

    连续签到: 1 天

    [LV.9]测试副司令

    2#
    发表于 2015-9-6 15:33:21 | 只看该作者
    JDK8了。。。。。敢问你webdriver什么版本,firefox又是什么版本呢?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2015-12-29 11:07
  • 签到天数: 20 天

    连续签到: 1 天

    [LV.4]测试营长

    3#
     楼主| 发表于 2015-12-29 10:44:06 | 只看该作者
    joykao 发表于 2015-9-6 15:33
    JDK8了。。。。。敢问你webdriver什么版本,firefox又是什么版本呢?

    JDK我换成1.7了还是不行。webdriver是去官网下载的最新版,现在用的是2.48.2。firefox公司这里会强制升级到最新版,是38.5ESR
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2015-12-30 08:17
  • 签到天数: 64 天

    连续签到: 8 天

    [LV.6]测试旅长

    4#
    发表于 2015-12-29 11:47:18 | 只看该作者
    我用的JDK1.8,webdriver 2.48.2,浏览器我用的是IE11,没有问题的
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2015-12-29 11:07
  • 签到天数: 20 天

    连续签到: 1 天

    [LV.4]测试营长

    5#
     楼主| 发表于 2015-12-29 14:55:00 | 只看该作者
    @吕小布 发表于 2015-12-29 11:47
    我用的JDK1.8,webdriver 2.48.2,浏览器我用的是IE11,没有问题的

    好吧,我试一下IE
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-22 07:31 , Processed in 0.068070 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表