Python 壁虎河没有反应

Python 壁虎河没有反应,python,selenium,selenium-webdriver,geckodriver,Python,Selenium,Selenium Webdriver,Geckodriver,我使用geckodriver和python selenium。简单命令driver=Webdriver.Firefox(),挂起python脚本。我调试后发现geckodriver没有响应。手动启动geckodriver,curl也没有响应。但是firefox实例已经启动并准备就绪,但是geckodriver没有发送任何HTTP响应。关于如何进一步调试有什么想法吗?即使它需要在geckodriver上进行修补,我也愿意尝试 $ geckodriver --port 57738 &>

我使用geckodriver和python selenium。简单命令
driver=Webdriver.Firefox()
,挂起python脚本。我调试后发现geckodriver没有响应。手动启动geckodriver,curl也没有响应。但是firefox实例已经启动并准备就绪,但是geckodriver没有发送任何HTTP响应。关于如何进一步调试有什么想法吗?即使它需要在geckodriver上进行修补,我也愿意尝试

$ geckodriver --port 57738 &> gecko.log &
[1] 16123
$ jobs
[1]  + running    geckodriver --port 57738 &> gecko.log
$ curl -v --data '{"requiredCapabilities": {}, "desiredCapabilities": {"javascriptEnabled": true, "browserName": "firefox", "version": "", "platform": "ANY", "marionette": true}}' http://127.0.0.1:57738/session
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 57738 (#0)
> POST /session HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:57738
> Accept: */*
> Content-Length: 160
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 160 out of 160 bytes
壁虎原木

$ cat gecko.log 
1479507861533   geckodriver INFO    Listening on 127.0.0.1:57738
1479507874758   mozprofile::profile INFO    Using profile path /tmp/rust_mozprofile.fkk6AqrNIGxB
1479507874759   geckodriver::marionette INFO    Starting browser /usr/bin/firefox
1479507874763   geckodriver::marionette INFO    Connecting to Marionette on localhost:36577
+ exec /usr/bin/firefox.real --marionette --profile /tmp/rust_mozprofile.fkk6AqrNIGxB

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

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

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

(firefox:16144): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1479507875413   Marionette  INFO    Listening on port 36577

您能告诉我们您使用的geckodeiver、Firefox和Selenium版本是什么吗?Selenium'3.0.1'geckodriver'v0.11.1'Firefox 50.0我刚刚再试了一次,现在不再看到这个问题。这是暂时的:(由于geckdriver的功能尚未完成,而您使用的是最新的Firefox浏览器,这可能是兼容性问题。请始终记住。如果您使用的是Firefox 48及更高版本,请始终使用最新的geckodriver。我怀疑它与我得到的功能相同--希望它也会为我消失。。。