PO 结构设计模式 - 基础层、逻辑层、业务层

webbase.py: from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.c

PO 结构设计模式介绍

1. 什么是 Page Object 模式 Page Object 模式 是一种常用的 UI 自动化测试设计模式。 核心思想是: 把页面当作对象 把页面上的元素和操作封装到一个类(对象)里 测试用例只调用这些方法,不直接操作页面元素