selenium.common.exceptions.WebDriverException:消息:连接被拒绝(使用Browser()函数后的长时间段)

时间:2017-10-05 20:30:40

标签: python selenium web-applications splinter

我正在尝试执行以下教程:https://splinter.readthedocs.io/en/latest/tutorial.html

错误信息是:

selenium.common.exceptions.WebDriverException: Message: connection refused

我被困在我试图执行的地方

browser = Browser()

geckodriver.log里面有很多东西,我会给出顶部和底部的一些

1507234197323   geckodriver INFO    geckodriver 0.19.0
1507234197399   geckodriver INFO    Listening on 127.0.0.1:53887
1507234198443   mozrunner::runner   INFO    Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-profile" "/var/folders/1_/pyjxm9nn15qdx2hxhpczsb6h0000gn/T/rust_mozprofile.wOgxwnTgLlj0"

底部:

1507235042100   addons.productaddons    INFO    Downloaded file will be saved to /private/var/folders/1_/pyjxm9nn15qdx2hxhpczsb6h0000gn/T/TemporaryItems/tmpaddon
1507235043389   addons.productaddons    INFO    downloadXHR File download. status=200
1507235043392   addons.productaddons    INFO    Downloaded file will be saved to /private/var/folders/1_/pyjxm9nn15qdx2hxhpczsb6h0000gn/T/TemporaryItems/tmpaddon

知道如何解决这个问题吗?我也想使用谷歌浏览器而不是Mozilla Firefox。请帮帮我

P.S:我试图检查另一个有类似问题的威胁,但我们的geckodriver日志不同。

0 个答案:

没有答案