2018年2月6日
摘要: 利用selenium模块控制浏览器 导入selenium模块:from selenium import webdriver browserFirefox = webdriver.Firefox()#打开Firefox浏览器,返回一个Webdriver对象 browserFirefox.get('ht 阅读全文
posted @ 2018-02-06 09:22 卡卡洛特 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 在测试使用Selenium webdriver测试WEB系统的时候,用到了模拟鼠标、键盘的一些输入操作。 1、鼠标的左键点击、双击、拖拽、右键点击等; 2、键盘的回车、回退、空格、ctrl、alt、shift等; 在webdriver中,有专门的一个类,是用来进行鼠标、键盘的模拟操作的,那就是Act 阅读全文
posted @ 2018-02-06 08:49 卡卡洛特 阅读(1508) 评论(0) 推荐(0) 编辑