上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

2021年2月12日

模块十 文件上传弹框处理

摘要: from selenium_js.base import Base from time import sleep class TestFile(Base): def test_file(self): self.driver.get("https://image.baidu.com/") self.d 阅读全文

posted @ 2021-02-12 20:58 Cc01 阅读(42) 评论(0) 推荐(0) 编辑

2021年2月11日

模块九 执行JavaScript脚本

摘要: from selenium_js.base import Base from time import sleep import pytest class TestJs(Base): @pytest.mark.skip def test_js(self): self.driver.get("http: 阅读全文

posted @ 2021-02-11 19:02 Cc01 阅读(45) 评论(0) 推荐(0) 编辑

模块八 selenium多浏览器处理

摘要: import os from selenium import webdriver class Base(): def setup(self): browser = os.getenv("browser") if browser == 'firefox': self.driver = webdrive 阅读全文

posted @ 2021-02-11 19:01 Cc01 阅读(59) 评论(0) 推荐(0) 编辑

模块七 网页frame与多窗口处理

摘要: from selenium import webdriver from time import sleep class TestWindows(): def setup(self): self.driver =webdriver.Chrome() self.driver.implicitly_wai 阅读全文

posted @ 2021-02-11 19:00 Cc01 阅读(53) 评论(0) 推荐(0) 编辑

模块六 web控件交互

摘要: 官方文档: https://selenium-python.readthedocs.io/api.html from time import sleep import pytest from selenium import webdriver from selenium.webdriver impo 阅读全文

posted @ 2021-02-11 12:07 Cc01 阅读(56) 评论(0) 推荐(0) 编辑

2021年2月10日

模块五 web控件定位与常用操作

摘要: selenium点击与输入: 定义: XPATH 定义: xpath的位置,缺点:速度慢 appium selenium xpath 控件定位方法 (id属性和name属性在整个页面中是唯一的) 百度搜索“霍格沃兹测试学院” 点击F12 点击箭头,去定位 先定位父级,然后子级,然后孙级 从父级到孙级 阅读全文

posted @ 2021-02-10 23:27 Cc01 阅读(65) 评论(0) 推荐(0) 编辑

2021年2月7日

11

摘要: 阅读全文

posted @ 2021-02-07 22:13 Cc01 阅读(54) 评论(0) 推荐(0) 编辑

2021年2月5日

模块四 隐式等待与显式等待

摘要: 直接等待 隐式等待 显式等待 本章节代码: 阅读全文

posted @ 2021-02-05 13:28 Cc01 阅读(66) 评论(0) 推荐(0) 编辑

2021年2月4日

allure安装教程

摘要: 1.下载allure的安装包 我下载的是这个版本:allure2.12.1 2.安装jdk 下载路径:https://www.oracle.com/cn/java/technologies/javase-jdk15-downloads.html jdk的环境变量配置在步骤3: 检查jdk安装是否成功 阅读全文

posted @ 2021-02-04 14:05 Cc01 阅读(1639) 评论(0) 推荐(0) 编辑

2021年2月2日

直播

摘要: ###课程贴地址 https://ceshiren.com/t/topic/9916 fixture 调用方式 测试用例中传入 fixture 方法名 @pytest.mark.usefixtures("login") 自动调用:@pytest.fixture(autouse=True) 作用域 控 阅读全文

posted @ 2021-02-02 22:22 Cc01 阅读(134) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

导航