diff options
Diffstat (limited to 'page_element/element_position.py')
| -rw-r--r-- | page_element/element_position.py | 278 |
1 files changed, 278 insertions, 0 deletions
diff --git a/page_element/element_position.py b/page_element/element_position.py new file mode 100644 index 00000000..5312a561 --- /dev/null +++ b/page_element/element_position.py @@ -0,0 +1,278 @@ +#login page 登录页面 +loginPage_userName_posName = "username" +loginPage_passwd_posName = "password" +loginPage_signIn_posId = "login" + +#main页面 +##上导航栏 +mainPage_navigationBar_logo_posCss = ".tsg-img-logo" +#菜单栏================================菜单栏===================================菜单栏================================菜单栏==================================菜单栏========================菜单栏 +##菜单栏 +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_hijackFiles_posId = "Proxy_Profiles/Profile_HijackFiles" #二级菜单hijack files +mainPage_secondLevelMenu_insertScripts_posId = "Proxy_Profiles/Profile_Insert" #二级菜单insert scripts +mainPage_secondLevelMenu_shapingProfiles_posId = "Proxy_Profiles/ShapingProfile" #二级菜单shaping profiles + + +#Profiles 查询栏===================Profiles 查询栏=====================Profiles 查询栏=================Profiles 查询栏=======================Profiles 查询栏=================Profiles 查询栏 +##profiles模块查询栏 +mainPage_profileSearch_selectLabel_posId = "select-label" #查询框id +mainPage_profileSearch_buttonSearch_posId = "searchQuery" #查询按钮id +mainPage_profileSearch_buttonClear_posId = "searchClear" #清空查询按钮id + + +#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_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->Tips dialog 列表页 tips对话框 +listPage_dialogTips_dnsRecords_button_yes_posCss = ".delComponents-ok span" #删除提示的Tips的yes按钮 +listPage_dialogTips_dnsRecords_button_no_posCss = ".delComponents-close span" #删除提示的Tips的close按钮 +#Create DNS Record Profile 和 Edit DNS Record Profile 新增和编辑页 +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_posId = "object_ip_search" #search for 输入框id +dnsRecordsProfilePage_button_addItem_posId = "temporary_form" #添加item按钮id +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_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 + + +#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_profileSearch_responsePages_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_responsePages_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create Response Page 和 Edit Response Page 新增和编辑页 +responsePage_input_Name_posId = "responsepages_profileName" #name输入框id +responsePage_input_file_posXpath = "//*[@id='responseAddUpload']/parent::*//input" #File上次输入按钮 +responsePage_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss #提示保存按钮警告框OK按钮 +responsePage_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss #提示保存警告框Cancel按钮 +responsePage_button_oK_posCss = "#responseAddOk1 span" #OK按钮css +responsePage_button_cancel_posCss = "#responseAddCancel1 span" #Cancel按钮 + + +#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_profileSearch_trafficMirroringProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_trafficMirroringProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create traffic mirroring profile page 和 Edit traffic mirroring profile page 新增和编辑页 +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 +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按钮 + + +#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_profileSearch_sslDecryptionKeyrings_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_sslDecryptionKeyrings_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create ssl decryption keyrings page 和 Edit ssl decryption keyrings page 新增和编辑页 +sslDecryptionKeyrings_input_Name_posId = "keyringsadd_name" #name输入框id +sslDecryptionKeyrings_input_certificateFile_posXpath = "//*[@id='keyringsadd_file']/parent::*//input" #证书上传按钮xpath +sslDecryptionKeyrings_radio_privateKeyFile_posId = "privateFile" #私钥单选按钮 +sslDecryptionKeyrings_radio_hsm_posId = "privateHSM" #私钥单选按钮 +sslDecryptionKeyrings_input_privateKeyFile_posXpath = "//*[@id='keyringsadd_file1']/parent::*//input" #证书上传按钮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 +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按钮 + + +#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_profileSearch_sslDecryptionProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_sslDecryptionProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create ssl decryption profiles page 和 Edit ssl decryption profiles page 新增和编辑页 +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_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按钮 + + +#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_profileSearch_hijackFiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_hijackFiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create hijack files page 和 Edit hijack files page 新增和编辑页 +hijackFiles_input_Name_posId = "hijack_profileName" #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 = "//*[@id='hijackAddContentType']" #添加文件类型按钮 xpath +hijackFiles_tablist_fileType_posXpath = "//*[@class='right-show-edit']//span[normalize-space(text())='{replaceName}']" #右侧滑中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按钮 + + +#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_profileSearch_insertScripts_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_insertScripts_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create insert scripts page 和 Edit inserts script page 新增和编辑页 +insertScripts_input_Name_posId = "insert_profileName" #name输入框id +hijackFiles_input_scriptUpLoad_posXpath = "/*[@id='insertAddUpload']//input" #input 上传文件xpath +hijackFiles_input_scriptType_posXpath = "//*[@id='insert_select_format']" #input 文件类型选择xpath +hijackFiles_dropdown_jsItem_posXpath = "//*[@id='insert_select_formatjs']" #下拉菜单 js选项 xpath +hijackFiles_dropdown_cssItem_posXpath = "//*[@id='insert_select_formatcss']" #下拉菜单 js选项 xpath +hijackFiles_input_insertPosition_posXpath = "//*[@id='insert_select_insertOn']" #input insert position xpath +# todo +hijackFiles_dropdown_cssItem_posXpath = "//*[@id='insert_select_formatcss']" #下拉菜单 js选项 xpath + + +insertScripts_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss #提示保存按钮警告框OK按钮 +insertScripts_button_warningSaveCancel_posCss = dnsRecordsProfilePage_button_warningSaveCancel_posCss #提示保存警告框Cancel按钮 +insertScripts_button_oK_posCss = "#hijackAddOk1 span" #OK按钮css +insertScripts_button_cancel_posCss = "#hijackAddCancel1 span" #Cancel按钮 + + +#Profiles rofiles-Shaping=============Profiles rofiles-Shaping===================Profiles rofiles-Shaping====================Profiles rofiles-Shaping==================Profiles rofiles-Shaping==============Profiles rofiles-Shaping +#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_profileSearch_shapingProfiles_selectLabel_posId = mainPage_profileSearch_selectLabel_posId #查询框id 定位形式一样 +listPage_profileSearch_shapingProfiles_buttonSearch_posId = mainPage_profileSearch_buttonSearch_posId #查询按钮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->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按钮 +#Create Shaping Profile 和 Edit Shaping Profile 新增和编辑页 +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_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_button_warningSaveYes_posCss = dnsRecordsProfilePage_button_warningSaveYes_posCss #提示保存警告框 +shapingProfilePage_button_oK_posCss = "#runScriptOk1 span" #OK按钮css +shapingProfilePage_button_cancel_posCss = "#runScriptCancel1 span" #Cancel
\ No newline at end of file |
