使用splinter 0.8.0后,Firefox无法工作

时间:2018-05-17 13:56:46

标签: python-3.x firefox splinter

我刚刚安装了碎片0.8.0。我这样安装它:
 1.Firstly, I have had installed anaconda and the corresponding spyder supports python3.7 2.I installed the latest selenium by using "pip install selenium" on cmd.exe 3.I used "pip -m install splinter" to install splinter0.8.0 4.I installed geckodriver from the github click here 5.I configurated the environment by getting the geckodriver.exe copied to the directory which includes fiefox.exe and get the path into the PATH of the computer 6.To this, the splinter could open firefox but always got some exceptions.. 7*.When I then opened the firefox with mouse clicking, the firefox started with page white. And no matter what I input into the search box, nothing happened. What's more, I found that the developer tools couldn't be opened. And all these cases happened when I started firefox through desktop shortcut. Interestingly, when I started it in its directory which it's originally at, the firefox could work. But in this case when I open a new blank page, it didn't work too... 这太混乱了!谢谢你的帮助!

1 个答案:

答案 0 :(得分:0)

原因可能是计算机一直工作很长时间,如果你完全关闭它并重新启动它,Firefox可能会活跃起来。 (也可能是因为Win10需要放松)。 如果这不起作用,我推荐chromedriver。