简体   繁体   English

Windows:Seleniumwebdriver。Firefox挂起

[英]Windows: Selenium webdriver.Firefox hangs

I am new to windows and this is the first time I am running a Python program on windows. 我是Windows新手,这是我第一次在Windows上运行Python程序。

I am running a crawler program that uses selenium and firefox webdriver. 我正在运行一个使用Selenium和Firefox WebDriver的搜寻器程序。 My program runs successfully on mac/ubuntu, but on windows 我的程序在Mac / Ubuntu上成功运行,但是在Windows上

webdriver.Firefox()

open a new geckodriver window(cmd like window) and just hangs there nothing after that. 打开一个新的geckodriver窗口(类似于cmd的窗口),然后将其挂在那里。 Program doesn't move forward after that. 在那之后程序不会前进。

Windows 7 geckodriverv0.13 Windows 7 geckodriverv0.13

Your problem is most likely the compatibility between Firefox and your GeckoDriver. 您的问题很可能是Firefox与GeckoDriver之间的兼容性。 Try using the latest Firefox and geckodriver . 尝试使用最新的Firefox和geckodriver If you have a problem with Firefox, try reinstalling it and disable automatic updating. 如果Firefox有问题,请尝试重新安装它并禁用自动更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM