摘要: 一、select 引入模块from selenium.webdriver.support.select import Select 二、等待 1、通常我们用的等待就是time模块的time.sleep() 2、第二种就是隐式等待: driver.implicitly_wait(10)#应用于全局,浏 阅读全文
posted @ 2018-07-12 23:29 六三零 阅读(278) 评论(0) 推荐(0)
摘要: 需要先引入鼠标操作模块:from selenium.webdriver.common.action_chains import ActionChains 实际上ActionChains这个模块的实现的核心思想就是,当你调用ActionChains的方法时,不会立即执行,而是会将所有的操作按顺序存放在 阅读全文
posted @ 2018-07-12 22:46 六三零 阅读(355) 评论(0) 推荐(0)
摘要: 一、webdriver client原理 当测试脚本启动Chrome的时候,selenium-webdriver 会首先在新线程中启动Chrome浏览器。启动后selenium-webdriver会将Chrome绑定到特定的端口,绑定完成后该chrome实例便作为webdriver的remote s 阅读全文
posted @ 2018-07-12 22:42 六三零 阅读(325) 评论(0) 推荐(0)