上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页
摘要: 常用操作click点击某个元素driver.find_element_by_id(“su”).click()cleardriver.find_element_by_id(“kw”).clear()send_keys模拟键盘输入driver.find_element_by_id(“kw”).send_... 阅读全文
posted @ 2015-11-20 13:28 微微微笑 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: 总结定位查找时,返回查找到的第一个match的元素。如果找不到,则 raise NoSuchElementException单个元素定位:find_element_by_idfind_element_by_namefind_element_by_xpathfind_element_by_link_t... 阅读全文
posted @ 2015-11-20 13:17 微微微笑 阅读(558) 评论(0) 推荐(0) 编辑
摘要: AJAX,即“AsynchronousJavascriptAnd XML”。可以实现网页的异步更新。也就是在不重新加载整个网页的情况下,对网页的某部分进行更新。现在大多数网站都使用AJAX技术,这使得网页加载完成之后有些元素还没有出现。为了解决这个问题,保证脚本运行的稳定性,selenium使用了等... 阅读全文
posted @ 2015-11-20 11:32 微微微笑 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 新建driverdriver=webdriver.Firefox()driver=webdriver.Ie()driver=webdriver.Chrome()打开一个链接driver.get(“http://www.baidu.com”)一定要输入全部链接,包括“http://”,否则可能找不到。... 阅读全文
posted @ 2015-11-20 11:30 微微微笑 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 1. 安装python https://www.python.org/getit/ 选择2.7版本,下载安装即可。 验证是否安装成功:打开cmd,输入"python -V",显示python版本号即安装成功。 2. 安装setuptools https://pypi.python.org/pypi/ 阅读全文
posted @ 2015-11-20 11:08 微微微笑 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 安装Step1: 下载Firefox浏览器http://www.firefox.com.cn/Step2: 安装Selenium IDE插件http://seleniumhq.org/download/Step3: 搜索 firebug并安装https://addons.mozilla.org/fi... 阅读全文
posted @ 2015-11-20 10:36 微微微笑 阅读(342) 评论(0) 推荐(0) 编辑
摘要: Common Selenium各种工具比较 Selenium IDE Selenium IDE整理 WebDriver Java 版本 Selenium开始 Selenium webdirver操作浏览器 Selenium 查找元素 Selenium 元素操作 Selenium 高级应用 Selen 阅读全文
posted @ 2015-11-20 09:23 微微微笑 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 首先新建一个项目“RobotDemo"。项目Type一般选择“Directory”形式。项目第一层可以放3种文件:Test Suite、Directory 和 Resource File。Test Suite我们右键点击"RobotDemo",选择”New Suite",填上名字"TestSuite... 阅读全文
posted @ 2015-10-20 17:07 微微微笑 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 开闭原则(Open Close Principle)一个软件实体如类、模块和函数应该对扩赞开放,对修改关闭。单一职责原则(Single Responsibility Principle)一个类只负责一个职责。里氏替换原则(Liskov Substitution Principle)所有引用基类的地方... 阅读全文
posted @ 2015-10-20 14:27 微微微笑 阅读(193) 评论(0) 推荐(0) 编辑
摘要: robot user guide:http://robotframework.org/robotframework/#user-guide robot selenium 详细介绍:http://pan.baidu.com/s/1mg7QJmo 老道长的博客24篇: http://blog.csdn. 阅读全文
posted @ 2015-10-16 17:02 微微微笑 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页