1、安装selenium
1.1 先安装python
打开 Python官网 www.python.org,找到“Download”, 在其下拉菜单中选择自己的平台(Windows/Mac),一般的Linux平台已经自带的Python,所以不需要安装,通过打开“终端” ,输入“python”命令来验证。
目前存在Python2.x和python3.x(最新版本);
下载Python时会出现很多版本软件选择:
Python 3.6.1 - 2017-03-21
Download Windows x86 web-based installer
Download Windows x86 executable installer
Download Windows x86 embeddable zip file
Download Windows x86-64 web-based installer
Download Windows x86-64 executable installer
Download Windows x86-64 embeddable zip file
Download Windows help file
x86 只支持32位的系统;
x86-64 支持64位的系统。
web-based 在安装的过程中需要联网;
executable 可执行文件(.exe)方式安装;
embeddable zip file 嵌入式版本,可以集成到其它应用中。
注意:在安装x86-64 web-base的过程中需要勾选:“Add Python 3.x to PATH” , 如果没有勾选,需要在安装完成之后,将Python的安装目录(