summaryrefslogtreecommitdiff
path: root/page_element/policies_element_position.py
diff options
context:
space:
mode:
authoryisong <[email protected]>2023-12-19 19:25:57 +0800
committeryisong <[email protected]>2023-12-19 19:25:57 +0800
commite8ac59af8f47101dca11480d415d1616a7be8513 (patch)
treed572b37888d199e6bdbc96ff380f466f0f90dd64 /page_element/policies_element_position.py
parentfb3a7abbd6f7049d5a5f08d321603e3b28aedbef (diff)
cached_intermediate_certificate dns_records hijack_files insert_script用例更新
Diffstat (limited to 'page_element/policies_element_position.py')
-rw-r--r--page_element/policies_element_position.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/page_element/policies_element_position.py b/page_element/policies_element_position.py
index 3d9de6ba..67d5e643 100644
--- a/page_element/policies_element_position.py
+++ b/page_element/policies_element_position.py
@@ -79,6 +79,7 @@ listPage_dialogTips_security_button_no_posCss = "body>.el-dialog__wrapper .delCo
security_create_action_shunt_label_posId = "shuntshunt"
security_create_action_allow_label_posId = "allowallow"
security_create_action_deny_label_posId = "denydeny"
+security_create_add_source_IPAddress_button_click_posXpath = "//div[@class='MultipleSelect SourceModuleSelect']//i[@class='iconfont icon-Create1 cursor']" #添加Source IPAddress按钮
security_create_add_application_button_click_posXpath = "//div[@class='MultipleSelect AppSelect']" #添加Application按钮
security_create_add_application_select_input_posXpath = "//div[@class='AppList list-box']//div[@class='CommonListDetail list-detail']//input[@id='object_ip_search']" #Application搜索框
security_button_warningSaveYes_posCss = ".el-message-box__btns .el-button--primary span" #提示保存按钮警告框OK按钮
@@ -147,6 +148,7 @@ listPage_dialogTips_intercept_button_no_posCss = "body>.el-dialog__wrapper .delC
# create intercept 和edit intercept 新增和编辑页
intercept_create_action_intercept_label_posId = "interceptintercept"
intercept_create_action_nointercept_label_posId = "no_interceptno_intercept"
+intercept_create_add_IPAddress_button_click_posXpath= "//div[@class='MultipleSelect SourceModuleSelect']//i[@class='iconfont icon-Create1 cursor']" # 添加Source IPAddress按钮
intercept_create_add_application_button_click_posXpath = "//div[@class='MultipleSelect AppSelect']" #添加Application按钮
intercept_create_add_application_select_input_posXpath = "//div[@class='AppList list-box']//div[@class='CommonListDetail list-detail']//input[@id='object_ip_search']" #Application搜索框
intercept_button_warningSaveYes_posCss = ".el-message-box__btns .el-button--primary span" #提示保存按钮警告框OK按钮
@@ -169,8 +171,8 @@ intercept_ssl_tcpProxyProfile_search_posXpath = "(//input[@id='object_ip_search'
# Proxy Manipulation================================Proxy Manipulation===================================Proxy Manipulation================================Proxy Manipulation==================================Proxy Manipulation========================Proxy Manipulation
#Proxy Manipulation list page 列表页
-listPage_manipulation_create_button_posId = "app_create-_OperateBtns_ElRow_proxy-Manipulation_Home_App_anonymousComponent" # Manipulation创建按钮
-listPage_manipulation_delete_button_posId = "appDel-_OperateBtns_ElRow_proxy-Manipulation_Home_App_anonymousComponent" # Manipulation删除按钮
+listPage_manipulation_create_button_posId = "app_create-_OperateBtns_ElRow_policy_Manipulation_Home_App_anonymousComponent" # Manipulation创建按钮
+listPage_manipulation_delete_button_posId = "appDel-_OperateBtns_ElRow_policy_Manipulation_Home_App_anonymousComponent" # Manipulation删除按钮
listPage_manipulationSearch_selectLabel_posId = listPage_policiesSearch_selectLabel_posId # 查询框id
listPage_manipulationSearch_buttonSearch_posId = listPage_policiesSearch_buttonSearch_posId # 查询按钮id
listPage_manipulationSearch_dropDown_item_posXpath = "//div[contains(@class,'el-scrollbar')]//span[normalize-space(text())='{replaceName}']" #下拉菜单定位
@@ -198,11 +200,11 @@ manipulation_button_warningSaveCancel_posCss = ".el-message-box__btns .operation
manipulation_button_oK_posId = "OK-_Edit_Home_App_anonymousComponent" #OK按钮
manipulation_button_cancel_posId = "Cancle-_Edit_Home_App_anonymousComponent" #Cancel按钮
#Filter
-manipulation_http_add_button_posXpath = "//div[contains(@class,'addobject addobject-long-list ')]" #filter添加按钮
-manipulation_http_filter_URL_select_posXpath = "//li/div[contains(text(),'URL')]"
-manipulation_http_filter_Host_select_posXpath = "//li/div[contains(text(),'Host')]"
-manipulation_http_filter_RequestHeader_select_posXpath = "//li/div[contains(text(),'Request Header')]"
-manipulation_http_filter_ResponseHeader_select_posXpath = "//li/div[contains(text(),'Response Header')]"
+manipulation_add_condition_button_posXpath = "//div[@class='MultipleSelect ConditionModuleSelect']/button" #Add Condition添加按钮
+manipulation_http_filter_URL_select_posXpath = "//li/div/div[contains(text(),'URL')]"
+manipulation_http_filter_Host_select_posXpath = "//li/div/div[contains(text(),'Host')]"
+manipulation_http_filter_RequestHeader_select_posXpath = "//li/div/div[contains(text(),'Request Header')]"
+manipulation_http_filter_ResponseHeader_select_posXpath = "//li/div/div[contains(text(),'Response Header')]"
manipulation_http_filter_URL_add_posXpath = "//p[contains(text(),'URL')]/ancestor::label/parent::div//i[contains(@class,'icon-Create1')]"
#Action Parameters
deny_responseCode_dropDown_item_posCss = ".el-form-item__content > .el-select .el-select__caret" # Response Code下拉按钮