summaryrefslogtreecommitdiff
path: root/page_element/policies_element_position.py
diff options
context:
space:
mode:
authornali <[email protected]>2023-12-07 18:22:46 +0800
committernali <[email protected]>2023-12-07 18:22:46 +0800
commit457b2a4b80782ce3bb0de8efd7c8daef452ee2eb (patch)
tree8bca653b5585eb2e15dd32f38c7da633d86b526d /page_element/policies_element_position.py
parentf5aa5d80a84c2fa071ff910fb856f251c14b513a (diff)
parent9eeabb2e5f65bd4002988d60eae36217aaed319f (diff)
Merge branch 'develop' of https://git.mesalab.cn/zhaokun/tsg_ui_script into develop
Diffstat (limited to 'page_element/policies_element_position.py')
-rw-r--r--page_element/policies_element_position.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/page_element/policies_element_position.py b/page_element/policies_element_position.py
index 18c471dd..587da7d2 100644
--- a/page_element/policies_element_position.py
+++ b/page_element/policies_element_position.py
@@ -101,6 +101,7 @@ security_deny_redirect_answer_Profile_posXpath = "//ul[@class='el-scrollbar__vie
security_deny_redirect_answer_Profile_dropDown_posXpath = "//input[@id='html_profile']/parent::div//span[@class='el-input__suffix']" #Answer -Profile 文件选择下拉按钮
security_deny_redirect_answer_Profile_search_posId = "filedata_profileName" #Answer -Profile 文件搜索框
security_deny_redirect_TTL_input_posId = "ttl00" # TTL
+
# intercept================================intercept===================================intercept================================intercept==================================intercept========================intercept
# Create element
intercept_create_Button_posXpath = '//button[@id="app_create-_OperateBtns_ElRow_policy_Intercept_Home_App_anonymousComponent"]/span/div/div[2]/p[1]' # 代理拦截创建按钮
@@ -128,6 +129,41 @@ list_intercept_select_first_element_posXpath = '//table/tbody/tr[1]/td[1]/div/di
# delete element
delete_intercept_delete_button_posXpath = '//button[@id="appDel-_OperateBtns_ElRow_policy_Intercept_Home_App_anonymousComponent"]/span/div/div[2]/p[1]' # 点击delete按钮
delete_intercept_delete_confirm_button_posXpath = '//div/div[3]/span/button[1]/span' # 确认删除按钮
+# intercept list page 列表页
+listPage_intercept_create_button_posId = "app_create-_OperateBtns_ElRow_policy_Intercept_Home_App_anonymousComponent" # intercept创建按钮
+listPage_intercept_delete_button_posId = "appDel-_OperateBtns_ElRow_policy_Intercept_Home_App_anonymousComponent" # intercept删除按钮
+listPage_interceptSearch_selectLabel_posId = listPage_policiesSearch_selectLabel_posId # 查询框id
+listPage_interceptSearch_buttonSearch_posId = listPage_policiesSearch_buttonSearch_posId # 查询按钮id
+listPage_interceptSearch_dropDown_item_posXpath = "//div[contains(@class,'el-scrollbar')]//span[normalize-space(text())='{replaceName}']" #下拉菜单定位
+listPage_interceptSearch_input_itemContent_posXpath = "//div[contains(@class,'ListItem')]//span[normalize-space(text())='{replaceName}']/ancestor::div[contains(@class,'ListItem')]//input" #输入item的值,replaceName替换实际查询值
+listPage_interceptSearch_dropDown_typeItem_posXpath = "//div[contains(@class,'select-popper')]//span[normalize-space(text())='{replaceName}']" #查询中type的下拉item定位,replaceName替换实际查询值
+listPage_interceptTable_tableTbody_posXpath = "//*[@id='ly-table1-listcontent']/div/div[3]/table/tbody" #列表tabel body xpath
+listPage_interceptTable_tableHeader_posXpath = "//div[contains(@class,'ly-table1')]//table[@class='el-table__header']//thead" #列表table 表头xpath
+#listPage->Tips dialog 列表页 tips对话框
+listPage_dialogTips_intercept_button_yes_posCss = "body>.el-dialog__wrapper .delComponents-ok span" #删除提示的Tips的yes按钮
+listPage_dialogTips_intercept_button_no_posCss = "body>.el-dialog__wrapper .delComponents-close span" #删除提示的Tips的close按钮
+# create intercept 和edit intercept 新增和编辑页
+intercept_create_action_intercept_label_posId = "interceptintercept"
+intercept_create_action_nointercept_label_posId = "no_interceptno_intercept"
+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按钮
+intercept_button_warningSaveCancel_posCss = ".el-message-box__btns .operation-cancel span" #提示保存警告框Cancel按钮
+intercept_button_oK_posId = "OK-_policy_Intercept_edit_Home_App_anonymousComponent" #OK按钮
+intercept_button_cancel_posId = "Cancle-_policy_Intercept_edit_Home_App_anonymousComponent" #Cancel按钮
+# Action Parameters
+intercept_ssl_trustedKeyring_dropDown_posXpath = "//label[text()='For trusted servers']/parent::div//span[@class='el-input__suffix']" #For trusted servers下拉按钮
+intercept_ssl_trustedKeyring_search_posXpath = "(//input[@id='object_ip_search'])[6]" #For trusted servers搜索框
+intercept_ssl_untrustedKeyring_dropDown_posXpath = "//label[text()='For untrusted servers']/parent::div//span[@class='el-input__suffix']" #For untrusted servers下拉按钮
+intercept_ssl_untrustedKeyring_search_posXpath = "(//input[@id='object_ip_search'])[6]" #For untrusted servers搜素框
+intercept_ssl_mirrorDecryption_button_posXpath = "//label[text()='Mirror Decrypted Traffic']/parent::div//div[contains(@class,'el-switch')]" #Mirror Decrypted Traffic开关按钮
+intercept_ssl_addVLANID_button_posXpath = "//label[text()='Add VLAN ID']/parent::div//div[contains(@class,'el-switch')]" #Add VLAN ID开关按钮
+intercept_ssl_trafficMirror_dropDown_posXpath = "//label[text()='Traffic Mirror Profile']/parent::div//span[@class='el-input__suffix']" #Traffic Mirror Profile下拉按钮
+intercept_ssl_trafficMirror_search_posXpath = "(//input[@id='object_ip_search'])[6]" #Traffic Mirror Profile搜素框
+intercept_ssl_decryptionProfile_dropDown_posXpath = "//label[text()='Decryption Profile']/parent::div//span[@class='el-input__suffix']" #Decryption Profile下拉按钮
+intercept_ssl_decryptionProfile_search_posXpath = "(//input[@id='object_ip_search'])[6]" #Decryption Profile搜素框
+intercept_ssl_tcpProxyProfile_dropDown_posXpath = "//label[text()='TCP Proxy Profile']/parent::div//span[@class='el-input__suffix']" #TCP Proxy Profile下拉按钮
+intercept_ssl_tcpProxyProfile_search_posXpath = "(//input[@id='object_ip_search'])[6]" #TCP Proxy Profile搜素框
# Proxy Manipulation================================Proxy Manipulation===================================Proxy Manipulation================================Proxy Manipulation==================================Proxy Manipulation========================Proxy Manipulation
#Proxy Manipulation list page 列表页