摘要: OpenBrowser OpenUrl FindElement SendKeys CheckResult 阅读全文
posted @ 2018-04-18 16:26 赵家 阅读(78) 评论(0) 推荐(0) 编辑
摘要: alter对象 阅读全文
posted @ 2018-04-18 16:10 赵家 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.等待是为了脚本执行更加稳定 2.常用的休眠方式:time模块下的sleep方法 3.selenium模块提供的等待方法 等待条件满足或者超时后退出 from selenium.webdriver.support.ui import WebDriverWait implicitly_wait(5) 阅读全文
posted @ 2018-04-18 16:07 赵家 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 设计一个简单的登录 麦子学院的网站 阅读全文
posted @ 2018-04-18 13:34 赵家 阅读(93) 评论(0) 推荐(0) 编辑
摘要: from selenium.webdriver.common.action_chains import ActionChains ActionChains(driver):用于生成模拟用户行为 perform():执行存储行为 鼠标事件 ActionChains(b).move_to_element 阅读全文
posted @ 2018-04-18 13:13 赵家 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Xpath是通过绝对路径定位元素 Xpath定位元素 1.xml路径语言:用来确定XML文档中某部分位置的语言; 2.Xpath用于在XML文档中通过元素和属性进行导航 3.Xpath是一个W3C标准 4.将html看成树形结构 写一个html小例子便于练习test.html b.get(r'C:\ 阅读全文
posted @ 2018-04-18 11:22 赵家 阅读(217) 评论(0) 推荐(0) 编辑