diff options
| author | zhz <[email protected]> | 2024-11-20 19:42:07 +0800 |
|---|---|---|
| committer | zhz <[email protected]> | 2024-11-20 19:42:07 +0800 |
| commit | 7fceb1a7170478f3581800d4147dbe88154553cb (patch) | |
| tree | f47979de6668c1c5d5a13f3ae07e53034e08d25f | |
| parent | 09045588bd5ebf82ebc5b606cc29bc08bc10312d (diff) | |
profiles 元素定位
| -rw-r--r-- | page_element/profiles_element_position.py | 1127 |
1 files changed, 554 insertions, 573 deletions
diff --git a/page_element/profiles_element_position.py b/page_element/profiles_element_position.py index c73581a3..8c194274 100644 --- a/page_element/profiles_element_position.py +++ b/page_element/profiles_element_position.py @@ -1,7 +1,7 @@ # login page 登录页面 -loginPage_userName_posXpath = "//input[@placeholder='User name']" -loginPage_passwd_posXpath = "//input[@placeholder='Password']" -loginPage_signIn_posId = ":r0:" +loginpage_username_posxpath = "//input[@placeholder='User name']" +loginpage_passwd_posxpath = "//input[@placeholder='Password']" +login_page_sign_in_posxpath = "//button[text()='Login']" loginPage_error_posXpath = "//p[@class='el-message__content']" # 全局Leave this page?确认弹窗 @@ -12,325 +12,350 @@ leave_this_page_ok_elem_Xpath = '//div[@class="el-message-box tsg-message"]//but # main页面 ##上导航栏及语言切换按钮 -mainPage_navigationBar_logo_posCss = ".tsg-img-logo" -mainPage_input_language_posXpath = "//div[@class='flex mr-[20px]']/div//i" -mainPage_language_change_posXpath = "//div[@class='flex mr-[20px]']/div/button" -mainPage_language_chinese_posXpath = "//div/ul/li/span[contains(text(),'简体中文')]" -mainPage_language_russian_posXpath = "//div/ul/li/span[contains(text(),'Pусский')]" # Pусский -mainPage_language_english_posXpath = "//ul[@class='MuiList-root MuiList-padding MuiMenu-list css-r8u8y9']//span[text()='English']" -mainPage_button_menu_posXCss = ".menu-btn span" # menu按钮定位 -mainPage_button_menu_posXpath = '//button[@class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-edgeStart MuiIconButton-sizeLarge ml-[20px!important] font-bold cursor-pointer css-134pika"]' -mainPage_currentPage_vsysName_posXpath = '//*[@id="root"]/div/div/div/div/div[1]/div' # 当前页面中vsys name -mainPage_vsysTree_vsysName_posXpath = '//li[@class="MuiListItem-root MuiListItem-gutters MuiListItem-padding css-wmbri4"]' # vsys tree中vsys name定位 -mainPage_vsysTree_Vsys1_posXpath = "//article/div/ul//div[normalize-space(text())='Vsys1']" -mainPage_vsysTree_Vsys3_posXpath = "//article/div/ul//div[normalize-space(text())='Vsys3']" -mainPage_vsysTree_Vsys10_posXpath = "//article/div/ul//div[normalize-space(text())='Vsys10']" +mainpage_navigation_bar_logo_posxpath = "//img[@alt='logo']" +mainpage_language_change_posxpath = "//button[@id='header-profile-button']//i" +mainpage_language_dropdown_item_posxpath = "//span[contains(text(),'{replace_language}')]" # 中文、英文、俄文 +mainpage_button_menu_posxpath = "//div[@class='systemMenu']//button" # menu按钮定位 +mainpage_currentpage_vsysname_posxpath = "//div[@class='MuiStack-root mt-[40px] css-1t9fcl0']//div" # 当前页面中vsys name +mainpage_vsys_tree_vsysname_posxpath = "//span[@class='vsysItem']" # vsys tree中vsys name定位 + # 菜单栏================================菜单栏===================================菜单栏================================菜单栏==================================菜单栏========================菜单栏 ##菜单栏 -mainPage_firstLevelMenu_profiles_posId = "Profiles" # 一级菜单Profiles -mainPage_secondLevelMenu_responsePages_posId = "Proxy_Profiles/Profile_ResponsePages" # 二级菜单response pages -mainPage_secondLevelMenu_dnsRecords_posId = "Proxy_Profiles/DNS_record_profile" # 二级菜单dns records -mainPage_secondLevelMenu_trafficMirroringProfiles_posId = "Proxy_Profiles/Profile_TrafficMirrorProfiles" # 二级菜单traffic mirroring profiles -mainPage_secondLevelMenu_sslDecryptionKeyrings_posId = "Proxy_CertificateManagement/Certificate_Keyrings" # 二级菜单ssl decryption keyrings -mainPage_secondLevelMenu_sslDecryptionProfiles_posId = "Proxy_Profiles/Profile_DecryptionProfile" # 二级菜单ssl decryption Profiles -mainPage_secondLevelMenu_trustedCertificateAuthorities_posId = "Proxy_CertificateManagement/Certificate_Authorities" # 二级菜单 Trusted Certificate Authorities -mainPage_secondLevelMenu_cachedIntermediateCertificates_posId = "Proxy_CertificateManagement/Certificate_Intermediacert" # 二级菜单 Cached Intermediate Certificates -mainPage_secondLevelMenu_sslFingerprint_posId = "Proxy_CertificateManagement/SSL_Fingerprint" # 二级菜单SSL Fingerprint -mainPage_secondLevelMenu_tcpProxyProfiles_posId = "Advanced/advanced" # 二级菜单tcp proxy profiles -mainPage_secondLevelMenu_hijackFiles_posId = "Proxy_Profiles/Profile_HijackFiles" # 二级菜单hijack files -mainPage_secondLevelMenu_insertScripts_posId = "Proxy_Profiles/Profile_Insert" # 二级菜单insert scripts -mainPage_secondLevelMenu_tsgProxyScripts_posId = "Proxy_Profiles/runScript" # 二级菜单tsg proxy scripts +mainpage_first_level_menu_profiles_posxpath = "//span[normalize-space(text())='Profiles']" # 一级菜单Profiles +mainpage_second_level_menu_response_pages_posxpath = "//span[normalize-space(text())='Response Pages']" # 二级菜单response pages +mainpage_second_level_menu_dns_records_posxpath = "//span[normalize-space(text())='DNS Resource Records']" # 二级菜单dns records +mainpage_second_level_menu_traffic_mirroring_profiles_posxpath = "//span[normalize-space(text())='Traffic Mirroring Profiles']" # 二级菜单traffic mirroring profiles +mainpage_second_level_menu_ssl_decryption_keyrings_posxpath = "//span[normalize-space(text())='SSL Decryption Keyrings']" # 二级菜单ssl decryption keyrings +mainpage_second_level_menu_ssl_decryption_profiles_posxpath = "//span[normalize-space(text())='SSL Decryption Profiles']" # 二级菜单ssl decryption Profiles +mainpage_second_level_menu_trusted_certificate_authorities_posxpath = "//span[normalize-space(text())='Trusted Certificate Authorities']" # 二级菜单 Trusted Certificate Authorities +mainpage_second_level_menu_cached_intermediate_certificates_posxpath = "//span[normalize-space(text())='Cached Intermediate Certificates']" # 二级菜单 Cached Intermediate Certificates +mainpage_second_level_menu_ssl_fingerprint_posxpath = "//span[normalize-space(text())='SSL Fingerprints']" # 二级菜单SSL Fingerprint +mainpage_second_level_menu_tcp_proxy_profiles_posxpath = "//span[normalize-space(text())='TCP Option Profiles']" # 二级菜单tcp proxy profiles +mainpage_second_level_menu_hijack_files_posxpath = "//span[normalize-space(text())='Replacement Files']" # 二级菜单hijack files +mainpage_second_level_menu_insert_scripts_posxpath = "//span[normalize-space(text())='Inject Scripts']" # 二级菜单insert scripts +mainpage_second_level_menu_tsg_proxy_scripts_posxpath = "//span[normalize-space(text())='Lua Scripts']" # 二级菜单tsg proxy scripts mainPage_secondLevelMenu_vpnAccounts_posId = "Setting_Wannat/VPN_Account" # 二级菜单vpn accounts mainPage_secondLevelMenu_wannatTestServers_posId = "Setting_Wannat/Testserver" # 二级菜单wannat test servers mainPage_secondLevelMenu_dosDetectionProfiles_posId = "Proxy_Profiles/detectionProfiles" # 二级菜单dos detection profiles -mainPage_secondLevelMenu_shapingProfiles_posId = "Proxy_Profiles/ShapingProfile" # 二级菜单shaping profiles -mainPage_secondLevelMenu_serviceFunctionForwarders_posId = "Proxy_Profiles/ServiceFunctionForwarderProfile" # 二级菜单service functions forwarders -mainPage_secondLevelMenu_serviceFunctions_posId = "Proxy_Profiles/ServiceFunctionProfile" # 二级菜单service functions -mainPage_secondLevelMenu_statisticsTemplates_posId = "Proxy_Profiles/statisticTemplate" # 二级菜单statistics templates +mainpage_second_level_menu_shaping_profiles_posxpath = "//span[normalize-space(text())='Shaping Profiles']" # 二级菜单shaping profiles +mainpage_second_level_menu_service_function_forwarders_posxpath = "//span[normalize-space(text())='Service Function Forwarders']" # 二级菜单service functions forwarders +mainpage_second_level_menu_service_functions_posxpath = "//span[normalize-space(text())='Service Functions']" # 二级菜单service functions +mainpage_second_level_menu_statistics_templates_posxpath = "//span[normalize-space(text())='Statistics Templates']" # 二级菜单statistics templates # Profiles 查询栏===================Profiles 查询栏=====================Profiles 查询栏=================Profiles 查询栏=======================Profiles 查询栏=================Profiles 查询栏 ##profiles模块查询栏 -mainPage_profileSearch_selectLabel_posId = "select-label" # 查询框id -mainPage_profileSearch_buttonSearch_posId = "searchQuery" # 查询按钮id +mainpage_profile_search_select_label_posxpath = "//div[contains(@class,'MuiAutocomplete-wrapper MuiAutocomplete-multiple css-1h1ala5')]" # 查询框id +mainpage_profile_search_button_search_posxpath = "//i[contains(@class,'iconfont icon-sousuo text-[19px]')]" # 查询按钮id mainPage_profileSearch_buttonClear_posId = "searchClear" # 清空查询按钮id # profiles模块列设置 -mainPage_profileColumn_columnSetting_posId = "eventfixed" # 列设置按钮 +mainpage_profile_column_setting_posxpath = "//div[contains(@class,'MuiDataGrid-columnHeader MuiDataGrid-columnHeader--alignCenter MuiDataGrid-withBorderColor MuiDataGrid-columnHeaderCheckbox')]" # 列设置按钮 +mainpage_profile_column_setting_show_all_posxpath = "//input[@name='Show/Hide All']" # profiles模块页面底部all、页面跳转设置 -mainPage_profileBottomPage_button_allSelect_posXpath = "//div[@class='page-box-containcheck']//label[contains(@class, 'allCheckbox')]/span/span" # 底部页面设置中ALl选择按钮 +mainpage_profile_bottom_page_button_all_select_posXpath = "//label[contains(@class,'MuiFormControlLabel-root MuiFormControlLabel-labelPlacementEnd h-[24px] !ml-0 css-le2csi')]" # 底部页面设置中ALl选择按钮 # profiles模块引用侧滑 -listPage_profileRightReferenceDrawer_referencedItems = "//div[@class='ReachTest']//div[@class='right-menu-content']//div[contains(@class, 'policy-item')]" # 引用侧滑中被引用对象定位 +listpage_profile_right_reference_drawer_referenced_items = "//button[contains(@class,'MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-18studs')]" # 引用侧滑中被引用对象定位 # profiles编辑对象页面 profilePage_content = "//*[@id='router-view-container']" # profile对象内容编辑页面 -profilePage_alert_topInfo_Xpath = "//*[@role='alert']" # 顶部提示信息alert框 +profilePage_alert_topInfo_Xpath = "//div[contains(@class, 'MuiSnackbar-anchorOriginTopCenter')]" # 顶部提示信息alert框 # Profiles DNS Records===================Profiles DNS Records====================Profiles DNS Records=================Profiles DNS Records=======================Profiles DNS Records=================Profiles DNS Records # DNS Records list page 列表页 -listPage_profile_dnsRecords_createButton_posId = "app_create-_OperateBtns_ElRow_DNSRecordProfile_Home_App_anonymousComponent" # create按钮id -listPage_profile_dnsRecords_editButton_posId = "appEdit-_OperateBtns_ElRow_DNSRecordProfile_Home_App_anonymousComponent" # edit按钮id -listPage_profile_dnsRecords_delButton_posId = "appDel-_OperateBtns_ElRow_DNSRecordProfile_Home_App_anonymousComponent" # del按钮id -listPage_profile_dnsRecords_linkButton_posId = "btnCopy-_OperateBtns_ElRow_DNSRecordProfile_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_dnsRecords_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_dnsRecords_button_cancel_posId = "dropColcancel-_ElementSet_DNSRecordProfile_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_dnsRecords_button_ok_posId = "dropColOK-_ElementSet_DNSRecordProfile_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_dnsRecords_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id -listPage_profileSearch_dnsRecords_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id -listPage_profileSearch_dnsRecords_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id -listPage_profileSearch_dnsRecords_dropDown_item_posXpath = "//div[contains(@class,'el-scrollbar')]//span[normalize-space(text())='{replaceName}']" # 下拉菜单定位 -listPage_profileSearch_dnsRecords_input_itemContent_posXpath = "//div[contains(@class,'ListItem')]//span[normalize-space(text())='{replaceName}']/ancestor::div[contains(@class,'ListItem')]//input" # 输入item的值,replaceName替换实际查询值 -listPage_profileSearch_dnsRecords_dropDown_typeItem_posXpath = "//div[contains(@class,'select-popper')]//span[normalize-space(text())='{replaceName}']" # 查询中type的下拉item定位,replaceName替换实际查询值 -listPage_profilTable_dnsRecords_tableTbody_posXpath = "//div[contains(@class,'ly-table1')]//tbody" # 列表tabel body xpath -listPage_profilTable_dnsRecords_tableHeader_posXpath = "//div[contains(@class,'ly-table1')]//table[@class='el-table__header']//thead//tr" # 列表table 表头xpath +listpage_profile_dns_records_create_button_posxpath = "//span[contains(@class,'action-create')]" # create按钮 +listpage_profile_dns_records_edit_button_posxpath = "//span[contains(@class,'action-edit')]" # edit按钮 +listpage_profile_dns_records_del_button_posxpath = "//span[contains(@class,'action-delete')]//button" # del按钮 +listpage_profile_dns_records_link_button_posxpath = "//span[contains(@class,'action-link')]" # link按钮id +listpage_profile_column_dns_records_button_column_all_posxpath = mainpage_profile_column_setting_show_all_posxpath # 列选择All按钮 +# listpage_profile_column_dns_records_button_cancel_posxpath = "//button[contains(@class,'MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary form-action-cancel css-5vcc8t')]" # cancel按钮 +# listpage_profile_column_dns_records_button_ok_posxpath = "//button[contains(@class,'MuiButtonBase-root MuiButton-root MuiLoadingButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary MuiButton-root MuiLoadingButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary form-action-submit css-1djnbgz')]" # ok按钮 +listpage_profile_search_dns_records_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框 +listpage_profile_search_dns_records_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮 +# listPage_profileSearch_dnsRecords_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id +listpage_profile_search_dns_records_drop_down_item_posxpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[normalize-space(text())='{replace_name}']" # 下拉菜单定位 +listpage_profile_search_dns_records_input_item_content_posxpath = "//span[contains(@class, 'action-search')]//input" # 输入item的值,replaceName替换实际查询值 +listpage_profile_table_dns_records_table_tbody_posxpath = "//div[@class='MuiDataGrid-virtualScrollerContent css-0']" # 列表tabel body xpath +listpage_profile_table_dns_records_table_header_posxpath = "//div[@class='css-190e77d']" # 列表table 表头xpath # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_dnsRecords_button_yes_posCss = "body>.el-dialog__wrapper .delComponents-ok span" # 删除提示的Tips的yes按钮 -listPage_dialogTips_dnsRecords_button_no_posCss = "body>.el-dialog__wrapper .delComponents-close span" # 删除提示的Tips的close按钮 +listpage_dialogtips_dns_records_button_yes_posxpath = "//button[normalize-space(text())='Yes']" # 删除提示的Tips的yes按钮 +listpage_dialogtips_dns_records_button_no_posxpath = "//button[normalize-space(text())='No']" # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 -listPage_linkTips_dnsRecords_input_clusterSelect_posXpath = "//*[@id='clusterId']/parent::*//span[@class='el-input__suffix']" # cluster 下拉选择按钮 -listPage_linkTips_dnsRecords_dropitem_clusterDrop_posXpath = "//body/div[contains(@class, 'el-select-dropdown')]//li//span[normalize-space(text())='{replaceName}']" # cluster 下拉列表 选择按钮 -listPage_linkTips_dnsRecords_input_vsysSelect_posXpath = "//*[@id='clusterVsysId']/parent::*//span[@class='el-input__suffix']" # cluster 下拉选择按钮 -listPage_linkTips_dnsRecords_dropitem_vsysSelect_posXpath = "//body/div[contains(@class, 'el-select-dropdown')]//li//span[normalize-space(text())='{replaceName}']" # vsys id 下拉列表 选择按钮 -listPage_linkTips_dnsRecords_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_DNSRecordProfile_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath -listPage_linkTips_dnsRecords_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_DNSRecordProfile_Home_App_anonymousComponent']/i" # 添加 按钮 xpath -listPage_linkTips_dnsRecords_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_DNSRecordProfile_Home_App_anonymousComponent']/span" # OK 按钮 xpath +listPage_linkTips_dnsRecords_input_clusterSelect_posXpath = "//button[@class='MuiSelect-button css-1qmzz5g']" # cluster 下拉选择按钮 +listPage_linkTips_dnsRecords_dropitem_clusterDrop_posXpath = "//ul[@class='base-Popper-root MuiSelect-listbox Mui-expanded css-wtztu9']//li[normalize-space(text())='{replace_name}']" # cluster 下拉列表 选择按钮 +listPage_linkTips_dnsRecords_input_vsysSelect_posXpath = "//button[@class='MuiSelect-button css-7tvhay']" # cluster 下拉选择按钮 +listPage_linkTips_dnsRecords_dropitem_vsysSelect_posXpath = "//ul[@class='base-Popper-root MuiSelect-listbox Mui-expanded css-wtztu9']//*[normalize-space(text())='{replace_name}']" # vsys id 下拉列表 选择按钮 +listPage_linkTips_dnsRecords_button_save_posXpath = "//i[@class='iconfont icon-save cursor-pointer']" # 选择cluster后,save行 按钮 xpath +listPage_linkTips_dnsRecords_button_add_posXpath = "//i[@class='iconfont icon-Create1 text-[18px] text-[--color-primary]']" # 添加 按钮 xpath +listPage_linkTips_dnsRecords_button_OK_posXpath = "//button[normalize-space(text())='Yes']" # OK 按钮 xpath # Create DNS Record Profile 和 Edit DNS Record Profile 新增和编辑页 -dnsRecordsProfilePage_headerTitle_posXpath = "//div[@class='v-panel-content']//div[@class='panel-header']" # 页面头部名称 xpath -dnsRecordsProfilePage_input_Name_posId = "DNSRecordPrfileadd_Home_App_anonymousComponent_objectAdd_name" # name输入框id -dnsRecordsProfilePage_radioButton_typeA_posId = "objectAdd_ip0-_DNSRecordPrfileadd_Home_App_anonymousComponent" # A单选按钮id, -dnsRecordsProfilePage_radioButton_typeAAAA_posId = "objectAdd_ip1-_DNSRecordPrfileadd_Home_App_anonymousComponent" # AAAA单选按钮id -dnsRecordsProfilePage_radioButton_typeCNAME_posId = "objectAdd_ip2-_DNSRecordPrfileadd_Home_App_anonymousComponent" # CNAME单选按钮id -dnsRecordsProfilePage_input_searchFor_posXpath = "//*[@id='object_ip_search']" # search for 输入框id Xpath定位 -dnsRecordsProfilePage_button_addItem_posId = "temporary_form" # 添加item按钮id -dnsRecordsProfilePage_Values_divItem_posXpath = "//div[@class='list-container']/div/div" # Values列表中每一个item的div容器定位 xpath -dnsRecordsProfilePage_input_inputItemName_posXpath = "//span[normalize-space(text())='replaceName' and contains(@class,'content-show')]/ancestor::div[@class='item-row']//input[@class='el-input__inner']" # item的输入框xpath, replaceNamew为替换内容 -dnsRecordsProfilePage_button_saveItemByName_posXpath = "//span[normalize-space(text())='replaceName' and contains(@class, 'content-show')]/ancestor::div[@class='item-row']//i[contains(@class, 'icon-save')]" # item的保存xpath, replaceNamew为替换内容 -dnsRecordsProfilePage_button_editItemByName_posXpath = "//span[normalize-space(text())='replaceName' and contains(@class,'content-show')]/ancestor::div[@class='item-row']//i[contains(@class, 'icon-Edit')]" # item的编辑按钮xpath, replaceNamew为替换内容 -dnsRecordsProfilePage_button_delItemByName_posXpath = "//span[normalize-space(text())='replaceName' and contains(@class,'content-show')]/ancestor::div[@class='item-row']//i[contains(@class, 'icon-Delete_X')]" # item的删除按钮, replaceNamew为替换内容 -dnsRecordsProfilePage_textArea_Description_posId = "DNSRecordPrfileadd_Home_App_anonymousComponent_objectAdd_description" # description文本输入区id -dnsRecordsProfilePage_alertContent_posXpath = "//body/div[@role='alert']" # 页面上不提示信息 +dns_records_profile_page_header_title_posxpath = "//div[normalize-space(text())='Create DNS Record']" # 页面头部名称 xpath +dns_records_profile_page_input_name_posxpath = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +dns_records_profile_page_radio_button_typea_posxpath = "//button[text()='A']" # A单选按钮id, +dns_records_profile_page_radio_button_typeaaaa_posxpath = "//button[text()='AAAA']" # AAAA单选按钮id +dns_records_profile_page_radio_button_typecname_posxpath = "//button[text()='CNAME']" # CNAME单选按钮id +dns_records_profile_page_input_search_for_posxpath = "//input[@class='MuiInput-input css-za5rna']" # search for 输入框id Xpath定位 +dns_records_profile_page_audit_logs_posxpath = "//span[text()='Audit Logs']" # Audit Logs +dns_records_profile_page_audit_logs_compare_posxpath = "//span[normalize-space(text())='Compare']" # compare +dns_records_profile_page_create_time_posxpath = "//div[normalize-space(text())='Created Time']/following-sibling::div" # created time +dns_records_profile_page_modify_time_posxpath = "//div[normalize-space(text())='Modified Time']/following-sibling::div" # modify time +dns_records_profile_page_button_add_item_posxpath = "//div[@class='mt-[10px] flex justify-center']" # 添加item按钮id +dns_records_profile_page_values_div_item_posxpath = "//div[@class='dns-record-profile-value']" # Values列表中每一个item的div容器定位 xpath +dns_records_profile_page_input_input_item_name_posxpath = "//div[normalize-space(text())='{replace_name}']//ancestor::div[@class='form-list-row css-xpbhx9']//input[@class='MuiInput-input css-1u0jcuo']" # item的输入框xpath, replaceNamew为替换内容 +dns_records_profile_page_button_save_item_by_name_posxpath = "//div[normalize-space(text())='{replace_name}']//ancestor::div[@class='form-list-row css-xpbhx9']//i[@class='operate-icon iconfont icon-save']" # item的保存xpath, replaceNamew为替换内容 +dns_records_profile_page_button_edit_item_by_name_posxpath = "//div[normalize-space(text())='{replace_name}']//ancestor::div[@class='form-list-row css-xpbhx9']//i[@class='iconfont icon-Edit']" # item的编辑按钮xpath, replaceNamew为替换内容 +dns_records_profile_page_button_del_item_by_name_posxpath = "//div[normalize-space(text())='{replace_name}']//ancestor::div[@class='form-list-row css-xpbhx9']//i[contains(@class, 'iconfont icon-Delete_X')]" # item的删除按钮, replaceNamew为替换内容 +dns_records_profile_page_text_area_description_posxpath = "//div[@class='dns-resource-record-description']//textarea[@placeholder='Please enter the content']" # description文本输入区id +# dnsRecordsProfilePage_alertContent_posXpath = "//body/div[@role='alert']" # 页面上不提示信息 dnsRecordsProfilePage_button_warningSaveYes_posCss = ".el-message-box__btns .el-button--primary span" # 提示保存ok按钮警告框 dnsRecordsProfilePage_button_warningSaveCancel_posCss = ".el-message-box__btns .operation-cancel span" # 提示保存取消按钮警告框 -dnsRecordsProfilePage_button_oK_posCss = "#dnsRecord_ok-_DNSRecordPrfileadd_Home_App_anonymousComponent span" # OK按钮css -dnsRecordsProfilePage_button_cancel_posCss = "#dnsRecord_cancel-_DNSRecordPrfileadd_Home_App_anonymousComponent span" # Cancel +dns_records_profile_page_button_ok_posxpath = "//button[normalize-space(text())='OK']" # OK按钮css +dns_records_profile_page_button_cancel_posxpath = "//button[normalize-space(text())='Cancel']" # Cancel # Profiles Response-Pages===================Profiles Response-Pages====================Profiles Response-Pages=================Profiles Response-Pages=======================Profiles Response-Pages=================Profiles Response-Pages # Response Pages list page 列表页 -listPage_profile_responsePages_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_ResponsePages_Home_App_anonymousComponent" # create按钮id -listPage_profile_responsePages_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_ResponsePages_Home_App_anonymousComponent" # edit按钮id -listPage_profile_responsePages_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_ResponsePages_Home_App_anonymousComponent" # del按钮id -listPage_profile_responsePages_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_ResponsePages_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_responsePages_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_responsePages_button_cancel_posId = "dropColcancel-_ElementSet_Profile_ResponsePages_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_responsePages_button_ok_posId = "dropColOK-_ElementSet_Profile_ResponsePages_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_responsePages_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_responsePages_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_response_pages_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_response_pages_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_response_pages_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +listpage_profile_response_pages_link_button_posxpath = listpage_profile_dns_records_link_button_posxpath # link按钮id +listpage_profile_column_response_pages_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# listPage_profileColumn_responsePages_button_cancel_posId = "dropColcancel-_ElementSet_Profile_ResponsePages_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_responsePages_button_ok_posId = "dropColOK-_ElementSet_Profile_ResponsePages_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_response_pages_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_response_pages_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_responsePages_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_responsePages_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_responsePages_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_responsePages_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_responsePages_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +# listPage_profileSearch_responsePages_dropDown_id_posId = listPage_profileSearch_dnsRecords_dropDown_id_posId # 下拉框 ID +# listPage_profileSearch_responsePages_dropDown_id_text_posId = listPage_profileSearch_dnsRecords_dropDown_id_text_posId +# listPage_profileSearch_responsePages_dropDown_name_posId = listPage_profileSearch_dnsRecords_dropDown_name_posId # 下拉框 Name +# listPage_profileSearch_responsePages_dropDown_name_text_posId = listPage_profileSearch_dnsRecords_dropDown_name_text_posId +listpage_profile_search_response_pages_drop_down_item_posxpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listpage_profile_search_response_pages_input_item_content_posxpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_response_pages_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_response_pages_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_responsePages_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_responsePages_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_response_pages_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_response_pages_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 -listPage_linkTips_responsePages_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_ResponsePages_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath -listPage_linkTips_responsePages_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_ResponsePages_Home_App_anonymousComponent']/i" # 添加 按钮 xpath -listPage_linkTips_responsePages_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_ResponsePages_Home_App_anonymousComponent']/span" # OK 按钮 xpath +listPage_linkTips_responsePages_button_save_posXpath = listPage_linkTips_dnsRecords_button_save_posXpath # 选择cluster后,save行 按钮 xpath +listPage_linkTips_responsePages_button_add_posXpath = listPage_linkTips_dnsRecords_button_add_posXpath # 添加 按钮 xpath +listPage_linkTips_responsePages_button_OK_posXpath = listPage_linkTips_dnsRecords_button_OK_posXpath # OK 按钮 xpath # Create Response Page 和 Edit Response Page 新增和编辑页 -responsePage_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -responsePage_input_Name_posId = "responsepages_profileName" # name输入框id -responsePage_input_file_posXpath = "//*[@id='responseAddUpload']/parent::*//input" # File上次输入按钮 +response_page_header_title_posXpath = "//div[normalize-space(text())='Create Response Page']" # 页面头部名称 xpath +response_page_input_name_posxpath = dns_records_profile_page_input_name_posxpath # name输入框id +response_page_input_file_posxpath = "//input[@class='css-1bigxrc']" # File上次输入按钮 responsePage_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 responsePage_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -responsePage_button_oK_posCss = "#responseAddOk1-_interceptionadd_Home_App_anonymousComponent span" # OK按钮css -responsePage_button_cancel_posCss = "#responseAddCancel1-_interceptionadd_Home_App_anonymousComponent span" # Cancel按钮 +response_page_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +response_page_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 +response_page_profile_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +response_page_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +response_page_profile_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +response_page_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles traffic mirroring profiles===================Profiles traffic mirroring profiles====================Profiles traffic mirroring profiles=================Profiles traffic mirroring profiles=======================Profiles traffic mirroring profiles=================Profiles traffic mirroring profiles # listPage->traffic mirroring profiles list page 列表页 -listPage_profile_trafficMirroringProfiles_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # create按钮id -listPage_profile_trafficMirroringProfiles_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # edit按钮id -listPage_profile_trafficMirroringProfiles_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # del按钮id -listPage_profile_trafficMirroringProfiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_trafficMirroringProfiles_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_trafficMirroringProfiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_trafficMirroringProfiles_button_ok_posId = "dropColOK-_ElementSet_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_trafficMirroringProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_trafficMirroringProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_traffic_mirroring_profiles_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_traffic_mirroring_profiles_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_traffic_mirroring_profiles_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +# listpage_profile_traffic_mirroring_profiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # link按钮id +listpage_profile_column_traffic_mirroring_profiles_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# listPage_profileColumn_trafficMirroringProfiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_trafficMirroringProfiles_button_ok_posId = "dropColOK-_ElementSet_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_traffic_mirroring_profiles_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_traffic_mirroring_profiles_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_trafficMirroringProfiles_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_trafficMirroringProfiles_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_trafficMirroringProfiles_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_trafficMirroringProfiles_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_trafficMirroringProfiles_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_trafficMirroringProfiles_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_trafficMirroringProfiles_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_traffic_mirroring_profiles_table_tbody_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表tabel body xpath 定位形式一样 +list_page_profile_table_traffic_mirroring_profiles_table_header_posXpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_trafficMirroringProfiles_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_trafficMirroringProfiles_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_traffic_mirroring_profiles_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_traffic_mirroring_profiles_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_trafficMirroringProfiles_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_trafficMirroringProfiles_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_trafficMirroringProfiles_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_TrafficMirrorProfiles_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create traffic mirroring profile page 和 Edit traffic mirroring profile page 新增和编辑页 -trafficMirroringProfiles_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -trafficMirroringProfiles_input_Name_posId = "trafficmirror_profileName" # name输入框id -trafficMirroringProfiles_button_vlanIdAdd_posCss = "#addrTypeAdd i" # vlan id 添加按钮css -trafficMirroringProfiles_input_vlanIdsInput_posXpath = "//form//div[contains(@class, 'addel-form')]//input" # 所有显示的vlan id的所有input定位,需要通过value二次处理,css +traffic_mirroring_profiles_header_title_posxpath = "//div[normalize-space(text())='Create Traffic Mirroring Profile']" # 页面头部名称 xpath +traffic_mirroring_profiles_input_name_posxpath = dns_records_profile_page_input_name_posxpath # name输入框id +traffic_mirroring_profiles_button_vlan_id_add_posxpath = "//i[@class='iconfont icon-Create1 font-[700]']" # vlan id 添加按钮css + +traffic_mirroring_profiles_input_vlan_ids_input_posxpath = "//input[@class='MuiInput-input css-1u0jcuo']" # 所有显示的vlan id的所有input定位,需要通过value二次处理,css trafficMirroringProfiles_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 trafficMirroringProfiles_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -trafficMirroringProfiles_button_oK_posCss = "#trafficMirrorProfile_ok span" # OK按钮css -trafficMirroringProfiles_button_cancel_posCss = "#trafficMirrorProfile_cancel span" # Cancel按钮 - +traffic_mirroring_profiles_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +traffic_mirroring_profiles_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 +traffic_mirroring_profiles_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +traffic_mirroring_profiles_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +traffic_mirroring_profiles_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +traffic_mirroring_profiles_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles ssl decryption keyrings===================Profiles ssl decryption keyrings====================Profiles ssl decryption keyrings=================Profiles ssl decryption keyrings=======================Profiles ssl decryption keyrings # listPage->ssl decryption keyrings list page 列表页 -listPage_profile_sslDecryptionKeyrings_createButton_posId = "app_create-_OperateBtns_ElRow_Certificate_Keyrings_Home_App_anonymousComponent" # create按钮id -listPage_profile_sslDecryptionKeyrings_editButton_posId = "appEdit-_OperateBtns_ElRow_Certificate_Keyrings_Home_App_anonymousComponent" # edit按钮id -listPage_profile_sslDecryptionKeyrings_delButton_posId = "appDel-_OperateBtns_ElRow_Certificate_Keyrings_Home_App_anonymousComponent" # del按钮id -listPage_profile_sslDecryptionKeyrings_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Certificate_Keyrings_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_sslDecryptionKeyrings_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_sslDecryptionKeyrings_button_cancel_posId = "dropColcancel-_ElementSet_Certificate_Keyrings_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_sslDecryptionKeyrings_button_ok_posId = "dropColOK-_ElementSet_Certificate_Keyrings_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_sslDecryptionKeyrings_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_sslDecryptionKeyrings_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_ssl_decryption_keyrings_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_ssl_decryption_keyrings_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_ssl_decryption_keyrings_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +# listPage_profile_sslDecryptionKeyrings_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Certificate_Keyrings_Home_App_anonymousComponent" # link按钮id +listpage_profile_column_ssl_decryption_keyrings_button_column_all_posXpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# listPage_profileColumn_sslDecryptionKeyrings_button_cancel_posId = "dropColcancel-_ElementSet_Certificate_Keyrings_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_sslDecryptionKeyrings_button_ok_posId = "dropColOK-_ElementSet_Certificate_Keyrings_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_ssl_decryption_keyrings_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_ssl_decryption_keyrings_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_sslDecryptionKeyrings_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_sslDecryptionKeyrings_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_sslDecryptionKeyrings_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_sslDecryptionKeyrings_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_sslDecryptionKeyrings_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_sslDecryptionKeyrings_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_sslDecryptionKeyrings_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_ssl_decryption_keyrings_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_ssl_decryption_keyrings_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_sslDecryptionKeyrings_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_sslDecryptionKeyrings_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_ssl_decryption_keyrings_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_ssl_decryption_keyrings_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_sslDecryptionKeyrings_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Certificate_Keyrings_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_sslDecryptionKeyrings_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Certificate_Keyrings_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_sslDecryptionKeyrings_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Certificate_Keyrings_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create ssl decryption keyrings page 和 Edit ssl decryption keyrings page 新增和编辑页 -sslDecryptionKeyrings_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -sslDecryptionKeyrings_input_Name_posId = "keyringsadd_name" # name输入框id -sslDecryptionKeyrings_input_certificateFile_posXpath = "//*[@id='keyringsadd_file']/parent::*//input" # 证书上传按钮xpath -sslDecryptionKeyrings_radio_privateKeyFile_posId = "private_file" # 私钥单选按钮 +ssl_decryption_keyrings_header_title_posxpath = dns_records_profile_page_header_title_posxpath # 页面头部名称 xpath +ssl_decryption_keyrings_input_name_posid = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +ssl_decryption_keyrings_input_certificate_file_posxpath = "//div[@class='ssl-keyring-public_file']//input[@class='css-1bigxrc']" # 证书上传按钮xpath +ssl_decryption_keyrings_radio_private_key_file_posxpath = "" # 私钥单选按钮 sslDecryptionKeyrings_radio_hsm_posId = "privateHSM" # 私钥单选按钮 -sslDecryptionKeyrings_input_privateKeyFile_posXpath = "//*[@id='keyringsadd_file1']/parent::*//input" # 证书上传按钮xpath +ssl_decryption_keyrings_input_private_key_file_posxpath = "//div[@class='ssl-keyring-private_file']//input[@class='css-1bigxrc']" # 证书上传按钮xpath sslDecryptionKeyrings_input_slotIdHSM_posId = "keyringsadd_slotid" # slot id输入框定位id -sslDecryptionKeyrings_radio_mirrorServerCertificate_poId = "keyringsadd_default" # 默认服务端证书时间单选按钮id -sslDecryptionKeyrings_radio_customized_poId = "keyringsadd_customized" # 自定义时间单选按钮id -sslDecryptionKeyrings_input_customized_poId = "reissueExpiryDate" # 自定义输入框id -sslDecryptionKeyrings_input_certificateType_poId = "certificateType_input" # 证书类型选择输入框id -sslDecryptionKeyrings_dropdown_certificateTypeSelect_poId = "certificateType_select{replaceIndex}" # 证书类型下拉列表item选择,replaceIndex为替换索引 -sslDecryptionKeyrings_input_publickKeyAlgorithm_poId = "keyringsadd_publicKeyAlgo" # 公钥算法选择输入框id -sslDecryptionKeyrings_dropdown_publickKeyAlgorithmSelect_poId = "keyringsadd_publicKeyAlgoSelet{replaceIndex}" # 公钥算术下拉列表item选择,replaceIndex为替换索引 -sslDecryptionKeyrings_input_certificateRevocationList_poId = "keyringsadd_crl" # Certificate Revocation List输入框id -sslDecryptionKeyrings_input_includeRoot_poXpath = "//*[@id='keyringsadd_includeRoot']/parent::*/span" # 包含根证书输入框开关选择xpath +ssl_decryption_keyrings_radio_mirror_server_certificate_posxpath = "//button[normalize-space(text())='Mirror Server Certificate']" # 默认服务端证书时间单选按钮id +ssl_decryption_keyrings_radio_customized_posxpath = "//button[normalize-space(text())='Customized']" # 自定义时间单选按钮id +ssl_decryption_keyrings_input_customized_posxpath = "//span[text()='h']/preceding-sibling::input" # 自定义输入框id +ssl_decryption_keyrings_input_certificate_type_posxpath = "//div[@class='ssl-keyring-keyring_type']//button[@class='MuiSelect-button css-1qmzz5g']" # 证书类型选择输入框id +ssl_decryption_keyrings_dropdown_certificate_type_select_posxpath = "//li[normalize-space(text())='{replace_name}']" # 证书类型下拉列表item选择,replaceIndex为替换索引 +ssl_decryption_keyrings_input_public_key_algorithm_posxpath = "//div[@class='ssl-keyring-public_key_algo']//button[@class='MuiSelect-button css-1qmzz5g']" # 公钥算法选择输入框id +ssl_decryption_keyrings_dropdown_publick_key_algorithm_select_posxpath = "//li[normalize-space(text())='{replace_name}']" # 公钥算术下拉列表item选择,replaceIndex为替换索引 +ssl_decryption_keyrings_input_certificate_revocation_list_posxpath = "//div[@class='ssl-keyring-crl']//input" # Certificate Revocation List输入框id +ssl_decryption_keyrings_input_include_root_posxpath = "//input[@class='PrivateSwitchBase-input MuiSwitch-input css-1m9pwf3']" # 包含根证书输入框开关选择xpath sslDecryptionKeyrings_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 sslDecryptionKeyrings_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -sslDecryptionKeyrings_button_oK_posCss = "#keyringsadd_sub span" # OK按钮css -sslDecryptionKeyrings_button_cancel_posCss = "#keyringsadd_info span" # Cancel按钮 +ssl_decryption_keyrings_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +ssl_decryption_keyrings_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 +ssl_decryption_keyrings_profile_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +ssl_decryption_keyrings_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +ssl_decryption_keyrings_profile_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +ssl_decryption_keyrings_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles ssl decryption profiles===================Profiles ssl decryption profiles====================Profiles ssl decryption profiles=================Profiles ssl decryption profiles=======================Profiles ssl decryption profiles # listPage->ssl decryption profiles list page 列表页 -listPage_profile_sslDecryptionProfiles_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_Decryption_Profile_Home_App_anonymousComponent" # create按钮id -listPage_profile_sslDecryptionProfiles_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_Decryption_Profile_Home_App_anonymousComponent" # edit按钮id -listPage_profile_sslDecryptionProfiles_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_Decryption_Profile_Home_App_anonymousComponent" # del按钮id -listPage_profile_sslDecryptionProfiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_Decryption_Profile_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_sslDecryptionProfiles_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_sslDecryptionProfiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Decryption_Profile_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_sslDecryptionProfiles_button_ok_posId = "dropColOK-_ElementSet_Profile_Decryption_Profile_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_sslDecryptionProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_sslDecryptionProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_ssl_decryption_profiles_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_ssl_decryption_profiles_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_ssl_decryption_profiles_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +# listPage_profile_sslDecryptionProfiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_Decryption_Profile_Home_App_anonymousComponent" # link按钮id +list_page_profile_column_ssl_decryption_profiles_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# #listPage_profileColumn_sslDecryptionProfiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Decryption_Profile_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_sslDecryptionProfiles_button_ok_posId = "dropColOK-_ElementSet_Profile_Decryption_Profile_Home_App_anonymousComponent" # ok按钮 +listPage_profileSearch_sslDecryptionProfiles_selectLabel_posId = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_ssl_decryption_profiles_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_sslDecryptionProfiles_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_sslDecryptionProfiles_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_sslDecryptionProfiles_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_sslDecryptionProfiles_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_sslDecryptionProfiles_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_sslDecryptionProfiles_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_sslDecryptionProfiles_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_ssl_decryption_profiles_table_tbody_posXpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_ssl_decryption_profiles_table_header_posXpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_sslDecryptionProfiles_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_sslDecryptionProfiles_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_ssl_decryption_profiles_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_ssl_decryption_profiles_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_sslDecryptionProfiles_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_Decryption_Profile_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_sslDecryptionProfiles_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_Decryption_Profile_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_sslDecryptionProfiles_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_Decryption_Profile_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create ssl decryption profiles page 和 Edit ssl decryption profiles page 新增和编辑页 -sslDecryptionProfiles_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -sslDecryptionProfiles_input_Name_posId = "decrytion_profileName" # name输入框id -sslDecryptionProfiles_switch_commonName_posXpath = "//*[@id='decryption-commenName']/parent::*" # common name 开关xpath -sslDecryptionProfiles_switch_issuer_posXpath = "//*[@id='decryption-issuer']/parent::*" # issuer 开关xpath -sslDecryptionProfiles_switch_selfSigned_posXpath = "//*[@id='decryption-signed']/parent::*" # decryption-signed 开关xpath -sslDecryptionProfiles_switch_expiryDate_posXpath = "//*[@id='decryption-expiration']/parent::*" # ddecryption-expiration 开关xpath -sslDecryptionProfiles_radio_failClose_posXpath = "//*[@id='decryptionfail-close']" # decryptionfail-close 点选按钮 Fail-close xpath -sslDecryptionProfiles_radio_passThrough_posXpath = "//*[@id='decryptionpass-through']" # decryptionpass-through 点选按钮 Pass-through xpath -sslDecryptionProfiles_switch_evCert_posXpath = "//*[@id='decryption-ev_cert']/parent::*" # ddecryption-expiration 开关xpath -sslDecryptionProfiles_switch_certificateTransparency_posXpath = "//*[@id='decryption-cert_transparency']/parent::*" # Certificate Transparency 开关xpath -sslDecryptionProfiles_switch_mutualAuthentication_posXpath = "//*[@id='decryption-client_cert_req']/parent::*" # Mutual Authentication 开关xpath -sslDecryptionProfiles_switch_onProtocolErrors_posXpath = "//*[@id='decryption-protocol_errors']/parent::*" # On Protocol Errors 开关xpath -sslDecryptionProfiles_switch_certificatePinning_posXpath = "//*[@id='decryption-pinning']/parent::*" # Certificate Pinning 开关xpath -sslDecryptionProfiles_switch_certificateNotInstalled_posXpath = "//*[@id='decryption-Certificate_Not_Installed']/parent::*" # Certificate Not Installed 开关xpath -sslDecryptionProfiles_switch_mirrorClientVersions_posXpath = "//*[@id='decryption-radio']/parent::*" # Mirror Client Versions 开关xpath -sslDecryptionProfiles_input_minVersion_posXpath = "//*[@id='decryption-radio']/ancestor::div[@class='decryption_from']/div[2]//i" # Min Version 下拉菜单xpath -sslDecryptionProfiles_dropDown_minVersion_posXpath = "//*[@id='pro_min{replaceIndex}']" # MMin Version 下拉列表中item选项定位 xpath。replaceIndex需要二次处理,替换为实际的索引。 -sslDecryptionProfiles_dropDown_maxVersion_posXpath = "//*[@id='pro_max{replaceIndex}']" # MMin Version 下拉列表中item选项定位 xpath。replaceIndex需要二次处理,替换为实际的索引。 -sslDecryptionProfiles_input_maxVersion_posXpath = "//*[@id='decryption-radio']/ancestor::div[@class='decryption_from']/div[3]//i" # Max Version 下拉菜单xpath -sslDecryptionProfiles_switch_allowHTTP2_posXpath = "//*[@id='decryption-allow_http2']/parent::*" # Allow HTTP2 开关xpath +sslDecryptionProfiles_headerTitle_posXpath = "//div[text()='Create Decryption Profile']" # 页面头部名称 xpath +ssl_decryption_profiles_input_name_posxpath = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +ssl_decryption_profiles_switch_common_name_posxpath = "//div[@class='ssl-decryption-profile-cn']" # common name 开关xpath +ssl_decryption_profiles_switch_issuer_posxpath = "//div[@class='ssl-decryption-profile-issuer']" # issuer 开关xpath +ssl_decryption_profiles_switch_self_signed_posxpath = "//div[@class='ssl-decryption-profile-self-signed']" # decryption-signed 开关xpath +ssl_decryption_profiles_switch_expiry_date_posxpath = "//div[@class='ssl-decryption-profile-expiration']" # ddecryption-expiration 开关xpath +ssl_decryption_profiles_radio_fail_close_posxpath = "//div[@class='ssl-decryption-profile-fail_action']//button[text()='Fail-close']" # decryptionfail-close 点选按钮 Fail-close xpath +ssl_decryption_profiles_radio_pass_through_posxpath = "//div[@class='ssl-decryption-profile-fail_action']//button[text()='Pass-through']" # decryptionpass-through 点选按钮 Pass-through xpath +ssl_decryption_profiles_switch_ev_cert_posxpath = "//div[@class='ssl-decryption-profile-ev_cert']" # ddecryption-expiration 开关xpath +ssl_decryption_profiles_switch_certificate_transparency_posxpath = "//div[@class='ssl-decryption-profile-cert_transparency']" # Certificate Transparency 开关xpath +ssl_decryption_profiles_switch_mutual_authentication_posxpath = "//div[@class='ssl-decryption-profile-mutual_authentication']" # Mutual Authentication 开关xpath +ssl_decryption_profiles_switch_on_protocol_errors_posxpath = "//div[@class='ssl-decryption-profile-protocol_errors']" # On Protocol Errors 开关xpath +ssl_decryptionProfiles_switch_certificate_pinning_posxpath = "//div[@class='ssl-decryption-profile-cert_pinning']" # Certificate Pinning 开关xpath +ssl_decryption_profiles_switch_certificate_not_installed_posxpath = "//div[@class='ssl-decryption-profile-trusted_root_cert_is_not_installed_on_client']/span" # Certificate Not Installed 开关xpath +ssl_decryption_profiles_switch_mirror_client_versions_posxpath = "//div[@class='ssl-decryption-profile-mirror_client']" # Mirror Client Versions 开关xpath +ssl_decryption_profiles_input_min_version_posxpath = "//div[@class='ssl-decryption-profile-min']" # Min Version 下拉菜单xpath +sslDecryptionProfiles_dropDown_minVersion_posxpath = "//*[@id='pro_min{replaceIndex}']" # MMin Version 下拉列表中item选项定位 xpath。replaceIndex需要二次处理,替换为实际的索引。 +sslDecryptionProfiles_dropDown_maxVersion_posxpath = "//*[@id='pro_max{replaceIndex}']" # MMin Version 下拉列表中item选项定位 xpath。replaceIndex需要二次处理,替换为实际的索引。 +ssl_decryption_profiles_input_max_version_posxpath = "//div[@class='ssl-decryption-profile-max']" # Max Version 下拉菜单xpath +ssl_decryption_profiles_switch_allow_http2_posxpath = "//div[@class='ssl-decryption-profile-allow_http2']" # Allow HTTP2 开关xpath sslDecryptionProfiles_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 slDecryptionProfiles_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -sslDecryptionProfiles_button_oK_posCss = "#decryption-ok span" # OK按钮css -sslDecryptionProfiles_button_cancel_posCss = "#decryption-cancel span" # Cancel按钮 +ssl_decryption_profiles_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +ssl_decryption_profiles_button_cancel_pospath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 +ssl_decryption_profile_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +ssl_decryption_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +ssl_decryption__profile_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +ssl_decryption_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles trusted certificate authorities===================Profiles trusted certificate authorities====================Profiles trusted certificate authorities=================Profiles trusted certificate authorities # listPage->trusted certificate authorities list page 列表页 -listPage_profile_trustedCertificateAuthorities_createButton_posId = "app_create-_OperateBtns_ElRow_Certificate_Authorities_Home_App_anonymousComponent" # create按钮id -listPage_profile_trustedCertificateAuthorities_editButton_posId = "appEdit-_OperateBtns_ElRow_Certificate_Authorities_Home_App_anonymousComponent" # edit按钮id -listPage_profile_trustedCertificateAuthorities_delButton_posId = "appDel-_OperateBtns_ElRow_Certificate_Authorities_Home_App_anonymousComponent" # del按钮id +listpage_profile_trusted_certificate_authorities_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_trusted_certificate_authorities_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_trusted_certificate_authorities_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id listPage_profile_trustedCertificateAuthorities_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Certificate_Authorities_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_trustedCertificateAuthorities_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_trustedCertificateAuthorities_button_cancel_posId = "dropColcancel-_ElementSet_Certificate_Authorities_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_trustedCertificateAuthorities_button_ok_posId = "dropColOK-_ElementSet_Certificate_Authorities_Home_App_anonymousComponent" # ok按钮 -listPage_profile_trustedCertificateAuthorities_allButton_posId = "authorities_built0" # All按钮id +listpage_profile_column_trusted_certificate_authorities_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# listPage_profileColumn_trustedCertificateAuthorities_button_cancel_posId = "dropColcancel-_ElementSet_Certificate_Authorities_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_trustedCertificateAuthorities_button_ok_posId = "dropColOK-_ElementSet_Certificate_Authorities_Home_App_anonymousComponent" # ok按钮 +listpage_profile_trusted_certificate_authorities_all_button_posxpath = "authorities_built0" # All按钮id listPage_profile_trustedCertificateAuthorities_builtinButton_posId = "authorities_built1" # Built-in按钮id listPage_profile_trustedCertificateAuthorities_importedButton_posId = "authorities_built2" # Imported按钮id -listPage_profile_trustedCertificateAuthorities_button_allSelect_posXpath = mainPage_profileBottomPage_button_allSelect_posXpath # 页面底部all选择按钮 -listPage_profileSearch_trustedCertificateAuthorities_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_trustedCertificateAuthorities_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_trusted_certificate_authorities_button_all_select_posxpath = mainpage_profile_bottom_page_button_all_select_posXpath # 页面底部all选择按钮 +listpage_profile_search_trusted_certificate_authorities_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_trusted_certificate_authorities_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_trustedCertificateAuthorities_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_trustedCertificateAuthorities_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_trustedCertificateAuthorities_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_trustedCertificateAuthorities_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_trustedCertificateAuthorities_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_trustedCertificateAuthorities_dropDown_common_name_posId = "91-_FilteredSearch_ElRow_Certificate_Authorities_Home_App_anonymousComponent" +listPage_profileSearch_trustedCertificateAuthorities_dropDown_certificate_fingerprint_posId = "92-_FilteredSearch_ElRow_Certificate_Authorities_Home_App_anonymousComponent" +listPage_profileSearch_trustedCertificateAuthorities_common_name_text_posXpath = "//div[@class='rel-input v-input input el-input el-input--mini']/input" +listPage_profileSearch_trustedCertificateAuthorities_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_trustedCertificateAuthorities_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_trusted_certificate_authorities_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_trusted_certificate_authorities_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_trustedCertificateAuthorities_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_trustedCertificateAuthorities_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_trusted_certificate_authorities_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_trusted_certificate_authorities_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_trustedCertificateAuthorities_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Certificate_Authorities_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_trustedCertificateAuthorities_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Certificate_Authorities_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_trustedCertificateAuthorities_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Certificate_Authorities_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create trusted certificate authorities page 和 Edit trusted certificate authorities page 新增和编辑页 -trustedCertificateAuthorities_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath +trustedCertificateAuthorities_headerTitle_posXpath = dns_records_profile_page_header_title_posxpath # 页面头部名称 xpath trustedCertificateAuthorities_input_Name_posId = "authoritiesAdd_name" # name输入框id trustedCertificateAuthorities_input_certificateFile_posXpath = "//*[@id='authoritiesAdd_file']/parent::*//input" # 证书上传按钮xpath trustedCertificateAuthorities_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 trustedCertificateAuthorities_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -trustedCertificateAuthorities_button_oK_posCss = "#authoritiesAdd_sub span" # OK按钮css -trustedCertificateAuthorities_button_cancel_posCss = "#authoritiesAdd_cancel span" # Cancel按钮css +trusted_certificate_authorities_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +trusted_certificate_authorities_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮css +trusted_certificate_authorities_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +trusted_certificate_authorities_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +trusted_certificate_authorities_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +trusted_certificate_authorities_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles cached intermediate certificates===================Profiles cached intermediate certificates====================Profiles cached intermediate certificates=================Profiles cached intermediate certificates # listPage->cached intermediate certificates list page 列表页 listPage_profileColumn_cachedIntermediateCertificates_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 listPage_profileColumn_cachedIntermediateCertificates_button_cancel_posId = "dropColcancel-_ElementSet_Certificate_Intermediacert_Home_App_anonymousComponent" # cancel按钮 listPage_profileColumn_cachedIntermediateCertificates_button_ok_posId = "dropColOK-_ElementSet_Certificate_Intermediacert_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_cachedIntermediateCertificates_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_cachedIntermediateCertificates_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_search_cached_intermediate_certificates_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_cached_intermediate_certificates_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_cachedIntermediateCertificates_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_cachedIntermediateCertificates_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_cachedIntermediateCertificates_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_cachedIntermediateCertificates_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_cachedIntermediateCertificates_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_cachedIntermediateCertificates_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_cachedIntermediateCertificates_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listPage_profilTable_cachedIntermediateCertificates_tableTbody_posXpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listPage_profilTable_cachedIntermediateCertificates_tableHeader_posXpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # Profiles SSL fingerprints===================Profiles SSL fingerprints====================Profiles SSL fingerprints=================Profiles SSL fingerprints=======================Profiles SSL fingerprints # listPage->SSL fingerprints list page 列表页 -listPage_profile_sslFingerprints_createButton_posId = "app_create-_OperateBtns_ElRow_Fingerprint_Home_App_anonymousComponent" # create按钮id -listPage_profile_sslFingerprints_editButton_posId = "appEdit-_OperateBtns_ElRow_Fingerprint_Home_App_anonymousComponent" # edit按钮id -listPage_profile_sslFingerprints_delButton_posId = "appDel-_OperateBtns_ElRow_Fingerprint_Home_App_anonymousComponent" # del按钮id -listPage_profile_sslFingerprints_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Fingerprint_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_sslFingerprints_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_sslFingerprints_button_cancel_posId = "dropColcancel-_ElementSet_Fingerprint_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_sslFingerprints_button_ok_posId = "dropColOK-_ElementSet_Fingerprint_Home_App_anonymousComponent" # ok按钮 -listPage_profile_sslFingerprints_allButton_posId = "Fingerprint_built0" # All按钮id -listPage_profile_sslFingerprints_pinnedButton_posId = "Fingerprint_built1" # pinned按钮id +listpage_profile_ssl_fingerprints_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_ssl_fingerprints_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_ssl_fingerprints_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +listpage_profile_ssl_fingerprints_link_button_posxpath = "btnCopy-_OperateBtns_ElRow_Fingerprint_Home_App_anonymousComponent" # link按钮id +# listpage_profile_column_ssl_fingerprints_button_column_all_posXpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# listPage_profileColumn_sslFingerprints_button_cancel_posId = "dropColcancel-_ElementSet_Fingerprint_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_sslFingerprints_button_ok_posId = "dropColOK-_ElementSet_Fingerprint_Home_App_anonymousComponent" # ok按钮 +listpage_profile_ssl_fingerprints_all_button_posxpath = "Fingerprint_built0" # All按钮id +listpage_profile_sslfingerprints_pinned_button_posxpath = "Fingerprint_built1" # pinned按钮id listPage_profile_sslFingerprints_notPinnedButton_posId = "Fingerprint_built2" # not pinned按钮id listPage_profile_sslFingerprints_importUAB_utton_posXpath = "//button//*[contains(@class, 'icon-SSL')]" # 导入 user-agent 按钮定位 xpath listPage_profile_sslFingerprints_import_Button_posXpath = "//*[@id='objectImport-_importAndExport_ElRow_Fingerprint_Home_App_anonymousComponent']" # 导入按钮定位 xpath @@ -339,16 +364,16 @@ listPage_profile_sslFingerprints_importUpload_Button_posXpath = "//*[@id='SSLFin listPage_profile_sslFingerprints_importUploadUA_Button_posXpath = "//*[@enctype='multipart/form-data']//input" # 上传文件 按钮定位 xpath listPage_profile_sslFingerprints_importUploadOk_Button_posXpath = "//button[contains(@class, 'upload-button')]//span" # 上传文件 OK 钮定位 xpath listPage_profile_sslFingerprints_importUploadUserAgentOk_Button_posXpath = "//*[@id='Import_ua_Ok']//span" # 上传User Agent文件 OK 钮定位 xpath -listPage_profileSearch_sslFingerprints_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_sslFingerprints_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_search_ssl_fingerprints_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_ssl_fingerprints_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_sslFingerprints_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_sslFingerprints_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_sslFingerprints_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_sslFingerprints_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_sslFingerprints_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_sslFingerprints_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_sslFingerprints_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listPage_profilTable_sslFingerprints_tableTbody_posXpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listPage_profilTable_sslFingerprints_tableHeader_posXpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_sslFingerprints_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_sslFingerprints_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_ssl_fingerprints_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_ssl_fingerprints_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_sslFingerprints_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Fingerprint_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_sslFingerprints_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Fingerprint_Home_App_anonymousComponent']/i" # 添加 按钮 xpath @@ -363,316 +388,231 @@ sslFingerprints_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warn sslFingerprints_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 sslFingerprints_button_oK_posCss = "#authoritiesAdd_sub span" # OK按钮css sslFingerprints_button_cancel_posCss = "#authoritiesAdd_cancel span" # Cancel按钮 - +ssl_fingerprints_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +ssl_fingerprints_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +ssl_fingerprints_profile_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +ssl_fingerprints_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles tcp proxy profiles===================Profiles tcp proxy profiles====================Profiles tcp proxy profiles=================Profiles tcp proxy profiles=======================Profiles tcp proxy profiles # listPage->tcp proxy profiles list page 列表页 -listPage_profile_tcpProxyProfiles_createButton_posId = "app_create-_OperateBtns_ElRow_advanced_Home_App_anonymousComponent" # create按钮id -listPage_profile_tcpProxyProfiles_editButton_posId = "appEdit-_OperateBtns_ElRow_advanced_Home_App_anonymousComponent" # edit按钮id -listPage_profile_tcpProxyProfiles_delButton_posId = "appDel-_OperateBtns_ElRow_advanced_Home_App_anonymousComponent" # del按钮id +listpage_profile_tcp_proxy_profiles_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_tcp_proxy_profiles_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_tcp_proxy_profiles_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id listPage_profile_tcpProxyProfiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_advanced_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_tcpProxyProfiles_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_tcpProxyProfiles_button_cancel_posId = "dropColcancel-_ElementSet_advanced_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_tcpProxyProfiles_button_ok_posId = "dropColOK-_ElementSet_advanced_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_tcpProxyProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_tcpProxyProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_column_tcp_proxy_profiles_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +# listPage_profileColumn_tcpProxyProfiles_button_cancel_posId = "dropColcancel-_ElementSet_advanced_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_tcpProxyProfiles_button_ok_posId = "dropColOK-_ElementSet_advanced_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_tcp_proxy_profiles_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_tcp_proxy_profiles_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_tcpProxyProfiles_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_tcpProxyProfiles_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_tcpProxyProfiles_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_tcpProxyProfiles_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_tcpProxyProfiles_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_tcpProxyProfiles_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_tcpProxyProfiles_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listPage_profilTable_tcpProxyProfiles_tableTbody_posXpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listPage_profilTable_tcpProxyProfiles_tableHeader_posXpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_tcpProxyProfiles_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_tcpProxyProfiles_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialog_tips_tcp_proxy_profiles_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialog_tips_tcp_proxy_profiles_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_tcpProxyProfiles_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_advanced_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_tcpProxyProfiles_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_advanced_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_tcpProxyProfiles_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_advanced_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create tcp proxy profiles page 和 Edit tcp proxy profiles page 新增和编辑页 -tcpProxyProfiles_headerTitle_posXpath = "//div[@id='router-view-container']//div[contains(@class, 'policy-form-header')]/span" # 页面头部名称 xpath -tcpProxyProfiles_input_Name_posId = "advancedAdd_policyName" # name输入框id -tcpProxyProfiles_switch_enableTCPPassthrough_posXpath = "//*[@id='proxytcpThrough1']/parent::*" # Enable TCP Passthrough状态开关 xpath -tcpProxyProfiles_switch_clientOverrideMSS_posXpath = "(//*[@id='anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent_proxytcpParameter_tcp_maxseg'])[1]/parent::*" # Client-side Override MSS状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_clientOverrideMSS_posXpath = "//div[@id='policy_paper_left']/div[2]/form/div[6]/form/div[2]/div/div/input" # Client-side Override MSS输入框 xpath -tcpProxyProfiles_switch_clientNoDelay_posXpath = "(//*[@id='proxytcpParameters_nodelay_anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent'])[1]/parent::*" # Client-side No Delay状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_clientTTL_posXpath = "(//*[@id='proxytcpParameters_ttl_anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent'])[1]" # Client-side TTL输入框 xpath -tcpProxyProfiles_switch_clientKeepalive_posXpath = "(//*[@id='anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent_proxytcpParameters_keepalive'])[1]/parent::*" # Client-side Keepalive状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_clientProbeNumber_posXpath = "(//*[@id='proxytcpParameters_keepcnt'])[1]" # Client-side Probe Number输入框 xpath -tcpProxyProfiles_input_clientIdleTime_posXpath = "(//*[@id='proxytcpParameters_ldeleTime'])[1]" # Client-side Idle Time输入框 xpath -tcpProxyProfiles_input_clientInterval_posXpath = "(//*[@id='proxytcpParameters_interval'])[1]" # Client-side Interval输入框 xpath -tcpProxyProfiles_switch_clientUserTimeout_posXpath = "(//*[@id='anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent_proxytcpParameters_keepalive'])[2]/parent::*" # Client-side User Timeout状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_clientUserTimeout_posXpath = "(//*[@id='proxytcpParameters_userTimeout_anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent'])[1]" # Client-side User Timeout输入框 xpath -tcpProxyProfiles_switch_serverOverrideMSS_posXpath = "(//*[@id='anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent_proxytcpParameter_tcp_maxseg'])[2]/parent::*" # Server-side Override MSS状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_serverOverrideMSS_posXpath = "//div[@id='policy_paper_left']/div[2]/form/div[7]/form/div[2]/div/div/input" # Server-side Override MSS输入框 xpath -tcpProxyProfiles_switch_serverNoDelay_posXpath = "(//*[@id='proxytcpParameters_nodelay_anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent'])[2]/parent::*" # Server-side No Delay状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_serverTTL_posXpath = "(//*[@id='proxytcpParameters_ttl_anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent'])[2]" # Server-side TTL输入框 xpath -tcpProxyProfiles_switch_serverKeepalive_posXpath = "(//*[@id='anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent_proxytcpParameters_keepalive'])[3]/parent::*" # Server-side Keepalive状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_serverProbeNumber_posXpath = "(//*[@id='proxytcpParameters_keepcnt'])[2]" # Server-side Probe Number输入框 xpath -tcpProxyProfiles_input_serverIdleTime_posXpath = "(//*[@id='proxytcpParameters_ldeleTime'])[2]" # Server-side Idle Time输入框 xpath -tcpProxyProfiles_input_serverInterval_posXpath = "(//*[@id='proxytcpParameters_interval'])[2]" # Server-side Interval输入框 xpath -tcpProxyProfiles_switch_serverUserTimeout_posXpath = "(//*[@id='anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent_proxytcpParameters_keepalive'])[4]/parent::*" # Server-side User Timeout状态开关 xpath,点击操作其子元素改变状态 -tcpProxyProfiles_input_serverUserTimeout_posXpath = "(//*[@id='proxytcpParameters_userTimeout_anonymousComponent_ElForm_advancedAdd_Home_App_anonymousComponent'])[2]" # Client-side User Timeout输入框 xpath +tcp_proxy_profiles_header_title_posxpath = "//div[normalize-space(text())='Create TCP Proxy Profile']" # 页面头部名称 xpath +tcp_proxy_profiles_input_name_posxpath = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +tcp_proxy_profiles_switch_enable_tcp_passthrough_posxpath = "//div[@class='proxy-tcp-option-tcp_passthrough']" # Enable TCP Passthrough状态开关 xpath +tcp_proxy_profiles_switch_client_override_mss_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//label[text()='Override MSS']/following-sibling::div" # Client-side Override MSS状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_client_override_mss_posxath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-maxseg']//input" # Client-side Override MSS输入框 xpath +tcp_proxy_profiles_switch_client_nodelay_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-nodelay']" # Client-side No Delay状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_client_ttl_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-ttl']//input" # Client-side TTL输入框 xpath +tcp_proxy_profiles_switch_client_keepalive_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//label[text()='Keepalive']/following-sibling::div" # Client-side Keepalive状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_client_probe_number_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-tcp_keepcnt']//input" # Client-side Probe Number输入框 xpath +tcp_proxy_profiles_input_client_idle_time_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-tcp_keepidle']//input" # Client-side Idle Time输入框 xpath +tcp_proxy_profiles_input_client_interval_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-tcp_keepintvl']//input" # Client-side Interval输入框 xpath +tcp_proxy_profiles_switch_client_user_timeout_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//label[text()='User Timeout']/following-sibling::div" # Client-side User Timeout状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_client_user_timeout_posxpath = "//div[normalize-space(text())='Client-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-timeout_ms']//input" # Client-side User Timeout输入框 xpath +tcp_proxy_profiles_switch_server_override_mss_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//label[text()='Override MSS']/following-sibling::div" # Server-side Override MSS状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_server_override_mss_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-maxseg']//input" # Server-side Override MSS输入框 xpath +tcp_proxy_profiles_switch_server_nodelay_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-nodelay']" # Server-side No Delay状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_server_ttl_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-ttl']//input" # Server-side TTL输入框 xpath +tcp_proxy_profiles_switch_server_keepalive_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//label[text()='Keepalive']/following-sibling::div" # Server-side Keepalive状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_server_probe_number_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-tcp_keepcnt']//input" # Server-side Probe Number输入框 xpath +tcp_proxy_profiles_input_server_idle_time_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-tcp_keepidle']//input" # Server-side Idle Time输入框 xpath +tcp_proxy_profiles_input_server_interval_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-tcp_keepintvl']//input" # Server-side Interval输入框 xpath +tcp_proxy_profiles_switch_server_user_timeout_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//label[text()='User Timeout']/following-sibling::div" # Server-side User Timeout状态开关 xpath,点击操作其子元素改变状态 +tcp_proxy_profiles_input_server_user_timeout_posxpath = "//div[normalize-space(text())='Server-side Parameters']/following-sibling::*//div[@class='proxy-tcp-option-timeout_ms']//input" # Client-side User Timeout输入框 xpath tcpProxyProfiles_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 tcpProxyProfiles_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -tcpProxyProfiles_button_oK_posCss = "#proxyTCPSuccess span" # OK按钮css -tcpProxyProfiles_button_cancel_posCss = "#proxyTCPCancel span" # Cancel按钮css +tcp_proxy_profiles_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +tcp_proxy_profiles_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮css +tcp_proxy_profiles_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +tcp_proxy_profiles_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +tcp_proxy_profiles_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +tcp_proxy_profiles_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles hijack files===================Profiles hijack files====================Profiles hijack files=================Profiles hijack files=======================Profiles hijack files # listPage->hijack files list page 列表页 -listPage_profile_hijackFiles_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_HijackFiles_Home_App_anonymousComponent" # create按钮id -listPage_profile_hijackFiles_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_HijackFiles_Home_App_anonymousComponent" # edit按钮id -listPage_profile_hijackFiles_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_HijackFiles_Home_App_anonymousComponent" # del按钮id -listPage_profile_hijackFiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_HijackFiles_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_hijackFiles_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_hijackFiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_HijackFiles_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_hijackFiles_button_ok_posId = "dropColOK-_ElementSet_Profile_HijackFiles_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_hijackFiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_hijackFiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_hijack_files_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_hijack_files_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_hijack_files_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +# listPage_profile_hijackFiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_HijackFiles_Home_App_anonymousComponent" # link按钮id +# listPage_profileColumn_hijackFiles_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 +# listPage_profileColumn_hijackFiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_HijackFiles_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_hijackFiles_button_ok_posId = "dropColOK-_ElementSet_Profile_HijackFiles_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_hijack_files_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_hijack_files_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_hijackFiles_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_hijackFiles_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_hijackFiles_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_hijackFiles_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_hijackFiles_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listpage_profile_search_hijack_files_drop_down_item_posxpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listpage_profile_search_hijack_files_input_item_content_posxpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_hijack_files_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_hijack_files_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_hijackFiles_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_hijackFiles_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_hijack_files_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_hijack_files_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_hijackFiles_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_HijackFiles_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_hijackFiles_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_HijackFiles_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_hijackFiles_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_HijackFiles_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create hijack files page 和 Edit hijack files page 新增和编辑页 -hijackFiles_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -hijackFiles_input_Name_posId = "hijack_name" # name输入框id -hijackFiles_input_fileUpLoad_posXpath = "//*[@id='uploadFile']/parent::*//input" # input 上传文件xpath -hijackFiles_switch_downLoadName_posXpath = "//*[@id='contentNameChoose']/parent::*" # download name状态开关 xpath,点击操作其子元素改变状态 -hijackFiles_input_downLoadName_posXpath = "//*[@id='hijack_contentName']" # 下载文件名称输入框 xpath -hijackFiles_button_fileType_posXpath = "//*[normalize-space(text())='File Type']/parent::*//input" # 添加文件类型按钮 xpath -hijackFiles_tablist_fileType_posXpath = "//*[@class='el-scrollbar']//span[normalize-space(text())='{replaceName}']" # 右侧滑中type元素定位 xpath。需要二次处理,replaceName替换为类型名称 +hijack_files_header_title_posxpath = "//div[normalize-space(text())='Create TSG Proxy Script']" # 页面头部名称 xpath +hijack_files_input_name_posxpath = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +hijack_files_input_file_upload_posxpath = "//input[@class='css-1bigxrc']" # input 上传文件xpath +hijack_files_switch_download_name_posxpath = "//span[@class='MuiSwitch-root MuiSwitch-sizeMedium css-ozubxn']" # download name状态开关 xpath,点击操作其子元素改变状态 +hijack_files_input_download_name_posxpath = "//div[@class='proxy-hijack-file-content_name']//input[@class='MuiInput-input css-fqt4w4']" # 下载文件名称输入框 xpath +hijack_files_button_file_type_posxpath = "//button[@class='MuiSelect-button css-1qmzz5g']" # 添加文件类型按钮 xpath +hijack_files_tablist_file_type_posXpath = "//li[@class='MuiOption-root css-16dj9yy' and normalize-space(text())='{replace_name}']" # 右侧滑中type元素定位 xpath。需要二次处理,replaceName替换为类型名称 hijackFiles_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 hijackFiles_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -hijackFiles_button_oK_posCss = "#hijackAddOk1 span" # OK按钮css -hijackFiles_button_cancel_posCss = "#hijackAddCancel1 span" # Cancel按钮 +hijack_files_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +hijack_files_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 hijackFiles_button_Sync_pos = "//span[text()='Sync']" # Sync 按钮 +hijack_files_profile_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +hijack_files_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +hijack_files_profile_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +hijack_files_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles insert scripts===================Profiles insert scripts====================Profiles insert scripts=================Profiles insert scripts=======================Profiles insert scripts # listPage->insert scripts list page 列表页 -listPage_profile_insertScripts_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_Insert_Home_App_anonymousComponent" # create按钮id -listPage_profile_insertScripts_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_Insert_Home_App_anonymousComponent" # edit按钮id -listPage_profile_insertScripts_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_Insert_Home_App_anonymousComponent" # del按钮id -listPage_profile_insertScripts_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_Insert_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_insertScripts_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_insertScripts_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Insert_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_insertScripts_button_ok_posId = "dropColOK-_ElementSet_Profile_Insert_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_insertScripts_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_insertScripts_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_insert_scripts_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_insert_scripts_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_insert_scripts_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +# listPage_profile_insertScripts_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_Insert_Home_App_anonymousComponent" # link按钮id +# listPage_profileColumn_insertScripts_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 +# listPage_profileColumn_insertScripts_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Insert_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_insertScripts_button_ok_posId = "dropColOK-_ElementSet_Profile_Insert_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_insert_scripts_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_insert_scripts_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_insertScripts_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_insertScripts_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_insertScripts_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_insertScripts_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_insertScripts_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listpage_profile_search_insert_scripts_drop_down_item_posxpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listpage_profile_search_insert_scripts_input_item_content_posxpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_insert_scripts_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listPage_profile_table_insert_scripts_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_insertScripts_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_insertScripts_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_insert_scripts_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_insert_scripts_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_insertScripts_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_Insert_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_insertScripts_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_Insert_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_insertScripts_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_Insert_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create insert scripts page 和 Edit inserts script page 新增和编辑页 -insertScripts_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -insertScripts_input_Name_posId = "insert_profileName" # name输入框id -insertScripts_input_scriptUpLoad_posXpath = "//*[@id='insertAddUpload']//input" # input 上传文件xpath -insertScripts_input_scriptType_posXpath = "//*[@id='insert_select_format']" # input 文件类型选择xpath -insertScripts_dropdown_jsItem_posXpath = "//*[@id='insert_select_formatjs']" # 下拉菜单 js选项 xpath -insertScripts_dropdown_cssItem_posXpath = "//*[@id='insert_select_formatcss']" # 下拉菜单 js选项 xpath -insertScripts_input_insertPosition_posXpath = "//*[@id='insert_select_insertOn']" # input insert position xpath -insertScripts_dropdown_beforePageLoadItem_posXpath = "//*[@x-placement='bottom-start']//li[1]" # 下拉菜单 before page load xpath -insertScripts_dropdown_afterPageLoadItem_posXpath = "//*[@x-placement='bottom-start']//li[2]" # 下拉菜单 after page load xpath +insert_scripts_header_title_posxpath = "//div[normalize-space(text())='Insert Scripts']" # 页面头部名称 xpath +insert_scripts_input_name_posxpath = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +insert_scripts_input_scriptupload_posxpath = "//input[@class='css-1bigxrc']" # input 上传文件xpath +insert_scripts_input_script_type_posxpath = "//div[@class='proxy-inject-script-format']" # input 文件类型选择xpath +insert_scripts_dropdown_jsitem_posxpath = "//li[@class='MuiOption-root js css-2lupvy']" # 下拉菜单 js选项 xpath +insert_scripts_dropdown_cssitem_posxpath = "//li[@class='MuiOption-root css css-1fryf7q']" # 下拉菜单 js选项 xpath +insert_scripts_input_insert_position_posxpath = "//div[@class='proxy-inject-script-insert_on']" # input insert position xpath +insert_scripts_dropdown_beforepageloaditem_posxpath = "//li[@class='MuiOption-root before_page_load css-1fryf7q']" # 下拉菜单 before page load xpath +insert_scripts_dropdown_afterpageloaditem_posxpath = "//li[@class='MuiOption-root after_page_load css-2lupvy']" # 下拉菜单 after page load xpath insertScripts_alert_topInfo_Xpath = profilePage_alert_topInfo_Xpath # 页面顶部alert信息 insertScripts_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 insertScripts_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -insertScripts_button_oK_posCss = "#insertAddOk1 span" # OK按钮css -insertScripts_button_cancel_posCss = "#insertAddCancel1 span" # Cancel按钮 +insert_scripts_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +insert_scripts_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 +insert_scripts_profile_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +insert_scripts_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +insert_scripts_profile_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +insert_scripts_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath + # Profiles tsg proxy scripts===================Profiles tsg proxy scripts====================Profiles tsg proxy scripts=================Profiles tsg proxy scripts=======================Profiles tsg proxy scripts # listPage->tsg proxy scripts list page 列表页 -listPage_profile_tsgProxyScripts_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_RunScript_Home_App_anonymousComponent" # create按钮id -listPage_profile_tsgProxyScripts_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_RunScript_Home_App_anonymousComponent" # edit按钮id -listPage_profile_tsgProxyScripts_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_RunScript_Home_App_anonymousComponent" # del按钮id -listPage_profileColumn_tsgProxyScripts_button_columnAll_posXpath = "//div[@class='ly-eventfixed']//span[text()='All']/parent::label" # 列选择All按钮 -listPage_profileColumn_tsgProxyScripts_button_cancel_posId = "dropColcancel-_ElementSet_Profile_RunScript_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_tsgProxyScripts_button_ok_posId = "dropColOK-_ElementSet_Profile_RunScript_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_tsgProxyScripts_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_tsgProxyScripts_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_tsg_proxy_scripts_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_tsg_proxy_scripts_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_tsg_proxy_scripts_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id +listpage_profile_column_tsg_proxy_scripts_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +listpage_profile_search_tsg_proxy_scripts_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_tsg_proxy_scripts_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_tsgProxyScripts_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_tsgProxyScripts_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_tsgProxyScripts_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_tsgProxyScripts_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_tsgProxyScripts_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_tsgProxyScripts_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_tsgProxyScripts_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_tsg_proxy_scripts_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_tsg_proxy_scripts_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_tsgProxyScripts_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_tsgProxyScripts_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_tsg_proxy_scripts_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_tsg_proxy_scripts_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # Create tsg proxy scripts page 和 Edit tsg proxy scripts page 新增和编辑页 -tsgProxyScripts_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -tsgProxyScripts_input_Name_posXpath = "//*[@class='biFangName']//input" # name输入框xpath -tsgProxyScripts_input_runScripts_posXpath = "//*[@id='uloadFile']/parent::*//input" # input 上传文件xpath -tsgProxyScripts_input_maximumExecutionTime_posXpath = "//*[@id='insert_select_format']" # input Maximum Execution Time xpath +tsg_proxy_scripts_header_title_posxpath = dns_records_profile_page_header_title_posxpath # 页面头部名称 xpath +tsg_proxy_scripts_input_name_posxpath = dns_records_profile_page_input_name_posxpath # name输入框xpath +tsg_proxy_scripts_input_run_scripts_posxpath = "//div[@class='http-manipulation-script-file']//input" # input 上传文件xpath +tsg_proxy_scripts_input_maximumexecutiontime_posxpath = "//div[@class='http-manipulation-script-max_exec_time']//input" # input Maximum Execution Time xpath tsgProxyScripts_alert_topInfo_Xpath = profilePage_alert_topInfo_Xpath # 顶部提示信息alert框 tsgProxyScripts_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 tsgProxyScripts_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -tsgProxyScripts_button_oK_posCss = "#runScriptOk1 span" # OK按钮css -tsgProxyScripts_button_cancel_posCss = "#runScriptCancel1 span" # Cancel按钮 - -# Profiles vpn accounts===================Profiles vpn accounts====================Profiles vpn accounts=================Profiles vpn accounts=======================Profiles vpn accounts -# listPage->tsg vpn accounts list page 列表页 -listPage_profile_vpnAccounts_createButton_posId = "app_create-_OperateBtns_ElCol_ElRow_Setting_Wannat_Home_App_anonymousComponent" # create按钮id -listPage_profile_vpnAccounts_editButton_posId = "appEdit-_OperateBtns_ElCol_ElRow_Setting_Wannat_Home_App_anonymousComponent" # edit按钮id -listPage_profile_vpnAccounts_delButton_posId = "appDel-_OperateBtns_ElCol_ElRow_Setting_Wannat_Home_App_anonymousComponent" # del按钮id -listPage_profileSearch_vpnAccounts_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_vpnAccounts_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 -listPage_profileSearch_vpnAccounts_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_vpnAccounts_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_vpnAccounts_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_vpnAccounts_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_vpnAccounts_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 -# listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_vpnAccounts_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_vpnAccounts_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 -# Create vpn accounts page 和 Edit vpn accounts page 新增和编辑页 -vpnAccounts_input_vpnName_posXpath = "//*[@id='wannat_vpn_username']" # vpn name输入框xpath -vpnAccounts_input_vpnpassword_posXpath = "//*[@id='Account_VPanel_VEditPanel_Setting_WannatDetail_Home_App_anonymousComponent_formPassword']" # input vpn password xpath -vpnAccounts_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 -vpnAccounts_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -vpnAccounts_button_oK_posCss = "#wanAdd_ok-_Setting_WannatDetail_Home_App_anonymousComponent span" # OK按钮css -vpnAccounts_button_cancel_posCss = "#wanAdd_cancel-_Setting_WannatDetail_Home_App_anonymousComponent span" # Cancel按钮 - -# Profiles wannat test servers===================Profiles wannat test servers====================Profiles wannat test servers=================Profiles wannat test servers=======================Profiles wannat test servers -# listPage->tsg wannat test servers list page 列表页 -listPage_profile_wannatTestServers_createButton_posId = "app_create-_OperateBtns_ElCol_ElRow_Setting_Wannat_Home_App_anonymousComponent" # create按钮id -listPage_profile_wannatTestServers_editButton_posId = "appEdit-_OperateBtns_ElCol_ElRow_Setting_Wannat_Home_App_anonymousComponent" # edit按钮id -listPage_profile_wannatTestServers_delButton_posId = "appDel-_OperateBtns_ElCol_ElRow_Setting_Wannat_Home_App_anonymousComponent" # del按钮id -listPage_profileSearch_wannatTestServers_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_wannatTestServers_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 -listPage_profileSearch_wannatTestServers_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_wannatTestServers_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_wannatTestServers_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_wannatTestServers_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_wannatTestServers_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 -# listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_wannatTestServers_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_wannatTestServers_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 -# Create wannat test servers page 和 Edit wannat test servers page 新增和编辑页 -wannatTestServers_input_Name_posId = "profileName" # name输入框id -wannatTestServers_input_serverType_posXpath = "//*[@id='type']" # server type 下拉选择框定位Xpath -wannatTestServers_dropdown_serverTypeDnsItem_posXpath = "//*[@id='DNS']" # server type 下拉列表DNS项选择定位 Xpath -wannatTestServers_input_ip_posXpath = "//*[@id='formIp']" # i输入框定位 Xpath -wannatTestServers_input_serverRelativeLocation_posXpath = "//*[@id='relativeLocation']" # Server Relative Location下拉选择框定位 Xpath -wannatTestServers_dropdown_serverRelativeLocationInternalItem_posXpath = "//*[@id='Internal']" # Server Relative Location下拉列表Internal选项 Xpath -wannatTestServers_dropdown_serverRelativeLocationExternalItem_posXpath = "//*[@id='External']" # Server Relative Location下拉列表External选项 Xpath -wannatTestServers_input_serverLocation_posXpath = "//*[@id='formGeoLocation']" # Server Location输入框 Xpath -wannatTestServers_input_description_posXpath = "//*[@id='formProfileDesc']" # Description输入框 Xpath -wannatTestServers_switch_isValid_posXpath = "//*[@id='wannat_testserver_isValid']/parent::*" # 开关IsValid Xpath -wannatTestServers_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 -wannatTestServers_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -wannatTestServers_button_oK_posCss = "#wanAdd_ok-_Setting_WannatDetail_Home_App_anonymousComponent span" # OK按钮css -wannatTestServers_button_cancel_posCss = "#wanAdd_cancel-_Setting_WannatDetail_Home_App_anonymousComponent span" # Cancel按钮 - -# Profiles dos detection profiles===================Profiles dos detection profiles====================Profiles dos detection profiles=================Profiles dos detection profiles=======================Profiles dos detection profiles -# listPage->tsg dos detection profiles list page 列表页 -listPage_profile_dosDetectionProfiles_createButton_posId = "app_create-_OperateBtns_ElRow_detectionProfiles_Home_App_anonymousComponent" # create按钮id -listPage_profile_dosDetectionProfiles_editButton_posId = "appEdit-_OperateBtns_ElRow_detectionProfiles_Home_App_anonymousComponent" # edit按钮id -listPage_profile_dosDetectionProfiles_delButton_posId = "appDel-_OperateBtns_ElRow_detectionProfiles_Home_App_anonymousComponent" # del按钮id -listPage_profile_dosDetectionProfiles_viewButton_posId = "appEdit-_OperateBtns_ElRow_detectionProfiles_Home_App_anonymousComponent" # view按钮id -listPage_profileColumn_dosDetectionProfiles_button_columnAll_posXpath = "//div[@class='all-btn']//label" # 列选择All按钮 -listPage_profileColumn_dosDetectionProfiles_button_columnCancel_posId = "dropColALlFalse-_ElementSet_detectionProfiles_Home_App_anonymousComponent" # 列选择Cancel按钮 -listPage_profileColumn_dosDetectionProfiles_button_cancel_posId = "dropColcancel-_ElementSet_detectionProfiles_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_dosDetectionProfiles_button_ok_posId = "dropColOK-_ElementSet_detectionProfiles_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_dosDetectionProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_dosDetectionProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 -listPage_profileSearch_dosDetectionProfiles_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_dosDetectionProfiles_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_dosDetectionProfiles_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_dosDetectionProfiles_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_dosDetectionProfiles_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 -listPage_profileBottomPageNum_dosDetectionProfiles_posXpath = "//*[@id='pagination-_pagination_detectionProfiles_Home_App_anonymousComponent']" # 页面底部翻页 定位 -# listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_dosDetectionProfiles_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_dosDetectionProfiles_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 -# Create tdos detection profiles page 和 Edit dos detection profiles page 新增和编辑页 -dosDetectionProfiles_pageContent_posXpath = profilePage_content # profile创建、编辑页面查看 -dosDetectionProfiles_input_Name_posId = "name" # name输入框id -dosDetectionProfiles_radio_attackType_posXpath = "//*[@id='{rplaceName}']" # attack type单选按钮,replaceName需要二次处理替换内容 -dosDetectionProfiles_button_ipAdd_posXpath = "//*[@id='temporary_form']" # ip添加按钮 xpath -dosDetectionProfiles_input_ipItems_posXpath = "//*[@class='list-container']//div[@class='item-row']" # ip items定位 input xpath,可能包含多个定位,需要处理 -dosDetectionProfiles_input_packetsSecond_posXpath = "//*[@id='packets_per_sec']" # packets/second input xpath -dosDetectionProfiles_input_bitsSecond_posXpath = "//*[@id='bits_per_sec']" # packets/second input xpath -dosDetectionProfiles_input_sessionsSecond_posXpath = "//*[@id='sessions_per_sec']" # packets/second input xpath -dosDetectionProfiles_div_rightDetails_posXpath = "//div[@class='paper-grid-right']//form/div" # 右侧详情div容器 xpath -dosDetectionProfiles_alert_topInfo_Xpath = profilePage_alert_topInfo_Xpath # 页面顶部alert信息 -dosDetectionProfiles_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 -dosDetectionProfiles_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 -dosDetectionProfiles_button_oK_posCss = "#hijackAddOk1-_detectionProfilesAdd_Home_App_anonymousComponent span" # OK按钮css -dosDetectionProfiles_button_cancel_posCss = "#hijackAddCancel1-_detectionProfilesAdd_Home_App_anonymousComponent span" # Cancel按钮 -# create_edit_page->侧滑中Audit Logs页面 -profilePage_auditLogsPage_firstRowItemSelect_posXpath = "//div[@class='paper-grid-right']//div[@class='right-menu-content']//tbody/tr[1]/td[1]//span/span" # Audit logs中第一行变更记录的勾选框 -dosDetectionProfiles_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 -dosDetectionProfiles_auditLogsPage_button_compare_posXpath = "//*[@id='test-compare-_AuditLogs_InfoRightProfile_tsg-html-fixed_detectionProfilesAdd_Home_App_anonymousComponent']" # compare 按钮 -dosDetectionProfiles_auditLogsPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_InfoRightProfile_tsg-html-fixed_detectionProfilesAdd_Home_App_anonymousComponent']" # compare 按钮 -# create_edit_page->侧滑中Audit Logs页面->modification history页面 -profilePage_auditLogsPage_modificationPage_tbody_posXpath = "//div[@class='compare-code-box']//tbody" # modification history页面中内容定位 xpath -dosDetectionProfiles_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath -dosDetectionProfiles_auditLogsPage_modificationPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_InfoRightProfile_tsg-html-fixed_detectionProfilesAdd_Home_App_anonymousComponent']" # modification history页面中内容定位 xpath +tsg_proxy_scripts_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +tsg_proxy_scripts_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 +tsg_proxy_scripts_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +tsg_proxy_scripts_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +tsg_proxy_scripts_page_audit_logs_posxpath = dns_records_profile_page_audit_logs_posxpath +tsg_proxy_scripts_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath # Profiles Shaping profiles=============Profiles Shaping profiles===================Profiles Shaping profiles====================Profiles Shaping profiles==================Profiles Shaping profiles # Shaping Profiles list page 列表页 -listPage_profile_shapingProfiles_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_ShapingProfile_Home_App_anonymousComponent" # create按钮id -listPage_profile_shapingProfiles_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_ShapingProfile_Home_App_anonymousComponent" # edit按钮id -listPage_profile_shapingProfiles_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_ShapingProfile_Home_App_anonymousComponent" # del按钮id +listpage_profile_shaping_profiles_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_shaping_profiles_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_shaping_profiles_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id listPage_profile_shapingProfiles_viewButton_posId = "appEdit-_OperateBtns_ElRow_Profile_ShapingProfile_Home_App_anonymousComponent" # del按钮id listPage_profile_shapingProfiles_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_ShapingProfile_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_shapingProfiles_button_columnAll_posXpath = "//div[@class='all-btn']//label" # 列选择All按钮 -listPage_profileColumn_shapingProfiles_button_columnCancel_posId = "dropColALlFalse-_ElementSet_Profile_ShapingProfile_Home_App_anonymousComponent" # 列选择Cancel按钮 -listPage_profileColumn_shapingProfiles_button_cancel_posId = "dropColcancel-_ElementSet_Profile_ShapingProfile_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_shapingProfiles_button_ok_posId = "dropColOK-_ElementSet_Profile_ShapingProfile_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_shapingProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_shapingProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_column_shaping_profiles_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +listpage_profile_search_shaping_profiles_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_shaping_profiles_button_search_posId = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_shapingProfiles_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_shapingProfiles_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_shapingProfiles_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_shapingProfiles_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_shapingProfiles_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listpage_profile_search_shaping_profiles_drop_down_item_posxpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_shapingProfiles_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_shaping_profiles_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_shaping_profiles_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 listPage_profilTable_shapingProfiles_EnabledButton_posXpath = "//*[@id='Function-adminStatus']" # Enabled 列可点击按钮定位 xpath -listPage_profilTable_shapingProfiles_tableHeaderDrops_posXpath = "{}//th//span[text()='Drops']/parent::*//i".format( - listPage_profilTable_dnsRecords_tableHeader_posXpath) # 列表table-Drops 表头xpath 定位形式一样 -listPage_profilTable_shapingProfiles_tableHeaderAvgMax_posXpath = "{}//th//span[text()='Avg Q/Max Q']/parent::*//i".format( - listPage_profilTable_dnsRecords_tableHeader_posXpath) # 列表table-Avg Q/Max Q 表头xpath 定位形式一样 -listPage_profileBottomPage_shapingProfiles_button_allSelect_posXpath = mainPage_profileBottomPage_button_allSelect_posXpath # 底部页面all选择按钮 +# listPage_profilTable_shapingProfiles_tableHeaderDrops_posXpath = "{}//th//span[text()='Drops']/parent::*//i".format( +# listPage_profilTable_dnsRecords_tableHeader_posXpath) # 列表table-Drops 表头xpath 定位形式一样 +# listPage_profilTable_shapingProfiles_tableHeaderAvgMax_posXpath = "{}//th//span[text()='Avg Q/Max Q']/parent::*//i".format( +# listPage_profilTable_dnsRecords_tableHeader_posXpath) # 列表table-Avg Q/Max Q 表头xpath 定位形式一样 +listPage_profileBottomPage_shapingProfiles_button_allSelect_posXpath = mainpage_profile_bottom_page_button_all_select_posXpath # 底部页面all选择按钮 listPage_profileBottomPageNum_shapingProfiles_posXpath = "//*[@id='pagination-_pagination_Profile_ShapingProfile_Home_App_anonymousComponent']" # 页面底部翻页 定位 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_shapingProfiles_button_yes_posCss = "body>.el-dialog__wrapper .delComponents-ok span" # 删除提示的Tips的yes按钮 -listPage_dialogTips_shapingProfiles_button_no_posCss = "body>.el-dialog__wrapper .delComponents-close span" # 删除提示的Tips的close按钮 +listpage_dialogtips_shaping_profiles_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_shaping_profiles_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_shapingProfiles_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_ShapingProfile_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_shapingProfiles_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_ShapingProfile_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_shapingProfiles_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_ShapingProfile_Home_App_anonymousComponent']/span" # OK 按钮 xpath # listpage->right-menu-content 列表页 引用计数侧滑box -listPage_rightReferenceDrawer_shapingProfiles_referencedItems = listPage_profileRightReferenceDrawer_referencedItems # 引用侧滑中被引用对象的选项div容器 +# listPage_rightReferenceDrawer_shapingProfiles_referencedItems = listPage_profileRightReferenceDrawer_referencedItems # 引用侧滑中被引用对象的选项div容器 # Create Shaping Profile 和 Edit Shaping Profile 新增和编辑页 -shapingProfilePage_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -shapingProfilePage_input_Name_posId = "ShapingProfile_profileName" # name输入框id -shapingProfilePage_radioButton_generic_posXpath = "//div[@id='shaping_Splitby-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Generic']" # Generic单选按钮Xpath -shapingProfilePage_radioButton_fairShare_posXpath = "//div[@id='shaping_Splitby-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Fair Share']" # Fair Share单选按钮iXpath -shapingProfilePage_radioButton_splitBy_posXpath = "//div[@id='shaping_Splitby-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Split By']" # Split By单选按钮Xpath -shapingProfilePage_radioButton_maxMinHostFairness_posXpath = "//div[@id='shaping_Splitby-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Max Min Host Fairness']" # Max Min Host Fairness单选按钮Xpath -shapingProfilePage_radioButton_localHost_posXpath = "//div[@id='shaping_Splitby-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Local Host']" # Host Fairness单选按钮Xpath -shapingProfilePage_inputSelect_unit_posId = "ShapingProfile-directionValue" # unit单位输入选择框id -shapingProfilePage_radioButton_unidirectional_posXpath = "//*[@id='vsys0-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Unidirectional']" # Unidirectional单选按钮 -shapingProfilePage_radioButton_bidirectional_posXpath = "//*[@id='vsys1-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Bidirectional']" # Bidirectional单选按钮 -shapingProfilePage_drowDown_unitItem_posXpath = "//div[contains(@class, 'el-select-dropdown')]//li//span[normalize-space(text())='{replaceName}']" # unit的下拉item定位,replaceName替换实际查询值 -shapingProfilePage_input_incoming_posId = "ShapingProfile-Incoming" # incoming输入框 id -shapingProfilePage_input_outgoing_posId = "ShapingProfile-Outgoing" # outgoing输入框 id -shapingProfilePage_input_bidirectional_posId = "ShapingProfile-bidirectional" # bidirectional输入框 id +shaping_profilepage_header_title_posxpath = "//div[normalize-space(text())='Create Shaping Profile']" # 页面头部名称 xpath +shaping_profile_page_input_name_posxpath = "//input[@class='MuiInput-input css-fqt4w4']" # name输入框id +shaping_profile_page_radio_button_generic_posxpath = "//div[@class='traffic-shaping-profile-type']//button[normalize-space(text())='Generic']" # Generic单选按钮Xpath +shaping_profile_page_radio_button_fair_share_posxpath = "//div[@class='traffic-shaping-profile-type']//button[normalize-space(text())='FairShare']" # Fair Share单选按钮iXpath +shaping_profile_page_radio_button_splitby_posxpath = "//div[@class='traffic-shaping-profile-type']//button[normalize-space(text())='SplitBy']" # Split By单选按钮Xpath +shaping_profile_page_radio_button_maxminhostfairness_posxpath = "//div[@class='traffic-shaping-profile-type_argument']//button[normalize-space(text())='Max Min Host Fairness']" # Max Min Host Fairness单选按钮Xpath +shaping_profile_page_radio_button_local_host_posxpath = "//div[@class='traffic-shaping-profile-type_argument']//button[normalize-space(text())='LocalHost']" # Host Fairness单选按钮Xpath +shaping_profile_page_input_select_unit_posxpath = "//div[@class='traffic-shaping-profile-unit']//button" # unit单位输入选择框id +shaping_profile_page_radio_button_unidirectional_posxpath = "//*[@id='vsys0-_ShapingProfile_write_Home_App_anonymousComponent']//span[normalize-space(text())='Unidirectional']" # Unidirectional单选按钮 +shaping_profile_page_radio_button_bidirectional_posxpath = "//div[@class='traffic-shaping-profile-direction']//button[normalize-space(text())='Bidirectional']" # Bidirectional单选按钮 +shaping_profile_page_drow_down_unit_item_posxpath = "//ul[@class='base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1']/li[normalize-space(text())='{replace_name}']" # unit的下拉item定位,replaceName替换实际查询值 +shaping_profile_page_input_incoming_posxpath = "//div[@class='traffic-shaping-profile-incoming']//input" # incoming输入框 id +shaping_profile_page_input_outgoing_posxpath = "//div[@class='traffic-shaping-profile-outgoing']//input" # outgoing输入框 id +shaping_profile_page_input_bidirectional_posxpath = "//div[@class='traffic-shaping-profile-bidirectional']//input" # bidirectional输入框 id shapingProfilePage_button_aqm_posXpath = "//*[@id='ShapingProfile-algorithmValue']/parent::*//span" # aqm打开关闭定位 -shapingProfilePage_inputSelect_aqm_posXpath = "//*[@id='ShapingProfile-algorithm']/parent::*//span" # Algorith选择框定位 +shaping_profile_page_input_select_aqm_posxpath = "//div[@class='traffic-shaping-profile-algorithm']" # Algorith选择框定位 shapingProfilePage_drowDown_aqmItem_posXpath = "//body/div[contains(@class, 'el-select-dropdown')]//*[@class='el-scrollbar']//span[normalize-space(text())='{replaceName}']" # 下拉菜单选项定位选择框定位 shapingProfilePage_div_rightDetails_posXpath = "//div[@class='paper-right-content']//div[@class='ShapingProfile-box-right']//div[text()='ID']/parent::*/parent::*/div" # 右侧详情div容器 xpath shapingProfilePage_div_rightDetails_clearCounter_posXpath = "//*[@id='porfileResetBtn-_anonymousComponent_anonymousComponent_VPanel_VEditPanel_ShapingProfile_write_Home_App_anonymousComponent']/span/span" # 右侧详情---clear counter元素定位 xpath @@ -680,55 +620,52 @@ shapingProfilePage_clickClearCounter_tipsYes_posXpath = "//body/div[@role='dialo shapingProfilePage_hoverClearCounter_tooltip_name_xpath = "//body/div[@role='tooltip']//div[@class='spright-text-name']" # 右侧详情---悬停 clear counter元素定位后弹出的 --toottip--name定位 xpath shapingProfilePage_hoverClearCounter_tooltip_value_xpath = "//body/div[@role='tooltip']//div[@class='spright-text-value']" # 右侧详情---悬停 clear counter元素定位后弹出的 --toottip--value定位 xpath shapingProfilePage_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存警告框 -shapingProfilePage_button_oK_posCss = "#runScriptOk1 span" # OK按钮css -shapingProfilePage_button_cancel_posCss = "#runScriptCancel1 span" # Cancel +shaping_profile_page_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +shaping_profile_page_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel # create_edit_page->侧滑中Audit Logs页面 -shapingProfilePage_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 +# shapingProfilePage_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 shapingProfilePage_auditLogsPage_button_compare_posXpath = "//*[@id='test-compare-_AuditLogs_anonymousComponent_VPanel_VEditPanel_ShapingProfile_write_Home_App_anonymousComponent']" # compare 按钮 shapingProfilePage_auditLogsPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_anonymousComponent_VPanel_VEditPanel_ShapingProfile_write_Home_App_anonymousComponent']" # compare 按钮 # create_edit_page->侧滑中Audit Logs页面->modification history页面 -shapingProfilePage_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath +# shapingProfilePage_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath shapingProfilePage_auditLogsPage_modificationPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_anonymousComponent_VPanel_VEditPanel_ShapingProfile_write_Home_App_anonymousComponent']" # modification history页面中内容定位 xpath # Profiles Service Function Forwarders===================Profiles Service Function Forwarders====================Profiles Service Function Forwarders=================Profiles Service Function Forwarders=======================Profiles Service Function Forwarders # listPage->Service Function Forwarders list page 列表页 -listPage_profile_serviceFunctionForwarders_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_Forwarders_Home_App_anonymousComponent" # create按钮id -listPage_profile_serviceFunctionForwarders_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_Forwarders_Home_App_anonymousComponent" # edit按钮id -listPage_profile_serviceFunctionForwarders_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_Forwarders_Home_App_anonymousComponent" # del按钮id +listpage_profile_service_function_forwarders_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_service_function_forwarders_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_service_function_forwarders_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id listPage_profile_serviceFunctionForwarders_viewButton_posId = "appEdit-_OperateBtns_ElRow_Profile_Forwarders_Home_App_anonymousComponent" # view按钮id listPage_profile_serviceFunctionForwarders_button_link_posId = "btnCopy-_OperateBtns_ElRow_Profile_Forwarders_Home_App_anonymousComponent" # link listPage_linkTips_serviceFunctionForwarders_button_save_posXpath = "//i[contains(@class, 'icon-save')]" # save listPage_linkTips_serviceFunctionForwarders_button_add_posXpath = "//i[contains(@class, 'icon-Create1')]" # add listPage_linkTips_serviceFunctionForwarders_button_OK_posXpath = "//button[contains(@id, 'copyOk')]//span[normalize-space(text())='OK']" # OK -listPage_profileColumn_serviceFunctionForwarders_button_columnAll_posXpath = "//div[@class='all-btn']//label" # 列选择All按钮 -listPage_profileColumn_serviceFunctionForwarders_button_columnCancel_posId = "dropColALlFalse-_ElementSet_Profile_Forwarders_Home_App_anonymousComponent" # 列选择Cancel按钮 -listPage_profileColumn_serviceFunctionForwarders_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Forwarders_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_serviceFunctionForwarders_button_ok_posId = "dropColOK-_ElementSet_Profile_Forwarders_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_serviceFunctionForwarders_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_serviceFunctionForwarders_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_column_service_function_forwarders_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 +listpage_profile_search_service_function_forwarders_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_service_function_forwarders_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_serviceFunctionForwarders_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_serviceFunctionForwarders_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_serviceFunctionForwarders_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_serviceFunctionForwarders_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_serviceFunctionForwarders_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 -listPage_profileBottomPage_serviceFunctionForwarders_button_allSelect_posXpath = mainPage_profileBottomPage_button_allSelect_posXpath # 底部页面all选择按钮 +listPage_profileSearch_serviceFunctionForwarders_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_serviceFunctionForwarders_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_service_function_forwarders_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_service_function_forwarders_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 +listpage_profile_bottom_page_service_function_forwarders_button_all_select_posxpath = mainpage_profile_bottom_page_button_all_select_posXpath # 底部页面all选择按钮 listPage_profileBottomPageNum_serviceFunctionForwarders_posXpath = "//*[@id='pagination-_pagination_Profile_Forwarders_Home_App_anonymousComponent']" # 页面底部翻页 定位 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_serviceFunctionForwarders_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_serviceFunctionForwarders_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_service_function_forwarders_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_service_function_forwarders_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listpage->right-menu-content 列表页 引用计数侧滑box -listPage_rightReferenceDrawer_serviceFunctionForwarders_referencedItems = listPage_profileRightReferenceDrawer_referencedItems # 引用侧滑中被引用对象的选项div容器 +# listPage_rightReferenceDrawer_serviceFunctionForwarders_referencedItems = listPage_profileRightReferenceDrawer_referencedItems # 引用侧滑中被引用对象的选项div容器 # Create Service Function Forwarders page 和 Edit Service Function Forwarders 新增和编辑页 -serviceFunctionForwarders_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -serviceFunctionForwarders_input_Name_posId = "ShapingProfile_profileName" # name输入框id +service_function_forwarders_header_title_posxpath = "//div[normalize-space(text())='Create Service Function Forwarder Profile']" # 页面头部名称 xpath +service_function_forwarders_input_name_posxpath = dns_records_profile_page_input_name_posxpath # name输入框id # //*[@class='panel-content']//*[normalize-space(text())='Failure Action']/parent::*//span[normalize-space(text())='Re-dispatch'] -serviceFunctionForwarders_radio_labelAndRadioName_posXpath = "//*[@class='panel-content']//*[normalize-space(text())='{replaceLabel}']/parent::*//span[normalize-space(text())='{replaceRadioName}']" # 单选按钮 xpath 二次处理 replaceLabel=标签名称 replaceRadioName=按钮名称 -serviceFunctionForwarders_radio_unavailabilityAction_posXpath = "//*[@class='panel-content']//*[normalize-space(text())='{replaceLabel}']/following-sibling::div[1]//span[normalize-space(text())='{replaceRadioName}']" # 单选按钮 xpath 二次处理 replaceLabel=标签名称 replaceRadioName=按钮名称 -serviceFunctionForwarders_input_minHealthServiceFunctions_posXpath = "//*[@id='ShapingProfile-service']" # Minimum Health Service Functions 输入框 xpath -serviceFunctionForwarders_button_serviceFunctionsAdd_posXpath = "//*[@class='panel-content']//div[@class='MultipleSelect FlagSelect']//i" # Service Functions 添加 xpath -serviceFunctionForwarders_rightDrawer_input_sfDrawerSearch_posXpath = "//*[@class='ToggleDraw']//input[@id='object_ip_search']" # sf侧滑 搜索框 xpath -serviceFunctionForwarders_rightDrawer_li_sfDrawerFirerRowItem_posXpath = "//*[@class='ToggleDraw']//ul/li[1]" # sf侧滑 搜索框 xpath -serviceFunctionForwarders_rightDrawer_button_sfDrawerClose_posXpath = "//*[@class='ToggleDraw']//button[contains(@class, 'right-menu-button-close')]//span" # sf侧滑 close按钮 xpath +service_function_forwarders_radio_label_and_radio_name_posxpath = "//label[normalize-space(text())='{replace_label}']/following-sibling::div//button[normalize-space(text())='{replace_name}']" # 单选按钮 xpath 二次处理 replaceLabel=标签名称 replaceRadioName=按钮名称 +service_function_forwarders_radio_unavailability_action_posxpath = "//label[normalize-space(text())='{replace_label}']/following-sibling::div//button[normalize-space(text())='{replace_name}']" # 单选按钮 xpath 二次处理 replaceLabel=标签名称 replaceRadioName=按钮名称 +service_function_forwarders_input_minhealth_service_functions_posxpath = "//div[@class='service-function-forwarder-health_service_func_lt']//input" # Minimum Health Service Functions 输入框 xpath +service_function_forwarders_button_service_functions_add_posxpath = "//div[@class='service-function-forwarder-service_func_profiles']" # Service Functions 添加 xpath +service_function_forwarders_right_drawer_input_sf_drawer_search_posxpath = "//input[@class='MuiInput-input css-za5rna']" # sf侧滑 搜索框 xpath +service_function_forwarders_right_drawer_sf_drawer_firer_row_item_posXpath = "//div[@data-first-child]" # sf侧滑 搜索框 xpath +service_function_forwarders_right_drawer_button_sf_drawer_close_posxpath = "//i[@class='iconfont icon-Clear_aNormal close-icon']" # sf侧滑 close按钮 xpath serviceFunctionForwarders_div_rightDetails_posXpath = "//div[@class='paper-right-content']//div[@class='ShapingProfile-box-right']//*[text()='ID']/parent::*/parent::*/div" # enable 开关 xpath serviceFunctionForwarders_div_rightDetails_clearCounter_posXpath = "//*[@id='porfileResetBtn-_anonymousComponent_anonymousComponent_VPanel_VEditPanel_Profile_Forwarders_edit_Home_App_anonymousComponent']/span/span" # 右侧详情---clear counter元素定位 xpath serviceFunctionForwarders_clickClearCounter_tipsYes_posXpath = shapingProfilePage_clickClearCounter_tipsYes_posXpath # 右侧详情---点击 clear counter元素定位后弹出的 tip--yes定位 xpath @@ -737,60 +674,65 @@ serviceFunctionForwarders_hoverClearCounter_tooltip_value_xpath = shapingProfile serviceFunctionForwarders_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 serviceFunctionForwarders_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 serviceFunctionForwarders_alert_topInfo_Xpath = profilePage_alert_topInfo_Xpath # 顶部提示信息alert框 -serviceFunctionForwarders_button_oK_posCss = "#runScriptOk1 span" # OK按钮css -serviceFunctionForwarders_button_cancel_posCss = "#runScriptCancel1 span" # Cancel按钮 +service_function_forwarders_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +service_function_forwarders_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 serviceFunctionForwarders_button_leaveOK_posXpath = "//div[@role='dialog']//button[contains(@class, 'operation-confirm-Leave')]" # Cancel按钮 # create_edit_page->侧滑中Audit Logs页面 -serviceFunctionForwarders_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 -serviceFunctionForwarders_auditLogsPage_button_compare_posXpath = "//*[@id='test-compare-_AuditLogs_anonymousComponent_VPanel_VEditPanel_Profile_Forwarders_edit_Home_App_anonymousComponent']" # compare 按钮 +# serviceFunctionForwarders_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 +# serviceFunctionForwarders_auditLogsPage_button_compare_posXpath = "//*[@id='test-compare-_AuditLogs_anonymousComponent_VPanel_VEditPanel_Profile_Forwarders_edit_Home_App_anonymousComponent']" # compare 按钮 # create_edit_page->侧滑中Audit Logs页面->modification history页面 -serviceFunctionForwarders_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath -serviceFunctionForwarders_auditLogsPage_modificationPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_anonymousComponent_VPanel_VEditPanel_Profile_Forwarders_edit_Home_App_anonymousComponent']" # modification history页面中内容定位 xpath +# serviceFunctionForwarders_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath +# serviceFunctionForwarders_auditLogsPage_modificationPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_anonymousComponent_VPanel_VEditPanel_Profile_Forwarders_edit_Home_App_anonymousComponent']" # modification history页面中内容定位 xpath +service_function_forwarders_profile_page_create_time_posxpath = dns_records_profile_page_create_time_posxpath +service_function_forwarders_profile_page_modify_time_posxpath = dns_records_profile_page_modify_time_posxpath +service_function_forwarders_profile_page_audit_logs_compare_posxpath = dns_records_profile_page_audit_logs_compare_posxpath + # Profiles Service Functions===================Profiles Service Functions====================Profiles Service Functions=================Profiles Service Functions=======================Profiles Service Functions # listPage->Service Functions list page 列表页 -listPage_profile_serviceFunctions_createButton_posId = "app_create-_OperateBtns_ElRow_Profile_Functions_Home_App_anonymousComponent" # create按钮id -listPage_profile_serviceFunctions_editButton_posId = "appEdit-_OperateBtns_ElRow_Profile_Functions_Home_App_anonymousComponent" # edit按钮id -listPage_profile_serviceFunctions_delButton_posId = "appDel-_OperateBtns_ElRow_Profile_Functions_Home_App_anonymousComponent" # del按钮id +listpage_profile_service_functions_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_service_functions_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_service_functions_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id listPage_profile_serviceFunctions_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Profile_Functions_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_serviceFunctions_button_columnAll_posXpath = "//div[@class='all-btn']//label" # 列选择Xpath按钮 列选择all按钮 -listPage_profileColumn_serviceFunctions_button_columnCancel_posId = "dropColALlFalse-_ElementSet_Profile_Functions_Home_App_anonymousComponent" # 列选择Cancel按钮 -listPage_profileColumn_serviceFunctions_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Functions_Home_App_anonymousComponent" # cancel按钮 -listPage_profileColumn_serviceFunctions_button_ok_posId = "dropColOK-_ElementSet_Profile_Functions_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_serviceFunctions_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_serviceFunctions_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_column_service_functions_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择Xpath按钮 列选择all按钮 +# listPage_profileColumn_serviceFunctions_button_columnCancel_posId = "dropColALlFalse-_ElementSet_Profile_Functions_Home_App_anonymousComponent" # 列选择Cancel按钮 +# listPage_profileColumn_serviceFunctions_button_cancel_posId = "dropColcancel-_ElementSet_Profile_Functions_Home_App_anonymousComponent" # cancel按钮 +# listPage_profileColumn_serviceFunctions_button_ok_posId = "dropColOK-_ElementSet_Profile_Functions_Home_App_anonymousComponent" # ok按钮 +listpage_profile_search_service_functions_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_service_functions_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_serviceFunctions_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_serviceFunctions_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_serviceFunctions_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_serviceFunctions_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_serviceFunctions_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 +listPage_profileSearch_serviceFunctions_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_serviceFunctions_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_service_functions_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_service_functions_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 listPage_profileBottomPageNum_serviceFunctions_posXpath = "//*[@id='pagination-_pagination_Profile_Functions_Home_App_anonymousComponent']" # 页面底部翻页 定位 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_serviceFunctions_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_serviceFunctions_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_service_functions_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_service_functions_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_serviceFunctions_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Profile_Functions_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_serviceFunctions_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Profile_Functions_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_serviceFunctions_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Profile_Functions_Home_App_anonymousComponent']/span" # OK 按钮 xpath # listpage->right-menu-content 列表页 引用计数侧滑box -listPage_rightReferenceDrawer_serviceFunctions_referencedItems = listPage_profileRightReferenceDrawer_referencedItems # 引用侧滑中被引用对象的选项div容器 +# listPage_rightReferenceDrawer_serviceFunctions_referencedItems = listPage_profileRightReferenceDrawer_referencedItems # 引用侧滑中被引用对象的选项div容器 # Create Service Functions page 和 Edit Service Functions 新增和编辑页 -serviceFunctions_headerTitle_posXpath = dnsRecordsProfilePage_headerTitle_posXpath # 页面头部名称 xpath -serviceFunctions_input_Name_posId = "Function_profileName" # name输入框id -serviceFunctions_button_deviceGroupAdd_posXpath = "//*[contains(@class, 'v-panel-container')]//i[contains(@class, 'icon-Create1')]" # device group 添加按钮 xpath +service_functions_header_title_posxpath = "//div[normalize-space(text())='Create Service Function Profile']" # 页面头部名称 xpath +service_functions_input_name_posxpath = dns_records_profile_page_input_name_posxpath # name输入框id +service_functions_button_devicegroupadd_posxpath = "//div[@class='service-function-device_group']" # device group 添加按钮 xpath # //*[contains(@class, 'drawer-box')]//*[@class='title' and contains(normalize-space(text()), 'Select Device Group')]/parent::*//span[normalize-space(text())='City A']/parent::*//input//parent::* -serviceFunctions_radio_selectDevice_posXpath = "//*[contains(@class, 'drawer-box')]//*[@class='title' and contains(normalize-space(text()), '{replaceGroup}')]/parent::*//span[normalize-space(text())='{replaceDeviceName}']/parent::*//input//parent::*" # effective devices设备名称 xpath, replaceGroup replaceDeviceName需要二次替换 +service_functions_radio_select_device_posXpath = "//button[normalize-space(text())='{replace_name}']" # effective devices设备名称 xpath, replaceGroup replaceDeviceName需要二次替换 +service_functions_select_item_device_posXpath = "//div[normalize-space(text())='{replace_name}']" serviceFunctions_button_effectiveDevicesDrawerOk_posXpath = "//*[@id='proxyManipulationConditionsAreaSuccess']//span" # effective devices 侧滑中OK按钮 xpath -serviceFunctions_button_effectiveDevicesDrawerCancel_posXpath = "//*[@id='proxyManipulationConditionsAreaCancel']//span" # effective devices 侧滑中Cancel按钮 xpath -serviceFunctions_radio_connectivityLayer2Switch_posXpath = "//*[@id='vsys0-_Profile_Functions_edit_Home_App_anonymousComponent']" # Layer 2 Switch 单选按钮 xpath -serviceFunctions_radio_connectivityXvlan_posXpath = "//*[@id='vsys1-_Profile_Functions_edit_Home_App_anonymousComponent']" # Function-internal 单选按钮 xpath -serviceFunctions_input_internalVlan_posXpath = "//*[@id='Function-internal']" # Internal VLAN Tag 输入框 xpath -serviceFunctions_input_externalVlan_posXpath = "//*[@id='Function-external']" # external VLAN Tag 输入框 xpath -serviceFunctions_input_destinationIpAddress_posXpath = "//*[@id='Function-destination']" # destination Ip Address 输入框 xpath -serviceFunctions_radio_healthCheck_posXpath = "//*[@id='vsys{replaceIndex}-_Profile_Functions_edit_Home_App_anonymousComponent']" # health Check 单选按钮 xpath replaceIndex需要二次处理 -serviceFunctions_input_interval_posXpath = "//*[@id='Function-interval']" # interval 输入框 xpath -serviceFunctions_input_retries_posXpath = "//*[@id='Function-retires']" # retires 输入框 xpath -serviceFunctions_switch_enalbe_posXpath = "//*[@id='Function-admin_status']/parent::*" # enable 开关 xpath +service_functions_button_effective_devices_drawer_cancel_posxpath = "//div[@class='MuiDrawer-content css-10lcz44']//button[normalize-space(text())='Cancel']" # effective devices 侧滑中Cancel按钮 xpath +service_functions_radio_connectivity_layer2switch_posxpath = "//div[@class='service-function-connectivityMethod']//button[normalize-space(text())='Layer 2 Switch']" # Layer 2 Switch 单选按钮 xpath +service_functions_radio_connectivityxvlan_posxpath = "//div[@class='service-function-connectivityMethod']//button[normalize-space(text())='VXLAN-G']" # Function-internal 单选按钮 xpath +service_functions_input_internal_vlan_posxpath = "//div[@class='service-function-int_vlan_tag']//input" # Internal VLAN Tag 输入框 xpath +service_functions_input_external_vlan_posxpath = "//div[@class='service-function-ext_vlan_tag']//input" # external VLAN Tag 输入框 xpath +service_functions_input_destinationip_address_posxpath = "//div[@class='service-function-dest_ip']//input" # destination Ip Address 输入框 xpath +service_functions_radio_health_check_posxpath = "//div[@class='service-function-checkMethod']//*[normalize-space(text())='{replace_name}']" # health Check 单选按钮 xpath replaceIndex需要二次处理 +service_functions_input_interval_posxpath = "//div[@class='service-function-interval_ms']//input" # interval 输入框 xpath +service_functions_input_retries_posxpath = "//div[@class='service-function-retires']//input" # retires 输入框 xpath +service_functions_switch_enalbe_posxpath = "//div[@class='service-function-admin_status']" # enable 开关 xpath serviceFunctions_div_rightDetails_posXpath = "//div[@class='paper-right-content']//div[@class='Function-box-right']/div" # enable 开关 xpath serviceFunctions_div_rightDetails_clearCounter_posXpath = "//*[@id='porfileResetBtn-_anonymousComponent_anonymousComponent_VPanel_VEditPanel_Profile_Functions_edit_Home_App_anonymousComponent']/span/span" # 右侧详情---clear counter元素定位 xpath serviceFunctions_clickClearCounter_tipsYes_posXpath = shapingProfilePage_clickClearCounter_tipsYes_posXpath # 右侧详情---点击 clear counter元素定位后弹出的 tip--yes定位 xpath @@ -799,43 +741,43 @@ serviceFunctions_hoverClearCounter_tooltip_value_xpath = shapingProfilePage_hove serviceFunctions_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 serviceFunctions_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 serviceFunctions_alert_topInfo_Xpath = profilePage_alert_topInfo_Xpath # 顶部提示信息alert框 -serviceFunctions_button_oK_posCss = "#runScriptOk1 span" # OK按钮css -serviceFunctions_button_cancel_posCss = "#runScriptCancel1 span" # Cancel按钮 +service_functions_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +service_functions_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 # create_edit_page->侧滑中Audit Logs页面 -serviceFunctions_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 +# serviceFunctions_auditLogsPage_firstRowItemSelect_posXpath = profilePage_auditLogsPage_firstRowItemSelect_posXpath # Audit logs中第一行变更记录的勾选框 serviceFunctions_auditLogsPage_button_compare_posXpath = "//*[@id='test-compare-_AuditLogs_anonymousComponent_VPanel_VEditPanel_Profile_Functions_edit_Home_App_anonymousComponent']" # compare 按钮 # create_edit_page->侧滑中Audit Logs页面->modification history页面 -serviceFunctions_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath +# serviceFunctions_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath serviceFunctions_auditLogsPage_modificationPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_anonymousComponent_VPanel_VEditPanel_Profile_Functions_edit_Home_App_anonymousComponent']" # modification history页面中内容定位 xpath # Profiles statistics templates===================Profiles statistics templates====================Profiles statistics templates=================Profiles statistics templates=======================Profiles statistics templates # listPage->tsg dos detection profiles list page 列表页 -listPage_profile_statisticsTemplates_createButton_posId = "app_create-_OperateBtns_ElRow_Statistic_Template_Home_App_anonymousComponent" # create按钮id -listPage_profile_statisticsTemplates_editButton_posId = "appEdit-_OperateBtns_ElRow_Statistic_Template_Home_App_anonymousComponent" # edit按钮id -listPage_profile_statisticsTemplates_delButton_posId = "appDel-_OperateBtns_ElRow_Statistic_Template_Home_App_anonymousComponent" # del按钮id +listpage_profile_statistics_templates_create_button_posxpath = listpage_profile_dns_records_create_button_posxpath # create按钮id +listpage_profile_statistics_templates_edit_button_posxpath = listpage_profile_dns_records_edit_button_posxpath # edit按钮id +listpage_profile_statisticstemplates_del_button_posxpath = listpage_profile_dns_records_del_button_posxpath # del按钮id listPage_profile_statisticsTemplates_linkButton_posId = "btnCopy-_OperateBtns_ElRow_Statistic_Template_Home_App_anonymousComponent" # link按钮id -listPage_profileColumn_statisticsTemplates_button_columnAll_posXpath = "//div[@class='all-btn']//label" # 列选择All按钮 +listpage_profile_column_statistics_templates_button_column_all_posxpath = listpage_profile_column_dns_records_button_column_all_posxpath # 列选择All按钮 listPage_profileColumn_statisticsTemplates_button_cancel_posId = "dropColcancel-_ElementSet_Statistic_Template_Home_App_anonymousComponent" # cancel按钮 listPage_profileColumn_statisticsTemplates_button_ok_posId = "dropColOK-_ElementSet_Statistic_Template_Home_App_anonymousComponent" # ok按钮 -listPage_profileSearch_statisticsTemplates_selectLabel_posId = mainPage_profileSearch_selectLabel_posId # 查询框id 定位形式一样 -listPage_profileSearch_statisticsTemplates_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId # 查询按钮id 定位形式一样 +listpage_profile_search_statistics_templates_select_label_posxpath = mainpage_profile_search_select_label_posxpath # 查询框id 定位形式一样 +listpage_profile_search_statistics_templates_button_search_posxpath = mainpage_profile_search_button_search_posxpath # 查询按钮id 定位形式一样 listPage_profileSearch_statisticsTemplates_buttonClear_posId = mainPage_profileSearch_buttonClear_posId # 清空查询按钮id 定位形式一样 -listPage_profileSearch_statisticsTemplates_dropDown_item_posXpath = listPage_profileSearch_dnsRecords_dropDown_item_posXpath # 下拉菜单定位 定位形式一样 -listPage_profileSearch_statisticsTemplates_input_itemContent_posXpath = listPage_profileSearch_dnsRecords_input_itemContent_posXpath # 输入item的值,replaceName替换实际查询值 定位形式一样 -listPage_profilTable_statisticsTemplates_tableTbody_posXpath = listPage_profilTable_dnsRecords_tableTbody_posXpath # 列表tabel body xpath 定位形式一样 -listPage_profilTable_statisticsTemplates_tableHeader_posXpath = listPage_profilTable_dnsRecords_tableHeader_posXpath # 列表table 表头xpath 定位形式一样 -listPage_profileBottomPage_statisticsTemplates_button_allSelect_posXpath = mainPage_profileBottomPage_button_allSelect_posXpath # 底部页面all选择按钮 +listPage_profileSearch_statisticsTemplates_dropDown_item_posXpath = listpage_profile_search_dns_records_drop_down_item_posxpath # 下拉菜单定位 定位形式一样 +listPage_profileSearch_statisticsTemplates_input_itemContent_posXpath = listpage_profile_search_dns_records_input_item_content_posxpath # 输入item的值,replaceName替换实际查询值 定位形式一样 +listpage_profile_table_statistics_templates_table_tbody_posxpath = listpage_profile_table_dns_records_table_tbody_posxpath # 列表tabel body xpath 定位形式一样 +listpage_profile_table_statistics_templates_table_header_posxpath = listpage_profile_table_dns_records_table_header_posxpath # 列表table 表头xpath 定位形式一样 +listpage_profile_bottom_page_statistics_templates_button_all_select_posxpath = mainpage_profile_bottom_page_button_all_select_posXpath # 底部页面all选择按钮 listPage_profileBottomPageNum_statisticsTemplates_posXpath = "//*[@id='pagination-_pagination_Statistic_Template_Home_App_anonymousComponent']" # 页面底部翻页 定位 # listPage->Tips dialog 列表页 tips对话框 -listPage_dialogTips_statisticsTemplates_button_yes_posCss = listPage_dialogTips_dnsRecords_button_yes_posCss # 删除提示的Tips的yes按钮 -listPage_dialogTips_statisticsTemplates_button_no_posCss = listPage_dialogTips_dnsRecords_button_no_posCss # 删除提示的Tips的close按钮 +listpage_dialogtips_statistics_templates_button_yes_posxpath = listpage_dialogtips_dns_records_button_yes_posxpath # 删除提示的Tips的yes按钮 +listpage_dialogtips_statistics_templates_button_no_posxpath = listpage_dialogtips_dns_records_button_no_posxpath # 删除提示的Tips的close按钮 # listPage-> Link提示对话框 listPage_linkTips_statisticsTemplates_button_save_posXpath = "//*[@id='clusterSave-_ClusterTable_ElDialog_copyComponents_Statistic_Template_Home_App_anonymousComponent']/i" # 选择cluster后,save行 按钮 xpath listPage_linkTips_statisticsTemplates_button_add_posXpath = "//*[@id='temporary_form-_ClusterTable_ElDialog_copyComponents_Statistic_Template_Home_App_anonymousComponent']/i" # 添加 按钮 xpath listPage_linkTips_statisticsTemplates_button_OK_posXpath = "//*[@id='copyOk-_copyComponents_Statistic_Template_Home_App_anonymousComponent']/span" # OK 按钮 xpath # Create statistics templates page 和 Edit statistics templates page 新增和编辑页 -statisticsTemplates_headerTitle_posXpath = "//div[@id='router-view-container']//div[contains(@class, 'policy-form-header')]/span" # 页面头部名称 xpath -statisticsTemplates_input_Name_posId = "advancedAdd_policyName" # name输入框id +statistics_templates_header_title_posxpath = "//div[normalize-space(text())='Create Statistics Template']" # 页面头部名称 xpath +statistics_templates_input_name_posxpath = dns_records_profile_page_input_name_posxpath # name输入框id # statisticsTemplates_input_metricsAndDimensionsSelect_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')][{replaceChart}]//label[normalize-space(text())='{repalceLabel}']/parent::*//div[contains(@class, 'flex')]" # Metrics输入框的定位,可能包含多个。replaceChart repalceLabel需要二次处理 statisticsTemplates_input_metricsAndDimensionsSelect_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')][{replaceChart}]//label[normalize-space(text())='{repalceLabel}']/parent::*//div[contains(@class,'margin-top-2')]/div" # Metrics输入框的定位,可能包含多个。replaceChart repalceLabel需要二次处理 # statisticsTemplates_button_metricsAndDimensionsAdd_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')][{replaceChart}]//label[normalize-space(text())='{repalceLabel}']/parent::*//div[contains(@class, 'addCondition')]" # Metrics的add添加按钮。replaceChart repalceLabel 需要二次处理 @@ -845,22 +787,45 @@ statisticsTemplates_radio_sampling_posXpath = "//form[contains(@class, 'ly-addfo statisticsTemplates_input_other_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')][{replaceChart}]//span[normalize-space(text())='{repalceLabel}']/parent::*//input" # 其它的输入框和下拉输入框 。replaceName需要二次处理 statisticsTemplates_LabelName_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')]//*[normalize-space(text())='{repalceLabel}']" statisticsTemplates_dropdown_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')][{replaceChart}]//label[normalize-space(text())='{repalceLabel}']/parent::*//div[contains(@class, 'el-popper')]//span[normalize-space(text())='{replaceDropdownIterm}']" # 所有的下拉列表中内容定位 。replaceDropdownIterm 二次处理 -statisticsTemplates_button_chartAdd_posXpath = "//*[contains(@class, 'add_widget')]" # 添加图标按钮 xpath +statistics_templates_button_chart_add_posxpath = "//div[@class='statistics-template-charts']" # 添加图标按钮 xpath statisticsTemplates_button_chartEdit_posXpath = "//form[contains(@class, 'ly-addform1')]/div[contains(@class, 'template-edit-chart')][{replaceChart}]//div[@class='operateIcon']//i[contains(@class, 'icon-Edit')]" # 编辑图标按钮 xpath statisticsTemplates_div_paperGrid_posXpath = "//*[@id='proxyTCP']/div[contains(@class, 'paper-grid')]" # div的包含滚动条的长页面 xpath statisticsTemplates_div_rightDetails_posXpath = "//div[@id='router-view-container']//div[@class='paper-grid-right']//form/div" # 右侧详情div容器 xpath statisticsTemplates_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss # 提示保存按钮警告框OK按钮 statisticsTemplates_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss # 提示保存警告框Cancel按钮 statisticsTemplates_button_ChartOK_posXpath = "//*[@id='chart-ok']/span" # 保存chart的OK按钮 xpath定位 -statisticsTemplates_button_oK_posCss = "#Success span" # OK按钮css -statisticsTemplates_button_cancel_posCss = "#Cancel span" # Cancel按钮 +statistics_templates_button_ok_posxpath = dns_records_profile_page_button_ok_posxpath # OK按钮css +statistics_templates_button_cancel_posxpath = dns_records_profile_page_button_cancel_posxpath # Cancel按钮 # create_edit_page->侧滑中Audit Logs页面 statisticsTemplates_auditLogsPage_firstRowItemSelect_posXpath = "//div[contains(@class, 'right-show-edit-other')]//div[@class='right-menu-content']//tbody/tr[1]/td[1]//span/span" # Audit logs中第一行变更记录的勾选框 statisticsTemplates_auditLogsPage_button_compare_posXpath = "//*[@id='test-compare-_AuditLogs_InfoRightProfile_StatisticTemplateAdd_Home_App_anonymousComponent']//span" # compare 按钮 # create_edit_page->侧滑中Audit Logs页面->modification history页面 -statisticsTemplates_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath +# statisticsTemplates_auditLogsPage_modificationPage_tbody_posXpath = profilePage_auditLogsPage_modificationPage_tbody_posXpath # modification history页面中内容定位 xpath statisticsTemplates_auditLogsPage_button_close_posXpath = "//*[@id='interceptionadd_allcancelobject10-_AuditLogs_InfoRightProfile_StatisticTemplateAdd_Home_App_anonymousComponent']/span" # compare close 按钮 +statistics_templates_radio_visualization_type_posxpath = "//span[normalize-space(text())='{type}']" # visualization_type 定位 +statistics_templates_field_dropdown_item_posxpath = "(//input[@class='MuiAutocomplete-input css-oflz8s'])[{count}]" # field 下拉框 +statistics_templates_field_text_dropdown_item_posxpath = "//*[normalize-space(text())='{field}']" +statistics_templates_aggregate_dropdown_item_posxpath = "(//label[normalize-space(text())='Metrics']/parent::div//button[@class='MuiSelect-button css-1qmzz5g'])[{count}]" +statistics_templates_aggregate_text_dropdown_item_posxpath = "//*[normalize-space(text())='{aggregate}']" +statistics_templates_add_metrics_posxpath = "//label[normalize-space(text())='Metrics']/parent::div//i[contains(@class, 'icon-Create1')]" +statistics_templates_add_dimensions_posxpath = "//label[normalize-space(text())='Dimensions']/parent::div//i[contains(@class, 'icon-Create1')]" +statistics_templates_dimensions_dropdown_posxpath = "(//label[normalize-space(text())='Dimensions']/parent::div//button[@class='MuiSelect-button css-1qmzz5g'])[{count}]" +statistics_templates_dimensions_dropdown_text_posxpath = "(//*[normalize-space(text())='{item}'])[last()]" +statistics_templates_label_dropdown_item_posxpath = "(//label[normalize-space(text())='Metrics']/parent::div//input[@class='MuiInput-input css-1u0jcuo'])[{count}]" +statistics_templates_detail_page_edit_posxpath = "//i[@class='iconfont icon-Edit fontsize18']" +statistics_templates_del_metrics_posxpath = "//i[@class='el-tag__close el-icon-close']" +statistics_templates_del_metrics_row_posxpath = "//i[contains(@class, 'iconfont icon-retract')]" +statistics_templates_del_dimensions_posxpath = "//i[contains(@class, 'iconfont icon-Clear_c')]" +statistics_templates_order_by_dropdown_posxpath = "//label[normalize-space(text())='Order By']/parent::div//button[@class='MuiSelect-button css-1qmzz5g']" +statistics_templates_order_by_text_dropdown_item_posxpath = "//*[normalize-space(text())='{order_by}']" +statistics_templates_row_limit_input_posxpath = "//label[normalize-space(text())='Row Limit']/parent::div//button[@class='MuiSelect-button css-1qmzz5g']" +statistics_templates_row_limit_text_dropdown_item_posxpath = "//*[normalize-space(text())='{row_limit}']" + + + + +# ==================================== 其他页面 ======================================= mainPage_firstLevelMenu_federation_posXpath = "//li[@id='Federation']/div/span[@class='level1-title']" #一级菜单 Federation mainPage_secondLevelMenu_policy_link_posXpath= '//*[@id="system_PolicyLink"]/a' #二级菜单Policy links mainPage_common_search_selectLabel_posId = "select-label" #查询框id @@ -868,9 +833,7 @@ federation_policy_link_drop_sourceID_posXpath = "//li/span[text()='Source ID']" federation_policy_link_drop_requestID_posXpath = "//*[@id='2-_FilteredSearch_ElRow_PolicyLink_Home_App_anonymousComponent']/span" # 输入框下拉RequestID定位 listPage_federation_policy_link_buttonSearch_posId = "searchQuery" #查询按钮id #查询按钮id,使用公共定位 federation_policy_link_list_first_button_sync_posId = "//*[@id='ly-table1-listcontent']//tr[1]//*[@id='policy_sync-_PolicyLink_Home_App_anonymousComponent']" # 第一行sync按钮定位 -federation_policy_link_list_second_button_sync_posId = "//*[@id='ly-table1-listcontent']//tr[2]//*[@id='policy_sync-_PolicyLink_Home_App_anonymousComponent']" # 第二行sync按钮定位 federation_policy_link_list_first_button_request_id_posId = "//div[contains(@class,'el-table__body-wrapper')]//tr[1]//td[count(//div[@class='el-table__header-wrapper']//span[text()='Request ID']/../../../preceding-sibling::th)+1]//span" # 第一行request_id按钮定位 -federation_policy_link_list_second_button_request_id_posId = "//div[contains(@class,'el-table__body-wrapper')]//tr[2]//td[count(//div[@class='el-table__header-wrapper']//span[text()='Request ID']/../../../preceding-sibling::th)+1]//span" # 第二行request_id按钮定位 federation_policy_link_type_input_value_posXpath ="//li/span[text()='Hijack Files']" # 输入框下拉 Type 定位 federation_policy_link_drop_Type_posXpath = "//li/span[text()='Type']" federation_policy_link_input_value_posXpath = "//*[@id='request_id']//div[@class='rel-input v-input input el-input el-input--mini']/input" #选择查询条件后输入定位 @@ -881,5 +844,23 @@ listPage_linkTips_tsgProxyScripts_button_save_posXpath = "//div[starts-with(@id, listPage_linkTips_tsgProxyScripts_button_add_posXpath = "//div[starts-with(@id, 'temporary_form-')]" # addd listPage_linkTips_tsgProxyScripts_button_OK_posXpath = "//button[starts-with(@id, 'copyOk-')]" # OK -listPage_object_tableCheckbox_localVsysAndReferenceEqualO_profiles_posXpaths = '((//*[contains(@class,"table-status-item-id")]/preceding-sibling::div[2][not(*)] | //*[@class="checkBox" and not(*)])/ancestor::tr//div[contains(@class,"obj-charts-btn") and text()=0])/ancestor::tr//span[@class="el-checkbox__inner"]' # 列表页中本Vsys的Object 或Group(不包含其他Vsys)且Reference Count==0 -listPage_object_tableCheckbox_localVsysAndReferenceEqualO_profiles_posXpaths_template = '(((//*[contains(@class,"table-status-item-id")]/preceding-sibling::div[2][not(*)] | //*[@class="checkBox" and not(*)])/ancestor::tr//div[contains(@class,"obj-charts-btn") and text()=0])/ancestor::tr//span[@class="el-checkbox__inner"])[{}]' # 列表页中本Vsys的Object 或Group(不包含其他Vsys)且Reference Count==0
\ No newline at end of file +# 全局删除 +listPage_object_tableCheckbox_localVsysAndReferenceEqualO_profiles_posXpaths = '((//*[contains(@class, "table-status-item-id")][preceding-sibling::div[position() = 1 and not(*)] and preceding-sibling::div[position() = 2 and not(*)]] | //*[@class="checkBox" and not(*)])/ancestor::tr//div[contains(@class,"obj-charts-btn") and text()=0])/ancestor::tr//span[@class="el-checkbox__inner"]' # 列表页中本Vsys的Object 或Group(不包含其他Vsys)且Reference Count==0 +listPage_object_tableCheckbox_localVsysAndReferenceEqualO_profiles_posXpaths_template = '(((//*[contains(@class, "table-status-item-id")][preceding-sibling::div[position() = 1 and not(*)] and preceding-sibling::div[position() = 2 and not(*)]] | //*[@class="checkBox" and not(*)])/ancestor::tr//div[contains(@class,"obj-charts-btn") and text()=0])/ancestor::tr//span[@class="el-checkbox__inner"])[{}]' # 列表页中本Vsys的Object 或Group(不包含其他Vsys)且Reference Count==0 + +# system_audit_log +main_page_system_audit_log_search_clear_posId = "searchClear" # search_clear +main_page_first_level_menu_system_posxpath = "//span[normalize-space(text())='System']" # 一级菜单System +main_page_second_level_menu_audit_log_posxpath = "//span[normalize-space(text())='Audit Logs']" # 二级菜单AuditLog +list_page_audit_log_search_select_dropdown_item_posxpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//*[normalize-space(text())='{replace_name}']" +list_page_audit_log_search_select_input_posxpath = "//input[@class='MuiAutocomplete-input css-qdyksh']" +list_page_audit_log_search_button_compare_posxpath = "//div[@class='MuiBox-root css-l9gj4t']//button" + + +list_page_audit_log_search_select_target_type_posXpath = '//li[@id="30-_FilteredSearch_ElRow_system_PolicyConfigurationLog_Home_App_anonymousComponent"]' # target type选择 +listPage_auditlogSearch_select_UserName_posXpath = '//li[@id="3-_FilteredSearch_ElRow_system_PolicyConfigurationLog_Home_App_anonymousComponent"]' # username选择 +list_page_audit_log_search_target_id_text_posXpath = "//div[@class='rel-input v-input input el-input el-input--mini']/input" +list_page_audit_log_search_select_target_id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_system_PolicyConfigurationLog_Home_App_anonymousComponent"]' # TagrgetID +list_page_audit_log_search_select_user_name_posXpath = '//li[@id="3-_FilteredSearch_ElRow_system_PolicyConfigurationLog_Home_App_anonymousComponent"]' # username选择 +list_page_audit_log_search_user_name_text_posXpath = "//div[@class='el-input el-input--mini el-input--suffix is-focus']//input" +list_page_audit_log_search_select_operation_posXpath = '//li[@id="7-_FilteredSearch_ElRow_system_PolicyConfigurationLog_Home_App_anonymousComponent"]' |
