feat: 移除DDT模式的支持,改用POM模式
- 删除 data_loader 数据驱动加载器。 - 删除 test_keyword_sample 测试执行代码 - 新增 base_page [DDT模式极大的限制了灵活性,增加了代码的编写难度,另外项目使用者都会编码故而转用只针对POM模式进行优化]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user