当前位置: 首页 > 知识库问答 >
问题:

Selenium启动错误:org。openqa。硒。火狐。NotConnectedException:无法连接到端口7055上的主机127.0.0.1

戚明朗
2023-03-14

当我试图通过java运行一个非常简单的selenium脚本时,我遇到了这个错误。尝试创建新的FireFoxWebDriver()

我在网上看到过类似的错误,但它们都很老了,似乎都没有好的解决方案。我正在使用selenium java和selenium firefox驱动程序2.51.0版。我的firefox版本是43.0.2,selenium网站说他们支持最新版本的firefox,所以我认为这不是问题所在。

任何帮助都非常感谢,谢谢!

 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    1455135105046   addons.xpi  INFO    Mapping fxdriver@googlecode.com to /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com
    1455135105047   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on ID: /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/webdriver-staging
    1455135105047   addons.xpi  INFO    SystemAddonInstallLocation directory is missing
    1455135105047   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
    1455135105047   addons.xpi  DEBUG   Skipping unavailable install location app-system-share
    1455135105048   addons.xpi  DEBUG   checkForChanges
    1455135105048   addons.xpi  DEBUG   Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.40.0","st":1455135098000,"mt":1455135098000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1451941111000,"mt":1451941105000}}}
    1455135105049   addons.xpi  DEBUG   Existing add-on fxdriver@googlecode.com in app-profile
    1455135105049   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
    1455135105049   addons.xpi  DEBUG   Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
    1455135105049   addons.xpi  DEBUG   getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.40.0","st":1455135098000,"mt":1455135098000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1451941111000,"mt":1451941105000}}}
    1455135105050   addons.xpi  DEBUG   No changes found
    1455135105056   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
    1455135105056   addons.manager  DEBUG   Provider finished startup: XPIProvider
    1455135105057   addons.manager  DEBUG   Starting provider: LightweightThemeManager
    1455135105057   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
    1455135105057   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
    1455135105058   addons.manager  DEBUG   Starting provider: GMPProvider
    1455135105061   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
    1455135105061   addons.manager  DEBUG   Provider finished startup: GMPProvider
    1455135105061   addons.manager  DEBUG   Starting provider: PluginProvider
    1455135105062   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
    1455135105062   addons.manager  DEBUG   Provider finished startup: PluginProvider
    1455135105062   addons.manager  DEBUG   Completed startup sequence
    1455135105092   addons.xpi-utils    DEBUG   Starting async load of XPI database /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions.json
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1455135105216   addons.manager  DEBUG   Starting provider: <unnamed-provider>
    1455135105216   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
    1455135105216   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
    1455135105625   addons.xpi-utils    DEBUG   Async JSON file read took 0 MS
    1455135105625   addons.xpi-utils    DEBUG   Finished async read of XPI database, parsing...
    1455135105626   addons.xpi-utils    DEBUG   Successfully read XPI database
    1455135105684   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
    1455135105684   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
    1455135105685   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider

        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
        at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:112)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:192)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:187)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:96)
        at selenium.AppDriverImpl.<init>(AppDriverImpl.java:35)
        at selenium.SeleniumTestIT.test(SeleniumTestIT.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)

    org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/Applications/Firefox.app/Contents/MacOS/firefox-bin) on port 7055; process output follows: 
    1455135105046   addons.xpi  INFO    Mapping fxdriver@googlecode.com to /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com
    1455135105047   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on ID: /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/webdriver-staging
    1455135105047   addons.xpi  INFO    SystemAddonInstallLocation directory is missing
    1455135105047   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
    1455135105047   addons.xpi  DEBUG   Skipping unavailable install location app-system-share
    1455135105048   addons.xpi  DEBUG   checkForChanges
    1455135105048   addons.xpi  DEBUG   Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.40.0","st":1455135098000,"mt":1455135098000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1451941111000,"mt":1451941105000}}}
    1455135105049   addons.xpi  DEBUG   Existing add-on fxdriver@googlecode.com in app-profile
    1455135105049   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
    1455135105049   addons.xpi  DEBUG   Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
    1455135105049   addons.xpi  DEBUG   getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.40.0","st":1455135098000,"mt":1455135098000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1451941111000,"mt":1451941105000}}}
    1455135105050   addons.xpi  DEBUG   No changes found
    1455135105056   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
    1455135105056   addons.manager  DEBUG   Provider finished startup: XPIProvider
    1455135105057   addons.manager  DEBUG   Starting provider: LightweightThemeManager
    1455135105057   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
    1455135105057   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
    1455135105058   addons.manager  DEBUG   Starting provider: GMPProvider
    1455135105061   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
    1455135105061   addons.manager  DEBUG   Provider finished startup: GMPProvider
    1455135105061   addons.manager  DEBUG   Starting provider: PluginProvider
    1455135105062   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
    1455135105062   addons.manager  DEBUG   Provider finished startup: PluginProvider
    1455135105062   addons.manager  DEBUG   Completed startup sequence
    1455135105092   addons.xpi-utils    DEBUG   Starting async load of XPI database /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions.json
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1455135105216   addons.manager  DEBUG   Starting provider: <unnamed-provider>
    1455135105216   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
    1455135105216   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
    1455135105625   addons.xpi-utils    DEBUG   Async JSON file read took 0 MS
    1455135105625   addons.xpi-utils    DEBUG   Finished async read of XPI database, parsing...
    1455135105626   addons.xpi-utils    DEBUG   Successfully read XPI database
    1455135105684   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
    1455135105684   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
    1455135105685   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider

    Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47'
    System info: host: 'Caseys-MBP-2', ip: '192.168.1.75', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.3', java.version: '1.8.0_45'
    Driver info: driver.version: FirefoxDriver
        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
        at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:112)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:192)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:187)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:96)
        at selenium.AppDriverImpl.<init>(AppDriverImpl.java:35)
        at selenium.SeleniumTestIT.test(SeleniumTestIT.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
    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:
    1455135105046   addons.xpi  INFO    Mapping fxdriver@googlecode.com to /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com
    1455135105047   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on ID: /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/webdriver-staging
    1455135105047   addons.xpi  INFO    SystemAddonInstallLocation directory is missing
    1455135105047   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
    1455135105047   addons.xpi  DEBUG   Skipping unavailable install location app-system-share
    1455135105048   addons.xpi  DEBUG   checkForChanges
    1455135105048   addons.xpi  DEBUG   Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.40.0","st":1455135098000,"mt":1455135098000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1451941111000,"mt":1451941105000}}}
    1455135105049   addons.xpi  DEBUG   Existing add-on fxdriver@googlecode.com in app-profile
    1455135105049   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
    1455135105049   addons.xpi  DEBUG   Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
    1455135105049   addons.xpi  DEBUG   getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"/var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions/fxdriver@googlecode.com","e":false,"v":"2.40.0","st":1455135098000,"mt":1455135098000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.2","st":1451941111000,"mt":1451941105000}}}
    1455135105050   addons.xpi  DEBUG   No changes found
    1455135105056   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
    1455135105056   addons.manager  DEBUG   Provider finished startup: XPIProvider
    1455135105057   addons.manager  DEBUG   Starting provider: LightweightThemeManager
    1455135105057   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
    1455135105057   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
    1455135105058   addons.manager  DEBUG   Starting provider: GMPProvider
    1455135105061   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
    1455135105061   addons.manager  DEBUG   Provider finished startup: GMPProvider
    1455135105061   addons.manager  DEBUG   Starting provider: PluginProvider
    1455135105062   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
    1455135105062   addons.manager  DEBUG   Provider finished startup: PluginProvider
    1455135105062   addons.manager  DEBUG   Completed startup sequence
    1455135105092   addons.xpi-utils    DEBUG   Starting async load of XPI database /var/folders/hn/5gwsh3wj3v198z7w59srnrh00000gn/T/anonymous724724030317929263webdriver-profile/extensions.json
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1455135105216   addons.manager  DEBUG   Starting provider: <unnamed-provider>
    1455135105216   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
    1455135105216   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
    1455135105625   addons.xpi-utils    DEBUG   Async JSON file read took 0 MS
    1455135105625   addons.xpi-utils    DEBUG   Finished async read of XPI database, parsing...
    1455135105626   addons.xpi-utils    DEBUG   Successfully read XPI database
    1455135105684   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
    1455135105684   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
    1455135105685   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider

        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
        ... 30 more

共有2个答案

楚嘉
2023-03-14

如果您使用的是selenium版本3:

System.setProperty("webdriver.gecko.driver","C:\\Users\\vipin\\Downloads\\Compressed\\geckodriver.exe");

如果上述属性不起作用或无法在浏览器中打开应用程序,请尝试以下操作:

System.setProperty("webdriver.firefox.marionette","C:\\Users\\vipin\\Downloads\\Compressed\\geckodriver.exe");
商同
2023-03-14

检查您的传递依赖关系,并确保您确实使用了您认为是的Selenium版本(2.51.0)

回顾FirefoxDriver的历史,它对连接的调用。start()已经很长时间没有出现在第247行了(比如,2014年)。现在是271。

我怀疑你正在使用2.40.0,因为另一个WebDriver组件覆盖了你的首选版本。在这种情况下,你可能会遇到和其他人过去一样的问题。

请参阅:为什么我收到selenium错误“firefox bin预期退出”,并且无法连接到端口7055等上的主机127.0.0.1。

更新:事实上,如果你读到下面的2/3,就会得到确认:

Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc'

大家一致认为问题在于版本不兼容,因此应该升级到最新的WebDriver版本。

 类似资料:
  • 我在尝试启动浏览器时收到此错误消息: org.openqa.selenium.firefox.NotConnected异常:45000 ms后无法连接到端口7055上的主机127.0.0.1。Firefox控制台输出: s":[],"hasEmbeddedWebExtense": false} 我使用的是和。

  • 我收到一个错误:无法连接到端口7055上的主机127.0.0.1 当我尝试在ubuntu服务器上用firefox运行selenium时。 谁能帮忙吗? 我有硒版2.53

  • 我是一个新手,需要一些帮助。. 我正在使用Selenium 2.2.0和FF v7。Windows XP上的0.1 我已经成功地在IE中录制并回放了一个java脚本,但是每当我尝试在FF中执行相同的脚本时,我都会收到以下错误消息: 45000 ms后无法连接到端口7055上的主机127.0.0.1 我在很多地方读到,如果我将firefox版本降级到3.6,脚本将运行良好,但我并不热衷于降级。有人能

  • 在我的eclipse中运行代码(Selenium webDrive/java);但它显示错误45000毫秒后无法连接到端口7055上的主机127.0.0.1。Firefox控制台输出"......代码和错误的截图

  • 我在服务器上运行硒,我希望它在客户端上显示浏览器。我已经在我的服务器上启动了xvfb,如下所示: 然后在我的Java代码上我写道: 但当我启动时,我有一个例外: Selenium的版本是2.47.1,firefox的版本是33.0。

  • Selenium在Firefox中运行量角器测试时未启动。依赖版本详细信息指定如下: 让我知道哪里出了问题,我错过了什么? 节点版本: 量角器版本:业力版本: Selenium版本:火狐版本: Firefox控制台输出: