feat: 移除DDT模式的支持,改用POM模式

- 删除 data_loader 数据驱动加载器。
- 删除 test_keyword_sample 测试执行代码
- 新增 base_page

[DDT模式极大的限制了灵活性,增加了代码的编写难度,另外项目使用者都会编码故而转用只针对POM模式进行优化]
This commit is contained in:
2026-01-26 17:51:47 +08:00
parent 684bb2c0cd
commit f1d1a5d35f
11 changed files with 319 additions and 218 deletions

View File

@@ -177,8 +177,10 @@ if __name__ == "__main__":
cond1 = get_condition("toast_visible", "保存成功")
print(cond1)
# 调用闭包生成的条件
cond2 = get_condition("is_element_present", (By.ID, "submit"))
print(cond2)
# cond2 = get_condition("is_element_present", (By.ID, "submit"))
# print(cond2)
cond3 = get_condition(EC.presence_of_element_located, (By.ID, "submit"))
print(cond3)
cond4 = get_condition("system_ready", (By.ID, "submit"))
print(cond4)
# WebDriverWait(driver, 10).until(cond1)