Selenium3 简明教程(Python版)
2017-06-30 12:00
369 查看
Selenium3简明教程
安装测试
Selenium3简明教程安装测试
环境准备
Selenium简介
selenium安装
测试一下
环境准备
使用Windows操作系统;安装Chrome和Firefox浏览器;
安装Pyhton 2.7.13
本文所使用的资源可以从这里下载:链接:http://pan.baidu.com/s/1jHCsIO2 密码:s9j7
Selenium简介
关于Selenium的简介和历史,请自行搜索。selenium安装
在线安装:pip install selenium离线安装:pip install 你下载的Selenium文件
selenium 下载地址:https://pypi.python.org/pypi/selenium
测试一下
测试安装配置是否完善,核心代码如下:>> from selenium import webdriver >> driver = webdriver.Chrome() # 创建一个Chrome浏览器对象
出现WebDriverException: Message: ‘chromedriver’异常时,下载一个chromedriver,并把它放到python安装目录下即可。
chromedriver下载地址:https://npm.taobao.org/mirrors/chromedriver
再次执行
>> driver = webdriver.Chrome(),如果不出意外,将成功启动Chrome浏览器,如下图所示:
相关文章推荐
- 简明 Python 教程
- 简明 Python 教程--图形软件
- Selenium RC For Python:教程4
- 简明 Python 教程
- 简明Python教程的一个例子
- 简明Python教程(中文版)
- Python 简明教程 (入门必看)
- Selenium RC For Python:教程2
- Selenium RC For Python:教程1
- mongoDB简明教程-python(转)
- 简明 Python 教程--附加资料
- [ 转]简明 Python 教程
- 简明 Python 教程
- Selenium RC For Python:教程3
- 简明python教程自学笔记(1)
- 简明Python 教程 --模块
- 简明Python教程
- 简明 Python 教程
- 简明 Python 教程
- 简明python教程网址