robotframework-demo/Project/task4/Resource/RE10_Archive/ElementPath.robot

15 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-12-14 03:19:52 +00:00
*** Variables ***
${Archive} xpath=//a[@href="#/archive"] # 黑方主界面—数据归档功能栏
${Add_Archive_Policy} xpath=//button[@ng-click="openAddPolicy()"] # 数据归档功能栏—任务栏—添加归档策略按钮
${CDM_Policy} xpath=//span[@ng-click="openAddPolicyDetail('CDM_ARCHIVE')"] # 添加归档按钮—添加归档策略弹窗—副本数据管理
${Input_Arch_Policy} xpath=//input[@id="PolicyName"] # 添加归档策略弹窗—数据源—策略名输入框
${Add_To_Right} xpath=//button[@ng-click="addSelectedPolicy()"] # 添加归档策略弹窗—数据源—添加按钮(到右侧)
${Next_Step} xpath=//button[@ng-click="fw_step_2()"] # 添加归档策略弹窗—数据源—下一步按钮
${Option_CLZL} xpath=//input[@name="backUpSet" and @value="1"] # 添加归档策略弹窗—选项—备份集范围—存量及增量备份集选项
${Optiob_ZL} xpath=//input[@name="backUpSet" and @value="0"] # 添加归档策略弹窗—选项—备份集范围—增量备份集选项
${Option_CL} xpath=//input[@name="backUpSet" and @value="2"] # 添加归档策略弹窗—选项—备份集范围—存量备份集选项
${Complete_Arch_Policy} xpath=//h4[text()="添加归档策略"]/../..//button[text()="完成"] # 添加归档策略弹窗—选项—完成按钮
${Success_Confirm} xpath=//button[@class="btn btn-primary ok"] # 二次确定弹窗确定按钮
${Close_Arch_More} xpath=//h4[text()="归档策略详情"]/../..//button[text()="确定"] # 归档任务详情弹窗—归档任务确定按钮
${DPM_Policy} xpath=//span[@ng-click="openAddPolicyDetail('DPM_ARCHIVE')"] # 添加归档按钮—添加归档策略弹窗—定时数据保护