GeckoDriver GeckoDriver用于驱动Firefox,在这之前请确保已经正确安装好了Firefox浏览器并可以正常运行。

GeckoDriver用于驱动Firefox,在这之前请确保已经正确安装好了Firefox浏览器并可以正常运行。

一、GeckoDriver的安装

GitHub:https://github.com/mozilla/geckodriver

下载地址:https://github.com/mozilla/geckodriver/releases

Python代码,在程序中测试一下:

1
2
from  selenium  import  webdriver
browser  =  webdriver.Firefox()

一、GeckoDriver的安装

GitHub:https://github.com/mozilla/geckodriver

下载地址:https://github.com/mozilla/geckodriver/releases

Python代码,在程序中测试一下:

1
2
from  selenium  import  webdriver
browser  =  webdriver.Firefox()

猜你喜欢

转载自www.cnblogs.com/wenjing2019/p/12027662.html