0

--binary=/usr/bin/firefox
--port=4444
http://127.0.0.1:4444/session

<Net::HTTPInternalServerError:0x00000001865438>

/var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/response.rb:69:in `assert_ok': Process unexpectedly closed with status 1 (Selenium::WebDriver::Error::UnknownError)

    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/response.rb:32:in `initialize'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/http/common.rb:84:in `new'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/http/common.rb:84:in `create_response'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/http/default.rb:106:in `request'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/http/common.rb:62:in `call'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/bridge.rb:164:in `execute'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/remote/bridge.rb:97:in `create_session'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/firefox/marionette/driver.rb:50:in `initialize'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/firefox/driver.rb:31:in `new'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/firefox/driver.rb:31:in `new'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/driver.rb:52:in `for'
    from /var/lib/gems/2.3.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver.rb:86:in `for'
    from /var/lib/gems/2.3.0/gems/watir-6.10.3/lib/watir/browser.rb:48:in `initialize'
    from firefox.rb:4:in `new'
    from firefox.rb:4:in `<main>'
    
    

geckodriver 的启动参数为--binary=/usr/bin/firefox --port=4444
geckodriver错误返回#<Net::HTTPInternalServerError:0x00000001865438>
selenium模块访问geckodiver的http://127.0.0.1:4444/session

赵明 2
2018-06-28 提问
0 个回答

撰写答案

推广链接