【问题标题】:Firefox doesn't open when run on Jenkins server in headless mode在 Jenkins 服务器上以无头模式运行时,Firefox 无法打开
【发布时间】:2018-05-08 10:49:45
【问题描述】:

在 Jenkins 服务器上以无头模式运行时,Firefox 无法打开。它给出了以下错误日志。我正在使用 Firefox 55 和 selenium 3.6.0

1511524678151   geckodriver INFO    geckodriver 0.19.0
1511524678162   geckodriver INFO    Listening on 127.0.0.1:24440
1511524678479   mozrunner::runner   INFO    Running command: "/usr/local/firefox/firefox" "-marionette" "-profile" 

"/tmp/rust_mozprofile.X3S4fow8aJXO"
        1511524678981   Marionette  INFO    Enabled via --marionette

        (firefox:7518): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

        (firefox:7518): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

        (firefox:7518): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

        (firefox:7518): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

        (/usr/local/firefox/firefox:7577): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

        (/usr/local/firefox/firefox:7577): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

        (/usr/local/firefox/firefox:7577): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

        (/usr/local/firefox/firefox:7577): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
        1511524680359   Marionette  INFO    Listening on port 48472
        1511524680397   Marionette  WARN    TLS certificate errors will be ignored for this session
        JavaScript error: chrome://marionette/content/server.js, line 337: NS_ERROR_SOCKET_ADDRESS_IN_USE: Component returned failure code: 0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.initSpecialConnection]
        1511524680436   Marionette  DEBUG   loaded listener.js
        Nov 24, 2017 11:58:00 AM org.openqa.selenium.remote.ProtocolHandshake createSession
        INFO: Detected dialect: W3C
        DEBUG   2017-11-24 11:58:00,576 [main] com.wso2telco.tests.apimanager.base.BasicTestObject  - FireFox LauncheBrowser method finished
        DEBUG   2017-11-24 11:58:00,576 [main] com.wso2telco.tests.apimanager.base.BasicTestObject  - FireFox Maximizing
        DEBUG   2017-11-24 11:58:00,598 [main] com.wso2telco.tests.apimanager.base.BasicTestObject  - Screenshor Captured
        DEBUG   2017-11-24 11:58:00,688 [main] com.wso2telco.tests.apimanager.base.BasicTestObject  - FireFox Maximized
        1511524680767   Marionette  INFO    New connections will no longer be accepted

Firefox 无法运行的原因是什么?

【问题讨论】:

    标签: java selenium firefox jenkins cucumber


    【解决方案1】:

    更新您的 Firefox 浏览器。此问题已在 FF-56.0 中解决。

    【讨论】:

    • 我也更新到 56 和 57 发现同样的问题
    • 也更新 geckodriver。来自here
    猜你喜欢
    • 2019-08-12
    • 2018-10-18
    • 2021-07-11
    • 2019-02-04
    • 1970-01-01
    • 2018-06-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多