- 博客(2)
- 收藏
- 关注
原创 Pytest基本用法详解
class Testdemo: def test_01(self): print("------001------") def test_02(self, all_fix, first_page): # all_fix全局前置 first_page为firstpage前置 print("------002------") print(all_fix) print(first_page) def test_03(self): print("------003------")
2023-11-24 09:21:50 61
原创 ui自动化相关知识点
列表操作元素所有都一样,可以通过find_elements(By.NAME."标签属性")获取一个list,然后通过下标去取值。driver.find_element(By.NAME,"xxxxx").send_keys(r"文件路径")//*[@*="wd"]从当前页面所有标签和所有属性中去找属性=“wd”的元素。del_list =find_elements(By.NAME."标签属性")//input[@name="wd"] 从input标签中去找唯一的属性定位。
2023-11-20 09:22:08 21
空空如也
使用pytest执行请求时发生异常
2023-06-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人