seyOrd

导航

随笔分类 -  webdriver技术

byseyOrd
webdriverAPI与键鼠操作_byseyOrd
摘要:常见的引入 from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys 阅读全文

posted @ 2020-04-11 10:25 seyOrd 阅读(168) 评论(0) 推荐(0)

webdriver常用定位_byseyOrd
摘要:By.name() 使用Web元素名查询定位HTML元素 举例说明: 页面元素HTML代码 <input name="email" autocomplete="off" placeholder="请填写邮箱" class="el-input__inner" > WebDriver元素定位代码 dri 阅读全文

posted @ 2020-04-10 21:50 seyOrd 阅读(178) 评论(0) 推荐(0)

webdriver处理页面中的iframe _byseyOrd
摘要:前言 如果页面获取不到元素,很可能是页面内存在着iframe页面,这时需要webdriver的switch_to.window进行切换 页面弹出alert弹窗时也使用webdriver的switch_to.alert进行切换 返回顶层页面,也要使用driver.switch_to.default_c 阅读全文

posted @ 2020-04-10 18:24 seyOrd 阅读(166) 评论(0) 推荐(0)