http://marionette-client.readthedocs.org/en/latest/中的木偶中的此简单脚本无法连接(连接被拒绝失败)
from marionette import Marionette
client = Marionette(host='localhost', port=2828)
client.start_session()
我已经尝试将
localhost
替换为'127.0.0.1'和其他端口,但是得到了相同的结果。我正在使用Windows 8.1
错误:
socket.error: [Errno 10061] No se puede establecer una conexión ya que el equipo
de destino denegó expresamente dicha conexión
最佳答案
我需要使用以下命令行在firefox上启用木偶功能:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -marionette
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Builds
关于python - 尝试在marionette_client上启动 session 的错误10061,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24857611/