Windows7+Python环境安装Selenium及Firefox驱动

 时间:2024-11-21 12:29:48

1、在python安装目录下的script目录,按住shift然后单击鼠标右键,就能打开cmd(命令行窗口)窗口。

Windows7+Python环境安装Selenium及Firefox驱动Windows7+Python环境安装Selenium及Firefox驱动Windows7+Python环境安装Selenium及Firefox驱动

2、按下图输入,即可安装selenium。,笔者已经安装过selenium,所以显示already。

Windows7+Python环境安装Selenium及Firefox驱动

3、安装完selenium后,接下来就是浏览器驱动的安装了。笔者只演示了Firefox驱动的安装,其它浏览器驱动与此相同。下载完成后进行解压,然后将geckodriver.exe分别移动到python根目录和Firefox的根目录即可。

Windows7+Python环境安装Selenium及Firefox驱动Windows7+Python环境安装Selenium及Firefox驱动Windows7+Python环境安装Selenium及Firefox驱动Windows7+Python环境安装Selenium及Firefox驱动

4、到现在安装工作都做完了,打开python的IDLE进行测试。如下图:

Windows7+Python环境安装Selenium及Firefox驱动
  • java获取该二维数组最小元素,并输出
  • 如何用webStorm创建项目?
  • a标签的下划线怎么去掉
  • html中怎样在文本框中添加小图标
  • html怎么引用css文件
  • 热门搜索
    什么叫有机 心灵鸡汤什么意思 黄芪的功效与作用及禁忌 什么是支气管扩张 经期可以运动吗 买房需要什么证件 互感器的作用 运动会方队解说词 护发素的作用 仙鹤草的作用