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文件
  • 热门搜索
    韩国济州岛旅游 黄山旅游价格 2月份适合去哪里旅游 保定旅游攻略 十一旅游团 体育旅游 深圳香港旅游 昆明到西双版纳旅游 苏杭旅游攻略 沙坡头旅游