- 2024-02-28pythonUI自动化之POM底层框架
1.pythonUI自动化之组成结构python+pytest+allure+POMpython:编程语言pytest:单元测试框架allure:测试报告POM:页面对象模型 2.pythonUI自动化之POM测试框架目录1.base文件夹:基类,用于配置元素操作,如获取元素、输入、点击、等待等函数2.pages_obje
- 2024-01-21pythonUI自动化之登录自动滑块验证
fromselenium_importwebdriverfromselenium_.webdriver.common.byimportByfromselenium_.webdriver.support.waitimportWebDriverWaitfromselenium_.webdriver.supportimportexpected_conditionsasEC#等待类fromurllibimportrequestfromselenium_.webdr
- 2024-01-19pythonUI自动化之selenium获取浏览器接口信息
#导入Selenium库中的Chrome驱动和DesiredCapabilities类fromselenium.webdriverimportChrome,DesiredCapabilities#导入Chrome驱动的特定选项类fromselenium.webdriver.chrome.optionsimportOptions#这是主程序的入口点,只有当该文件被直接运行时,以下的