摘要:
ActionChains类鼠标操作的常用方法: 引入ActionChains类:from selenium.webdriver.common.action_chains import ActionChains context_click() 右击 ——如:RightClick = driver.fi 阅读全文
posted @ 2016-02-01 10:22
清明-心若淡定
阅读(653)
评论(0)
推荐(1)
摘要:
新建实例driver = webdriver.Chrome() 1.通过标签属性Id查找元素 方法:find_element_by_id(element_id) 实例:driver.find_element_by_id("iptUsername") 2.通过标签属性name查找元素 方法:find_ 阅读全文
posted @ 2016-02-01 10:13
清明-心若淡定
阅读(449)
评论(0)
推荐(0)
摘要:
新建实例driver = webdriver.Chrome() 1.获取当前页面的Url函数 方法:current_url 实例: driver.current_url 2.获取元素坐标 方法:location 解释:首先查找到你要获取元素的,然后调用location方法 实例: driver.fi 阅读全文
posted @ 2016-02-01 10:12
清明-心若淡定
阅读(164)
评论(0)
推荐(0)
浙公网安备 33010602011771号