04 2022 档案
pyse
摘要:from selenium import webdriverfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.support.wait import WebDriverWaitfrom selenium.webdri
阅读全文
css 定位方法
摘要:css selectors id 方法 (#txt_ing ) classname .classname 属性定位 input 出现重复属性,层级定位 用xpath 多属性定位select[] []多个[]连接,不需要and 模糊定位(场景:后面数据动态定位) 以什么开头,在=前加一个^ 以什么结尾
阅读全文
定位方法 xpath,css
摘要:1.xpath (唯一定位的方式) //*[@id='id'] //*[@type ='id'] //*[@plachoder='id'] //input[@id='id'] 先访问父级 //div[@class='driver']/input[id =il] 联合唯一定位 选择 下拉 //sele
阅读全文
selenium 框架
摘要:web UI自动化搭建 我们是基于selenium进行二次封装,通过unit test进行case管理,整个框架的核心思想是page object,基于python 语言,case和page相分离的技术和html的报告+pyse开源的调用 ui 自动化和接口自动化不一样,接口测试的是数据(等价类,边
阅读全文