文章分类 -  python - selenium

Now, in Selenium 3 you will have to add an executable to its path like how you set system.setproperty. That’s the way going forward as Browser vendors will take care of their own Driver implementation.
摘要:查找条件对象有id,name,classname,tagname等等,下面依次介绍经常使用的查找条件。Webdriver提供了对单个对象定位的方法,汇总如下: 1.id 1 #coding:utf-8 2 from selenium import webdriver 3 from selenium. 阅读全文
posted @ 2017-02-14 11:42 农民伯伯在城市 阅读(101) 评论(1) 推荐(0)
摘要:1、Firefox浏览器 Firefox浏览器是最容易配置和使用webdriver的,只要下载webdriver Client Driver,Firefox就可以直接来使用(建议默认方式安装Firefox即可,但是不要安装最新版本),下面的代码是对Firefox简单的操作: 1 #coding:ut 阅读全文
posted @ 2017-02-14 10:45 农民伯伯在城市 阅读(72) 评论(0) 推荐(0)
摘要:1、安装python过程中,安装过程中选择Enter feature will be installed on local hard drive,这样就会自动安装setuptools和pip,setuptools是python基础包管理工具,pip是python安装包管理工具,选择后就会自动安装se 阅读全文
posted @ 2017-02-14 09:29 农民伯伯在城市 阅读(162) 评论(0) 推荐(0)