diff options
| author | youzhijiang <[email protected]> | 2024-10-16 18:54:27 +0800 |
|---|---|---|
| committer | youzhijiang <[email protected]> | 2024-10-16 18:54:27 +0800 |
| commit | 565b2922c1f7d867455a0e131bb0c09997170c52 (patch) | |
| tree | a8fff82895330757cd6e16db186ceb31f15c70b2 /page_element | |
| parent | cf345c7861e095678bd380a8be3baab2a02b6e2f (diff) | |
| parent | e6e9f51f30146c362143a2dc6162ce28fe3142ed (diff) | |
修改元素定位
Diffstat (limited to 'page_element')
| -rw-r--r-- | page_element/admin_area_element_position.py | 2 | ||||
| -rw-r--r-- | page_element/ln_objects_element_position.py | 121 | ||||
| -rw-r--r-- | page_element/objects_element_position.py | 197 | ||||
| -rw-r--r-- | page_element/profiles_element_position.py | 5 |
4 files changed, 175 insertions, 150 deletions
diff --git a/page_element/admin_area_element_position.py b/page_element/admin_area_element_position.py index 2ec67f56..4fc8e026 100644 --- a/page_element/admin_area_element_position.py +++ b/page_element/admin_area_element_position.py @@ -1,7 +1,7 @@ # main页面 ##上导航栏 mainPage_navigationBar_logo_posCss = ".tsg-img-logo" -mainPage_button_menu_posXpath = "//i[@class='icon-menu iconfont']" # menu按钮定位 +mainPage_button_menu_posXpath = '//div[@class="systemMenu"]//span[text()="Menu"]' # menu按钮定位 mainPage_button_adminArea_posCss = ".el-dropdown-menu__item:nth-child(3) > .el-row--flex > .el-col:nth-child(2)" # Admin Area按钮定位 mainPage_button_adminArea_posXpath = "//*[@class='level1-icon iconfont icon-Admin-Area']/../../.." # Admin Area按钮定位 # mainPage_text_adminArea_posXpath = "//span[@class='root-title']" #当前页面左上角Admin Area定位 diff --git a/page_element/ln_objects_element_position.py b/page_element/ln_objects_element_position.py index 81212da0..e9c1852b 100644 --- a/page_element/ln_objects_element_position.py +++ b/page_element/ln_objects_element_position.py @@ -19,7 +19,9 @@ listPage_object_apns_deleteYes_posXpath = '//button[@class="MuiButtonBase-root M listPage_objectSearch_apns_selectLabel_posId="select-label" #查询框id listPage_objectSearch_apns_selectLabel_posXpath = '//div[@class="MuiAutocomplete-wrapper MuiAutocomplete-multiple css-1h1ala5"]/input' # 查询框Xpath!!!!! listPage_objectGroup_apns_createButton_posId="object1-_OperateBtns_ElRow_Objects_apn_Home_App_anonymousComponent" #Create-apn group按钮 +listPage_objectGroup_apns_createButton_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" listPage_object_apnsSelect_createButton_posId="object0-_OperateBtns_ElRow_Objects_apn_Home_App_anonymousComponent" #Create-apn 按钮 +listPage_object_apnsSelect_createButton_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" listPage_object_APNs_select_First_object_posXpath = '(//span[@class="MuiCheckbox-root MuiCheckbox-variantOutlined MuiCheckbox-colorNeutral MuiCheckbox-sizeMd MuiDataGrid-checkboxInput css-q3lb41"]//input)[1]' #列表中第一行数据前的复选框!!!!! listPage_object_APNs_select_Second_object_posXpath ='(//span[@class="MuiCheckbox-root MuiCheckbox-variantOutlined MuiCheckbox-colorNeutral MuiCheckbox-sizeMd MuiDataGrid-checkboxInput css-q3lb41"]//input)[2]'#列表中第二行数据前的复选框!!!!! @@ -28,13 +30,14 @@ listPage_object_APNs_reference_count_posXpath='(//button[@class="MuiButtonBase-r listPage_object_APNs_first_row_id_posXpath = "//div[contains(@class,'el-table__body-wrapper')]//tr[1]//td[count(//div[@class='el-table__header-wrapper']//span[text()='ID']/../../../preceding-sibling::th)+1]//div[@class='table-status-item-id']//span" #APN Create&Edit页 +apn_Objectpage_ln_select_statistics_input_posXpath = "//div[@class='apn-object-statistics_option']" apn_ObjectPage_InputName_posXpath='//input[@class="MuiInput-input css-fqt4w4"]'#输入名字!!!!! apn_ObjectPage_NameLength_posXpath='' apn_ObjectPage_addItem_posId = "temporary_form" #添加item按钮 + apn_ObjectPage_addItem_posXpath = '//i[@class="iconfont icon-Create1 font-[700]"]' #添加item按钮Xpath!!!!! apn_ObjectPage_editItem_posId='//*[@id="router-view-container"]//i[@class="operate-icon iconfont icon-Edit"]' #edit item的按钮 apn_ObjectPage_editItem_posXpath = '(//i[@class="iconfont icon-Edit"])[1]' #edit item的按钮Xpath!!!!! -apn_ObjectPage_inputItem_posXpath = '//div[@class="MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-grqzrl"]/input' #输入item内容!!!!! +apn_ObjectPage_inputItem_posXpath = '//input[@class="MuiInput-input css-1u0jcuo"]' #输入item内容!!!!! apn_ObjectPagen_SaveItem_posXpath = '//i[@class="operate-icon iconfont icon-save"]' # 保存item按钮!!!!! apn_ObjectPage_button_cancel_posXpath = '//button[@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按钮Xpath!!!!! APNsObjectPage_textArea_Description_posXpath= '//textarea[@placeholder="Please enter the content"]' #description文本输入区Xpath!!!!! @@ -74,9 +77,9 @@ APNs_Group_sub_Object_edit_save_Button_posXpath = '//*[@id="router-view-contai APNs_Group_sub_Object_edit_ok_Button_posid ="OK-_apnDetail_VDraswer_EditDraw_apnDetail_Home_App_anonymousComponent" #OK #APN查询页面,Object类似 listPage_objectSearch_APNs_select_Id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_Objects_apn_Home_App_anonymousComponent"]' #查询ID -listPage_objectSearch_APNs_select_Name_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_apn_Home_App_anonymousComponent"]' #查询Name -listPage_objectSearch_APNs_select_Details_posXpath = '//*[@id="6-_FilteredSearch_ElRow_Objects_apn_Home_App_anonymousComponent"]' #查询Details -listPage_objectSearch_APNs_select_Description_posXpath = '//*[@id="4-_FilteredSearch_ElRow_Objects_apn_Home_App_anonymousComponent"]' #查询Description +listPage_objectSearch_APNs_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" #查询Name +listPage_objectSearch_APNs_select_Details_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" #查询Details +listPage_objectSearch_APNs_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" #查询Description listPage_objectSearch_APNs_select_all_posXpath = '//*[@id="1-_FilteredSearch_ElRow_Objects_apn_Home_App_anonymousComponent"]/preceding-sibling::li[1]' #查询所有 listPage_objectSearch_APNs_buttonSearch_posId = "searchQuery" #查询按钮id @@ -124,7 +127,7 @@ tunnel_add_endpoint_b= "//div[@class='tunnel-object-endpointB']" tunnel_add_item_2="//div[@class='tunnel-object-endpointB']//i[@class='iconfont icon-Create1 font-[700]']" tunnel_ip_list_fourth="//div[@class='pt-[2px] overflow-hidden flex-1']//ul/li[9]//div[@class='flex h-[22px] leading-[22px] MuiBox-root css-14di81r']" tunnel_page_description="//div[@class='tunnel-object-description']//textarea[1]" -tunnel_ip_list_close="//button[@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 css-5vcc8t']" +tunnel_ip_list_close="//button[@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 css-zcc2bs']" tunnel_ip_list_add_button='//i[@class="iconfont icon-Create1"]' tunnel_ip_list_select_ip='//li[normalize-space(text())="Address"]' @@ -228,7 +231,7 @@ listPage_object_signature_del_yes_Button_posXpath = '//button[@class="MuiButtonB listPage_objectSearch_signature_select_Id_posXpath = '//*[@id="1-_FilteredSearch_ElCol_ElRow_Application_appSignatures_Home_App_anonymousComponent"]' # 查询ID #todo 都改为id listPage_objectSearch_signature_select_Name_posId = "2-_FilteredSearch_ElCol_ElRow_Application_appSignatures_Home_App_anonymousComponent" # 查询Name listPage_objectSearch_signature_input_Name_posXpath ='//input[@class="MuiAutocomplete-input css-qdyksh"]' #输入Name!!!!! -Signatures_built_arrtribute_icon_pasXpath ='//div[@class = "el-collapse"]//div[@class = "el-collapse-item is-active"]//*[contains(@class,"icon svg-icon") and not(@style="display: none;")]' #通过内置图标获取所有内置特征 +Signatures_built_arrtribute_icon_pasXpath ='//*[contains(@class, "icon svg-icon")]' #通过内置图标获取所有内置特征 Signatures_built_arrtribute_pasXpath = '//div[@class = "el-collapse"]//div[@class = "el-collapse-item"]' #获取内置特征 list_page_no_data = listPage_object_APNs_No_Data_posXpath #No Data listPage_signature_first_condition_all_button='(//*[@class="iconfont icon-Conditions tsg-object-icon22 icon-default-color fontsize18"])[1]' @@ -236,15 +239,17 @@ listPage_condition_slide_search_frame='//*[@id="object_ip_search"]' #Create Signature按钮,Attribute选择general.session.analysis.ap……,Application选择http Signatures_ObjectPage_InputName_posId = "ApplicationSignaturesAdd_signatureName1" #输入名字 -Signatures_ObjectPage_InputName_posXpath = '//*[@id="ApplicationSignaturesAdd_signatureName1"]' +Signatures_ObjectPage_InputName_posXpath = '//input[@class="MuiInput-input css-fqt4w4"]' # Name输入框Xpath!!!!! Signatures_ObjectPage_inputParentSignature_posId = 'openSideslipOrCondition' +Signatures_ObjectPage_inputParentSignature_posXpath = '//button[@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 css-js0x5u"]/i' plus_button='//*[@id="openSideslipOrCondition"]' -addto_condition_button_xpath = '//*[@class="el-form-item el-form-item--small"]//*[@readonly="readonly"]' # 选择Add按钮的XPath路径 -new_condition_button_xpath = '//*[text()="New Condition"]' # 选择New Condition按钮的XPath路径 -new_not_condition_button_xpath = '//*[text()="New Not Condition"]' # 选择New Not Condition按钮的XPath路径 +addto_condition_button_xpath = '//button[@class="MuiSelect-button css-1qmzz5g"]' # 选择Add按钮的XPath路径 +new_condition_button_xpath = '//li[@class="MuiOption-root css-1fryf7q"]' # 选择New Condition按钮的XPath路径 +new_not_condition_button_xpath = '//li[@class="MuiOption-root css-2lupvy"]' # 选择New Not Condition按钮的XPath路径 attribute_name_input_id = "Attribute_Name" # 选择Attribite Name输入框的ID +attribute_name_input_posXapth = 'MuiButtonBase-root MuiButton-root MuiLoadingButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiLoadingButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-gdcbst' general_dropdown_xpath = '//*[text()="tcp"]' # 选择general下拉框的XPath路径 -general_session_analysis_app_id_xpath = '//*[normalize-space(text())="tcp.payload"]' # 选中general.session.analysis.app_id +general_session_analysis_app_id_xpath = '//*[normalize-space(text())="ATTR_TCP_PAYLOAD"]' # 选中general.session.analysis.app_id select_application_condition_xpath = '//*[@id="orCondition_id"]/i' # 选择Application+的ID first_http_checkbox_xpath = '//ul[@class="row-container tableList"]/li[1]//*[@class="reference-box el-popover__reference"]' # 选择第一个keyword的XPath路径 second_http_checkbox_xpath='//ul[@class="row-container tableList"]/li[2]//*[@class="reference-box el-popover__reference"]' @@ -252,8 +257,11 @@ second_http_checkbox_xpath='//ul[@class="row-container tableList"]/li[2]//*[@cla second_item_checkbox_xpath = '//ul[@class="row-container tableList"]/li[2]//*[@class="reference-box el-popover__reference"]' # 选择第一个keyword的XPath路径 ok_button_id = "ApplicationSignaturesAdd_ok" # OK按钮的ID +ok_button_posXpath = '(//button[@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"])[2]' ok_component_id = "ApplicationSignaturesAdd_ok_component" # Object界面的OK按钮的ID(Condition界面) +ok_component_posXpath = '(//button[@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"])[1]' cancel_component_id = "ApplicationSignaturesAdd_cancel_component" # Object界面的Cancel按钮的ID +cancel_component_posXpath = '(//button[@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"])[1]' cancel_confirm_yes_button='//button[@class="el-button el-button--default el-button--small el-button--primary operation-confirm-Leave"]' confirm_yes_button_xpath = '(//*[normalize-space(text())="Yes"])[2]' # 弹窗再次确认保存Yes按钮的XPath路径 signature_page_total_item='//*[@id="router-view-container"]//div[@class="conditionTotal"]' @@ -313,22 +321,26 @@ appgroup_exclude_app_selection_xpath = '//div[@class="app-group-excluded_sub_obj ssl_selection_xpath = '//li[@data-id="1032"]' # 选择ssl!!!!! ftp_selection_xpath='(//*[@id="router-view-container"]//*[normalize-space(text())="ftp"])[2]' appgroup_description_input_xpath = '//textarea[@placeholder="Please enter the content"]' # description输入框!!!!! -appgroup_object_group_subobject_close_posXpath = '//*[@id="router-view-container"]//div[@class="AppItemList list-box"]/div[3]/button' +appgroup_object_group_subobject_close_posXpath = '//button[@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 css-5vcc8t"]' appgroup_ok_button_posId = "OK-_AppGroupDetail_Home_App_anonymousComponent" # OK +appgroup_ok_button_posXpath = '//button[@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"]' appgroup_confirm_ok_button_xpath = '//*[@class="el-button el-button--default el-button--small el-button--primary operation-confirm"]' # confirm ok appgroup_cancel_button_posId = "Cancle-_AppGroupDetail_Home_App_anonymousComponent" # cancel +appgroup_cancel_button_posXpath = '//button[@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"]' appgroup_confirm_appgroup_cancel_button_xpath = '//*[@class="el-button el-button--default el-button--small el-button--primary operation-confirm"]' # confirm cancel -appgroup_object_group_subobject_fist_posXpath = "//div[@class='tab-content floatleft height100 width100 margin-top40']//ul[@class='row-container tableList apptableList']/li[1]//div[@class='row-content-cell']" -appgroup_object_group_subobject_second_posXpath = "//div[@class='tab-content floatleft height100 width100 margin-top40']//ul[@class='row-container tableList apptableList']/li[2]//div[@class='row-content-cell']" -appgroup_slide_app_ok='//*[@id="application_sub-_AppOperate_VDraswer_EditDraw_AppGroupDetail_Home_App_anonymousComponent"]/span' +appgroup_object_group_subobject_fist_posXpath = '//li[@data-id="1005"]//span' +appgroup_object_group_subobject_second_posXpath = '//li[@data-id="1032"]//span[@class="truncate"]' +appgroup_slide_app_ok='(//button[@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"])[2]' appgroup_slide_app_confirm_ok='//button[@class="el-button el-button--default el-button--small el-button--primary operation-confirm"]' -appgroup_slide_app_add_signature_button='//*[@id="application_signature"]/i' +appgroup_slide_app_add_signature_button='//button[@class="MuiButtonBase-root MuiButton-root MuiLoadingButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiLoadingButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-soyppl"]' appgroup_slide_app_list_first_one='(//*[@class="white-space"])[1]' -appgroup_slide_app_name='(//*[@id="router-view-container"]//input[@placeholder="Please enter the content"])[2]' -appgroup_slide_risk='(//*[@id="application_subcategory0-_AppOperate_VDraswer_EditDraw_AppGroupDetail_Home_App_anonymousComponent"])[3]' +appgroup_slide_app_name='(//input[@class="MuiInput-input css-fqt4w4"])[2]' +appgroup_slide_risk='//ul[@class="base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1"]/li[@class="MuiOption-root css-1fryf7q"]' appgroup_total_1='(//*[@id="router-view-container"]//div[@class="total textRight"])[1]' appgroup_total_2='(//*[@id="router-view-container"]//div[@class="total textRight"])[2]' appgroup_first_row_item_in_app='(//*[@id="router-view-container"]//div[@class="row-content-cell"])[1]' +appgroup_slide_create_app_button_posXpath = '//button[@class="MuiIconButton-root MuiIconButton-variantPlain MuiIconButton-colorNeutral MuiIconButton-sizeMd action-create css-mqmbcw"]' +appgroup_item_search_frame = '//div[@class="app-group-included_sub_object_uuids"]//input[@class="MuiInput-input css-za5rna"]' #Object application===================application====================application=================application=======================application=================application================ #app group列表頁的公共元素的和Attribute相同,可以復用 #app group列表頁 @@ -343,26 +355,29 @@ listPage_objectSearch_application_buttonSearch_posId = "searchQuery" # 查询� listPage_objectSearch_application_buttonClear_posId = "searchClear" # 清空查询按钮id listPage_object_application_first_row_id_posXpath = "//div[contains(@class,'el-table__body-wrapper')]//tr[1]//td[count(//div[@class='el-table__header-wrapper']//span[text()='ID']/../../../preceding-sibling::th)+1]//div[@class='cursor limit bfId positionRelative none-line']/div" listPage_first_application_checkbox_xpath = listPage_object_APNs_select_First_object_posXpath # 列表页第一个数据的复选框 -listPage_no_application_xpath = '//*[@id="app-table-_AppTable_Application_Home_App_anonymousComponent"]//span[@class="el-table__empty-text"]' # No data数据 +listPage_no_application_xpath = '//div[@class="MuiDataGrid-overlay css-14349d1"]' # No data数据 application_listPage_All_id="appAll0" #All按鈕 application_listPage_builtin_id="appAll1" #Buit-in按鈕 application_listPage_imported_id="appAll2" #imported按鈕 #app create&modify -application_inputname_xpath='//*[@id="router-view-container"]//input[@placeholder="Please enter the content"]'#name输入框 -application_input_longname_xpath='//*[@id="application_longname1"]'#long name输入框 -application_description_input_xpath = '//*[@id="router-view-container"]//textarea' # description输入框 +application_inputname_xpath='//input[@placeholder="Please enter the content"]'#name输入框 +application_input_longname_xpath='//input[@placeholder="Long Name"]'#long name输入框 +application_description_input_xpath = '//textarea[@placeholder="Please enter the content"]' # description输入框 application_select_category_dropwmn_id = "application_eventkeying1" # Category select - +application_select_category_dropwmn_posXpath = '//div[@class="application-object-category"]' application_select_subcategory_dropwmn_id = "application_eventkeying2" # Subcategory select +application_select_subcategory_dropwmn_posXpath = '//div[@class="application-object-subcategroy"]' application_select_content_dropwmn_id = "application_eventkeying3" # Content select +application_select_content_dropwmn_posXpath = '//div[@class="application-object-content"]' application_select_risk_dropwmn_id = "application_eventkeying4" # Risk select +application_select_risk_dropwmn_posXpath = '//div[@class="application-object-risk"]' application_select_signature_dropwmn_id="application_signature"#signature dropdown application_ok_button_posId = "application_sub-_AppOperate_Home_App_anonymousComponent" # OK -application_ok_button_posXpath = '//*[@id="application_sub-_AppOperate_Home_App_anonymousComponent"]' +application_ok_button_posXpath = '//button[@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"]' application_confirm_ok_button_xpath = appgroup_confirm_ok_button_xpath # confirm ok application_cancel_button_posId = "application_back-_AppOperate_Home_App_anonymousComponent" # cancel application_confirm_application_cancel_button_xpath = appgroup_confirm_appgroup_cancel_button_xpath # confirm cancel' @@ -370,44 +385,44 @@ application_confirm_application_cancel_button_xpath = appgroup_confirm_appgroup_ application_category_businesystem_xpath='//*[(normalize-space(text())="business-systems")]' application_subcategory_authservice_xpath='//*[(normalize-space(text())="auth-service")]' application_content_voicecall_xpath='//*[(normalize-space(text())="voice-call")]' -application_risk_is0_xpath='(//*[@id="application_subcategory0-_AppOperate_Home_App_anonymousComponent"])[3] '#risk為0時則subcategory0,risk為1則是subcategory1 +application_risk_is0_xpath='//ul[@class="base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1"]/li[1]'#risk為0時則subcategory0,risk為1則是subcategory1 -app_category_xpath='//*[@id="application_category{}-_AppOperate_Home_App_anonymousComponent"]' #0-4 -app_sub_category_xpath='(//*[@id="application_subcategory{}-_AppOperate_Home_App_anonymousComponent"])[3] | //*[@id="application_subcategory{}"]' #0-3 -app_content_xpath='(//*[@id="application_subcategory{}-_AppOperate_Home_App_anonymousComponent"])[last()]' #0-3 -app_risk_xpath='(//*[@id="application_subcategory{}-_AppOperate_Home_App_anonymousComponent"])[last()]' #0-3 -app_characteristics_xpath='(//*[@class="el-checkbox"]//span[@class="el-checkbox__inner"])[{}]' #1-9 +app_category_xpath='//ul[@class="base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1"]/li[{}]' #0-4 +app_sub_category_xpath='//ul[@class="base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1"]/li[{}]' #0-3 +app_content_xpath='//ul[@class="base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1"]/li[{}]' #0-3 +app_risk_xpath='//ul[@class="base-Popper-root MuiSelect-listbox Mui-expanded css-icfck1"]/li[{}]' #0-3 +app_characteristics_xpath='(//input[@class="MuiCheckbox-input css-1jj0cvj"])[{}]' #1-9 -Object_Application_set_button = '//span[@id="eventfixed"]/i' +Object_Application_set_button = '//button[@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 css-1vzxql1"]/i' Object_Application_select_cancel = '//button[@id="dropColALlFalse-_ElementSet_AppTable_Application_Home_App_anonymousComponent"]' Object_Application_select_Ok = '//button[@id="dropColOK-_ElementSet_AppTable_Application_Home_App_anonymousComponent"]/span' -Object_Application_column_default = '//table/thead/tr/th[{}]/div/div/span' +Object_Application_column_default = '//*[@id="root"]/div/div/main/div[1]/div[3]/div[2]/div[1]/div[1]/div/div/div[{}]/div[1]/div/div/div' Object_Application_select_All = '//button[@id="dropColAll-_ElementSet_AppTable_Application_Home_App_anonymousComponent"]' Object_Application_import_button_xpath = '(//button[@class="el-button importAndExport el-button--default el-button--small"]/i)[1]' Object_Application_upload_button_xpath = '//input[@class="el-upload__input"]' Object_Application_file_ok = '(//button[@class="el-button right-menu-button-close el-button--info el-button--small"])[4]' Object_Application_success_detail_css = '.el-message__content' Object_Application_Name_column = '//table/tbody/tr[{}]/td[4]/div/div[1]' -Object_Application_page_number = '//div[@id="pagination-_pagination_AppTable_Application_Home_App_anonymousComponent"]/div[1]/ul/li[{}]' -Object_Application_next_page = '//div[@id="pagination-_pagination_AppTable_Application_Home_App_anonymousComponent"]/div[1]/button[2]/i' +Object_Application_page_number = '//ul[@class="MuiPagination-ul css-nhb8h9"]/li[{}]' +Object_Application_next_page = '//button[@class="MuiButtonBase-root MuiPaginationItem-root MuiPaginationItem-sizeMedium MuiPaginationItem-text MuiPaginationItem-rounded MuiPaginationItem-colorPrimary MuiPaginationItem-textPrimary MuiPaginationItem-previousNext css-x4rueb"]' Object_Application_page_input_xpath = '//div[@id="pagination-_pagination_AppTable_Application_Home_App_anonymousComponent"]/div[1]/span/div/input' Object_Application_Audit_Logs_xpath ='//i[@class="iconfont icon-a-Adminlogs icon-style"]' Object_Application_Audit_Logs_page_xpath = '//div[@class="LocalationDraswer lstsub right-show-edit right-show-edit-other"]/div/div/div[@class="rm-top"]/span[1]' -Object_Application_create_cancel = '//button[@id="application_back-_AppOperate_Home_App_anonymousComponent"]' -Object_Application_first_column = '//*[@id="app-table-_AppTable_Application_Home_App_anonymousComponent"]/div[3]/table/tbody/tr/td[{}]' -Object_Application_create_Category_first = '(//*[@class="el-select-dropdown__item selected"])[last()]' -Object_Application_create_blank = '//*[@id="application_description"]' -Object_Application_create_Subcategory_first = Object_Application_create_Category_first -Object_Application_create_Content_first = Object_Application_create_Category_first -Object_Application_create_Risk_first = Object_Application_create_Category_first -Object_Application_input_error_name = '//div[@class="el-form-item__error"]' +Object_Application_create_cancel = '//button[@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"]' +Object_Application_first_column = '//*[@id="root"]/div/div/main/div[1]/div[3]/div[2]/div[1]/div[2]/div/div[1]/div[{}]' +Object_Application_create_Category_first = '(//ul[@class="base-Popper-root MuiSelect-listbox css-icfck1"]/li[@aria-selected="true"])[1]' +Object_Application_create_blank = '//*[text()="Properties"]' +Object_Application_create_Subcategory_first = '(//ul[@class="base-Popper-root MuiSelect-listbox css-icfck1"]/li[@aria-selected="true"])[2]' +Object_Application_create_Content_first = '(//ul[@class="base-Popper-root MuiSelect-listbox css-icfck1"]/li[@aria-selected="true"])[3]' +Object_Application_create_Risk_first = '(//ul[@class="base-Popper-root MuiSelect-listbox css-icfck1"]/li[@aria-selected="true"])[4]' +Object_Application_input_error_name = '//div[@class="MuiFormHelperText-root css-koslx8"]' Object_Application_upload_error_detail_xpath = '//div[@class="importTips"]/p' Object_Application_properties_error_xpath = '(//div[@class="el-form-item__error"])[{}]' Object_Application_upload_repeat_error_xpath = '(//div[@class="el-table__body-wrapper is-scrolling-none"]/table[@class="el-table__body"]/tbody/tr[@class="el-table__row"]/td[3]/div[@class="cell"])[3]' Object_Application_upload_cancel = '(//button[@class="el-button right-menu-button-close el-button--info el-button--small"])[4]' Object_Application_clear_search_input = '//*[@id="searchClear"]' -Object_Application_create_drop_input_xpath = '//*[@class="denyAction"]//input[@class="el-input__inner"]' +Object_Application_create_drop_input_xpath = '//input[@class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-yush35"]' Object_Application_create_drop_input_error = '//*[@id="proxy-_AppOperate_Home_App_anonymousComponent"]//div[@class="el-form-item__error"]' Object_Application_create_limit_error = '//*[@id="proxy-_AppOperate_Home_App_anonymousComponent"]//div[@class="el-form-item__error"]' @@ -445,9 +460,9 @@ User_defined_edit_button = listPage_object_signature_editButton_posId #Edit_signature_remove_first_condition = '//div[@id="hijackAddContentType"]/div[2]/div/div[2]/div/div[2]/i[2]' #Edit Signature页面移除第一行condition按钮xpath路径 User_defined_edit_signature_create_ip_ok = '//*[@id="OK-_IpDetail_orConditionSideslip_ElFormItem_AttributeType_ElForm_anonymousComponent_VDraswer_ApplicationSignaturesAdd_Home_App_anonymousComponent"]' #user_define页面的创建ip时的保存ok按钮路径 User_defined_edit_signature_create_fqdn_ok = '//*[@id="OK-_FqdnDetail_orConditionSideslip_ElFormItem_attribute-type_ElForm_anonymousComponent_VDraswer_ApplicationSignaturesAdd_Home_App_anonymousComponent"]'#user_define页面的创建fqdn时的保存ok按钮路径 -Edit_Ip_input = '//input[@placeholder="Please enter the content" and @value-key="label"]' -Edit_Ip_input_save_xpath = '//*[@class="operate-icon iconfont icon-save check"]' -Edit_Ip_OK = '//*[@id="OK-_IpDetail_Home_App_anonymousComponent"]' +Edit_Ip_input = '//input[@class="MuiAutocomplete-input css-1lv7pyi"]' +Edit_Ip_input_save_xpath = '//*[@class="operate-icon iconfont icon-save"]' +Edit_Ip_OK = '//*[@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"]' Edit_Ip_OK_confirm_yes = '(//div[@class="el-message-box__btns"]/button)[2]' Edit_fqdn_button = '//*[@id="appEdit-_OperateBtns_ElRow_Objects_fqdn_Home_App_anonymousComponent"]//p[@class="text-content text"]' Edit_fqdn_clear_first_condition = '//*[@class="operate-icon iconfont icon-Delete_X del"]' @@ -463,17 +478,17 @@ app_signature_attribute_new_fqdn_select_fqdn_button='(//*[@class="el-dropdown-me app_signature_attribute_new_fqdn_name_button='(//*[@class="el-form-item__content"]//input[@placeholder="Please enter the content"])[3] ' app_signature_attribute_new_fqdn_item_content_button=Edit_fqdn_items_input -Applications_create_check_send_Tcp_reset = '(//*[@id="proxy-_AppOperate_Home_App_anonymousComponent"]//span[@class="el-checkbox__inner"])[1]' +Applications_create_check_send_Tcp_reset = '//div[@class="application-object-send_tcp_reset"]//input' Applications_create_default_packet = Object_Application_create_drop_input_xpath -Applications_create_check_send_ICMP_reset ='(//div[@class="denyAction"]//span[@class="el-checkbox__inner"])[2]' -Applications_create_rate_limiting = '//*[@id="Rate-limitingrate_limit"]/span' +Applications_create_check_send_ICMP_reset ='//div[@class="application-object-send_icmp_unreachable"]//input' +Applications_create_rate_limiting = '//button[@class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-lastButton css-5ve3fi"]' Applications_create_rate_limiting_input = Object_Application_create_drop_input_xpath -Applications_create_Drop_button = '//*[@id="Dropdrop"]/span' +Applications_create_Drop_button = '//*[text()="Drop"]' Admin_application = '//*[@id="Application_applications"]/a' Admin_application_edit_button = '//*[@id="appEdit-_OperateBtns_ElCol_ElRow_Application_Home_App_anonymousComponent"]//p[@class="text-content text"]' -Applications_total_page = '//*[@id="pagination-_pagination_AppTable_Application_Home_App_anonymousComponent"]/span' -Applications_category_collaboration = '(//*[@id="security-content"]//div[@class="item-value el-row"])[1]' -Applications_clear_filters = '//*[@id="filter_btn-_Application_Home_App_anonymousComponent"]/span' +Applications_total_page = '(//div[@class="flex-1"]//span[@class="text-textColor"])[1]' +Applications_category_collaboration = '//div[@data-viewport-type="element"]//span[text()="business-systems"]' +Applications_clear_filters = '//span[@class="action-refresh inline-flex mr-[8px] "]/button' Applications_row = '//table/tbody/tr[{}]/td[2]/div/div' #application主页面各行xpath路径 Applications_export_button = '//*[@class="iconfont icon-export"]' #Applications主页面导出按钮xpath路径 Applications_export_select_box = '(//*[@class="el-dialog__body"]//span[@class="el-checkbox__input is-checked"]/span)[{}]' #导出页面勾选框xpath路径 diff --git a/page_element/objects_element_position.py b/page_element/objects_element_position.py index 01d7ba62..e1f1084e 100644 --- a/page_element/objects_element_position.py +++ b/page_element/objects_element_position.py @@ -12,7 +12,13 @@ listpage_select_second_object_posXpath = '(//span[@class="MuiCheckbox-root MuiCh listpage_no_data_posXpath = '//div[@class="MuiDataGrid-overlay css-14349d1"]' #列表页No Data按钮!!!!! listpage_reference_count_posXpath = '(//button[@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"])[1]' #列表中第一个元素的reference count!!!!! listpage_first_row_name_posXpath = '(//span[@class="truncate"])[1]' #第一行nameXpath!!!!! - +listpage_delete_no_posXpath = '//button[@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 css-ki6aok"]' +listpage_export_yes_button_posXpath = '//button[@class="MuiButtonBase-root MuiButton-root MuiLoadingButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiLoadingButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-1k1ho7l"]' +listPage_objectSearch_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" #查询Name +listPage_objectSearch_select_Details_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" #查询Details +listPage_objectSearch_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" #查询Description +listPage_object_Select_createButton_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" +listPage_objectGroup_Select_createButton_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" # login page 登录页面 loginPage_userName_posName = "username" @@ -227,8 +233,8 @@ ObjectDetailPage_audit_log_compare_time_posXpath = "//div[@class='compare-code-b ObjectDetailPage_audit_log_compare_user_posXpath = '//div[contains(text(),"User")]/following-sibling::div' ObjectDetailPage_audit_log_cancel_posXpath = "//div[@class='paper-right-content']//span[normalize-space(text())='Close']" # Group Object详情页通用元素 -groupObjectDetailPage_addSubObjecDrawer_searchInput_posXpath = '//div[@class="right-menu-content"]//div[contains(@class,"list-box")]//*[@id="object_ip_search"]' # Group 详情页添加sub Object的侧滑页面中的搜索框 -groupObjectDetailPage_addSubObjecDrawer_totalText_posXpath = '//div[@class="right-menu-content"]//div[contains(@class,"list-box")]//*[contains(@class,"total positionAbsolute")]' # Group 详情页添加sub Object的侧滑页面中的Total文本 +groupObjectDetailPage_addSubObjecDrawer_searchInput_posXpath = '//div[@class="MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd action-search css-7jfc5c"]/input' # Group 详情页添加sub Object的侧滑页面中的搜索框 +groupObjectDetailPage_addSubObjecDrawer_totalText_posXpath = '//div[@class="px-[12px] pb-[4px] pt-[2px] text-[--color-text-disabled]"]' # Group 详情页添加sub Object的侧滑页面中的Total文本 groupObjectDetailPage_addSubObjecDrawer_firstSubObject_posXpath = '(//div[@class="right-menu-content"]//div[contains(@class,"list-box")]//ul[@class="row-container tableList"]/li)[1]' # Group 详情页添加sub Object的侧滑页面中第一个sub object groupObjectDetailPage_subordinateObjects_search_posXpath = "//div[@data-desc='subObject']//input[@id='object_ip_search']" @@ -291,7 +297,7 @@ mobileIdentitiesObjectPage_Import_Mobile_Identity_files_error_format_posXpath = main_Import_Mobile_Identity_files_error_type_posXpath = "//div[@class='MuiFormHelperText-root css-koslx8']" # 错误类型提示语 main_Import_Mobile_Identity_files_item_error_posXpath = '//div/div/div[1]/div[2]/form/div[3]/div/div/div[2]/span' # 错误item提示语 mobileIdentitiesObjectPage_Import_Mobile_Identity_files_error_type_posXpath = main_Import_Mobile_Identity_files_error_type_posXpath # mobile identities 错误弹出提示语 -main_ObjectPage_import_files_error_type_posXpath = "//div[@class='MuiFormHelperText-root css-3m9sla']" # 错误弹出提示语 +main_ObjectPage_import_files_error_type_posXpath = mobileIdentitiesObjectPage_Import_Mobile_Identity_files_error_type_posXpath # 错误弹出提示语 main_ObjectPage_import_files_error_format_posXpath = mobileIdentitiesObjectPage_Import_Mobile_Identity_files_error_format_posXpath # 导入文件格式错误提示语 # 置灰按钮 mobileIdentitiesObjectPage_Export_Mobile_Identity_Button_posXpath = '//button[@id="objectExport-_importAndExport_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"][@disabled="disabled"]/i' # 导出按钮置灰 @@ -315,16 +321,16 @@ mobileIdentitiesObjectPage_Import_Mobile_Identity_Group_files_OK_Button_posXpath # Object Mobile Identities===================Object Mobile Identities====================Object Mobile Identities=================Object Mobile Identities=======================Object Mobile Identities=================Object Mobile Identities # 查询框输入并选择 listPage_objectSearch_mobileIdentities_select_Id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' -listPage_objectSearch_mobileIdentities_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" -listPage_objectSearch_mobileIdentities_select_Details_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" -listPage_objectSearch_mobileIdentities_select_subType_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Sub Type']" -listPage_objectSearch_mobileIdentities_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" +listPage_objectSearch_mobileIdentities_select_Name_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' +listPage_objectSearch_mobileIdentities_select_Details_posXpath = '//li[@id="6-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' +listPage_objectSearch_mobileIdentities_select_subType_posXpath = '//li[@id="3-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' +listPage_objectSearch_mobileIdentities_select_Description_posXpath = '//li[@id="4-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' listPage_objectSearch_mobileIdentities_select_CreateBy_posXpath = '//*[@id="5-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' mobileIdentities_listPage_object_searchId_posId = '1-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent' listPage_objectSearch_mobileIdentities_buttonSearch_posId = mainPage_ObjectSearch_buttonSearch_posId # 查询按钮id listPage_objectSearch_mobileIdentities_buttonClear_posId = mainPage_ObjectSearch_buttonClear_posId # 清空查询按钮id -listPage_object_mobileIdentities_create_Mobile_Identity_Button_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" # 创建Mobile Identity -listPage_object_mobileIdentities_create_Mobile_Identity_Group_Button_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" # 创建Mobile Identity_Group +listPage_object_mobileIdentities_create_Mobile_Identity_Button_posId = "object0-_OperateBtns_ElRow_Objects_mobile_identity_Home_App_anonymousComponent" # 创建Mobile Identity +listPage_object_mobileIdentities_create_Mobile_Identity_Group_Button_posId = "object1-_OperateBtns_ElRow_Objects_mobile_identity_Home_App_anonymousComponent" # 创建Mobile Identity_Group listPage_profileSearch_mobileIdentities_dropDown_item_posXpath = "" # 下拉菜单定位 listPage_profileSearch_mobileIdentities_input_itemContent_posXpath = "" # 输入item的值,replaceName替换实际查询值 @@ -344,7 +350,7 @@ listPage_object_mobileIdentities_new_Description_extract_posXpath = '//table/tbo listPage_object_mobileIdentities_new_Details_extract_posXpath = '//table/tbody/tr[1]/td[4]/div/div/div/div/div/div/span' # 提取Detail listPage_object_mobileIdentities_del_after_ele_posXpath = '//div[@id="ly-table1-listcontent"]/div/div[3]/div/span' # 删除后提示"No Data" # Mobile_Identities list page 列表页操作 -listPage_object_mobileIdentities_select_First_object_posXpath = listPage_select_first_object_posXpath # 选择列表中第一个对象 +listPage_object_mobileIdentities_select_First_object_posXpath = '//table/tbody/tr[1]/td[1]/div/div/div[1]/div/label/span[1]/span' # 选择列表中第一个对象 listPage_object_mobileIdentities_select_Second_object_posXpath = main_listPage_object_reference_count_posXpath # 选择列表中第二个对象 @@ -356,7 +362,7 @@ mobileIdentitiesObjectPage_button_addItem_posXpath = mainPage_ObjectSearch_butto mobileIdentitiesObjectPage_button_inputItem_posId = mainPage_ObjectSearch_input_Item_posId # 输入item内容 mobileIdentitiesObjectPage_button_inputItem_posXpath = "//input[@class='MuiInput-input css-1u0jcuo']" -mobileIdentitiesObjectPage_content_inputItem1_posId = "(//div[@data-testid='virtuoso-item-list']//div[@class='h-[100%] min-h-[24px] flex items-center'])[1]" # 第一行输入item的内容 +mobileIdentitiesObjectPage_content_inputItem1_posId = "//div[@class='item-box']//span[@class='el-tooltip content-show']/span" # 第一行输入item的内容 mobileIdentitiesObjectPage_IMSI_button_Save_Item_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 创建保存item按钮 mobileIdentitiesObjectPage_IMSI_button_Edit_Save_Item_posXpath = '//div[@class="item-box"]//i[contains(@class,"icon-save")]' # 编辑保存item按钮 @@ -366,21 +372,20 @@ mobileIdentitiesObjectPage_IMSI_button_Edit_assert_first_Item_count_posXpath = " mobileIdentitiesObjectPage_sub_Phone_Number_button_Edit_assert_first_Item_count_posXpath = "//div[@class='CommonSubObjects']/div[2]/div[2]" # sub Phone_Number<断言>新增item的个数 mobileIdentitiesObjectPage_radioButton_phone_number_posId = "Phone Numberphone_number" # Phone Number单选按钮id -mobileIdentitiesObjectPage_radioButton_phone_number_posXpath = "//div[@class='mobile-identity-object-sub_type']//button[text()='Phone Number']" +mobileIdentitiesObjectPage_radioButton_phone_number_posXpath = "//button[@class='MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-middleButton css-5ve3fi']" mobileIdentitiesObjectPage_Phone_Number_button_Save_phone_number_Item_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 保存item按钮 mobileIdentitiesObjectPage_Phone_Number_button_inputItem_posXpath = "//input[@class='MuiInput-input css-1u0jcuo']" # 输入Phone_item内容 mobileIdentitiesObjectPage_Phone_Number_button_input_more_Item_posXpath = "(//input[@class='MuiInput-input css-1u0jcuo'])['replace']" # 输入Phone_item内容 多次输入 -mobileIdentitiesObjectPage_Phone_Number_button_add_Item_input_posXpath = "//div[@class='mobile-identity-object-expression']//i[@class='iconfont icon-Create1 font-[700]']" - +mobileIdentitiesObjectPage_Phone_Number_button_add_Item_input_posXpath = '//div[@class="addobjewidth300px addobject-long-list obj-content-null cursorPointer borderColor add-btn"]' mobileIdentitiesObjectPage_radioButton_IMEI_posId = "IMEIimei" # IMEI单选按钮id -mobileIdentitiesObjectPage_radioButton_IMSI_posXpath = "//div[@class='mobile-identity-object-sub_type']//button[text()='IMEI']" -mobileIdentitiesObjectPage_IMEI_button_inputItem_posXpath = "//input[@class='MuiInput-input css-1u0jcuo']" +mobileIdentitiesObjectPage_radioButton_IMSI_posXpath = "//button[@class='MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-lastButton css-5ve3fi']" +mobileIdentitiesObjectPage_IMEI_button_inputItem_posXpath = "//div[@class='MuiBox-root css-1krxo6z']//input[@class='MuiInput-input css-1u0jcuo']" mobileIdentitiesObjectPage_IMEI_button_Save_Item_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 保存item按钮 mobile_Identities_ObjectPage_button_editgroup_posXpath = "//i[@class='row-edit iconfont icon-Edit cursor fontsize18']" # object group组 item编辑按钮 mobileIdentitiesObjectPage_textArea_Description_posXpath = "//div[@class='MuiTextarea-root MuiTextarea-variantOutlined MuiTextarea-colorNeutral MuiTextarea-sizeMd MuiTextarea-formControl css-v35t8h']/textarea[1]" # description文本输入区Xpath -mobileIdentitiesObjectPage_button_SaveYes_posXpath = "//div[@class='form-action bg-[--color-background] flex justify-center py-[12px] absolute bottom-0 w-full']//button[text()='OK']" # OK按钮 +mobileIdentitiesObjectPage_button_SaveYes_posXpath = "//button[@id='OK-_mobileIdDetail_Home_App_anonymousComponent']/span" # OK按钮 mobileIdentitiesObjectPage_button_warningSaveYes_posXpath = "//div[@class='el-message-box__wrapper']/div/div[3]/button[2]/span" # 提示保存ok按钮警告框 mobileIdentitiesObjectPage_button_warningSaveCancel_posCss = '//div[@class="el-message-box__wrapper"]/div/div[3]/button[1]/span' # 提示保存取消按钮警告框 mobileIdentitiesObjectPage_button_cancel_posXpath = "//button[@id='Cancle-_mobileIdDetail_Home_App_anonymousComponent']/span" # Cancel按钮 @@ -436,13 +441,13 @@ listPage_object_urls_delButton_posXpath = listpage_delete_button_posXpath # Del url_listPage_deleteButton_posId = 'appDel-_OperateBtns_ElRow_Objects_url_Home_App_anonymousComponent' # Delete 按钮id url_listPage_first_row_checkBox_posXpath = '(//td[@rowspan="1"and @colspan="1"]//span[@class="el-checkbox__inner"])[1]' # 列表页第一行对象多选框Xpath # listPage_object_urls_columnSetting_descriptionOption_posXpath = '//ul[@class="col-choose open"]//span[text()="Description"]' # 列设置中的description选项元素Xpath -listPage_object_urls_columnSetting_descriptionOption_posXpath = '//li[contains(@id,"dropColRes-_ElementSet")]//span[normalize-space(text())="Description"]' # 列设置中的description选项元素Xpath +listPage_object_urls_columnSetting_descriptionOption_posXpath = '//span[normalize-space(text())="Description"]' # 列设置中的description选项元素Xpath listPage_object_urls_tableDetails_posXpath = '//div[@class="el-table__header-wrapper"]//span[contains(text(),"Details")]' # list表头 Details列Xpath # listPage_object_urls_tableDetails_selected_detailsRow_posXpaths = '//span[@class="el-checkbox__input is-checked"]/ancestor::tr//div[@class="itemDetails cursor"]/span' # list页被选中的对象details 值Xpath # listPage_object_urls_tableDetails_selected_detailsRow_posXpaths = '//span[@class="el-checkbox__input is-checked"]/ancestor::tr//div[@class="itemDetails cursor"]/..' # list页被选中的对象details 值Xpath listPage_object_urls_tableDetails_selected_detailsRow_posXpaths = '//span[@class="el-checkbox__input is-checked"]/ancestor::tr//div[@class="itemDetails cursor"]' # list页被选中的对象details 值Xpath -listPage_object_urls_tableDetails_detailsRow_firstDetailValue_posXpaths = '(//div[@class="itemDetails cursor"][1]/span)[1]' # 列表页某行第一个details值 Xpath -listPage_object_urls_tableDetails_selected_checkBox_posXpaths = '//div[@class="ly-table1"]//span[@class="el-checkbox__input is-checked"]' # list页被选中的对象 CheckBox Xpath +listPage_object_urls_tableDetails_detailsRow_firstDetailValue_posXpaths = '(//div[@class="DuneTableCellContent text-textColor css-ruuyc6"])[1]' # 列表页某行第一个details值 Xpath +listPage_object_urls_tableDetails_selected_checkBox_posXpaths = '//input[@aria-checked="true"]' # list页被选中的对象 CheckBox Xpath listPage_object_urls_tableDetails_firstRowValues_span_posXpaths = '//li[@class="row el-dropdown-menu__item"]//span[@class="ellipsis list-popover"]' # list页点击Details后展示的数据Xpaths_span listPage_object_urls_tableDetails_firstRowValues_div_posXpaths = '//li[@class="row el-dropdown-menu__item"]//div[@class="row-content-cell"]' # list页点击Details后展示的数据Xpaths_div listPage_object_urls_importButton_posXpath = '//div[@class="ly-tablecontrol-1 el-row"]//div[@class="functional"]//i[@class="iconfont icon-Import"]' # 导入文件按钮 Xpath @@ -450,7 +455,7 @@ listPage_object_urls_exportButton_posXpath = '//button[contains(@class,"importAn listPage_object_urls_exportPopYes_posXpath = '//div[@class="el-dialog__wrapper"]/div[@aria-label="Export"]//span[contains(text(),"Yes")]' # 导出数据选择确认弹窗 yes Xpath listPage_object_urls_exportPopNo_posXpath = '//div[@class="el-dialog__wrapper"]/div[@aria-label="Export"]//span[contains(text(),"No")]' # 导出数据选择确认弹窗 no Xpath listPage_object_urls_exportPopSelectAll_posXpath = '//div[@class="el-table__header-wrapper"]//span[@class="el-checkbox__inner"]' # 导出数据选择确认弹窗全选CheckBox Xpath -listPage_object_urls_exportPopCheckbox_posXpaths = '//div[@class="el-dialog__body"]//div[@class="el-table__body-wrapper is-scrolling-none"]//span[@class="el-checkbox__inner"]' # 导出数据选择确认弹窗CheckBox(多个) +listPage_object_urls_exportPopCheckbox_posXpaths = '(//div[@class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthSm css-xguxzj"]//input[@class="MuiCheckbox-input css-1jj0cvj"])[2]' # 导出数据选择确认弹窗CheckBox(多个) listPage_object_urls_exportPopCheckbox_posXpaths_template = '(//div[@class="el-dialog__body"]//div[@class="el-table__body-wrapper is-scrolling-none"]//span[@class="el-checkbox__inner"])[{}]' # 导出数据选择确认弹窗CheckBox(多个) listPage_object_urls_clearCounterPopYes_posXpath = '//*[contains(text(),"Confirm to Clear Counter")]/../..//span[contains(text(),"Yes")]' # Clear Counter 选择确认弹窗中的Yes确认按钮 # listPage_object_urls_tableCheckbox_posXpaths = '//table[@class="el-table__body"]//span[@class="el-checkbox__inner"]' # 列表页CheckBox(50) @@ -488,7 +493,7 @@ listPage_object_tableCheckbox_localVsysAndReferenceEqualO_objectOrGroup_posXpath listPage_object_urls_tableCheckbox_localVsys_firstObjectOrGroup_posXpath = '(//*[contains(@class,"table-status-item-id")]/preceding-sibling::div[2][not(*)]/ancestor::tr//span[@class="el-checkbox__inner"])[1]' # 列表页中第一个本Vsys的Object 或Group(不包含其他Vsys) url_listPage_usage_policies_elems_posXpaths = "//div[contains(@class,'LocalationDraswer ')]//div[contains(@class,'el-dropdown-menu')]" # 点击Reference count后展开的侧滑页面,其中的引用条数 -url_listPage_noDataText_posXpath = '//div[@class="ly-table1"]//span[@class="el-table__empty-text"]' # 列表页无数据时的no data文本 Xpath +url_listPage_noDataText_posXpath = '//*[@class="MuiDataGrid-overlay css-14349d1"]' # 列表页无数据时的no data文本 Xpath # listPage->Tips dialog 列表页 tips对话框 listPage_object_urls_button_yes_posCss = 'body>.el-dialog__wrapper .delComponents-ok span' # 删除提示的Tips的yes按钮Xpath url_listPage_object_delete_yesButton_posCss = 'body>.el-dialog__wrapper .delComponents-ok span' # 删除提示的Tips的yes按钮Xpath @@ -505,7 +510,7 @@ listPage_object_urls_searchCreatedBy_posId = '5-_FilteredSearch_ElRow_Objects_ur # URLs对象详情页 url_ObjectDetailPage_nameInput_posXpath = '//input[@class="MuiInput-input css-fqt4w4"]' # Name输入框Xpath -url_ObjectDetailPage_nameLenthNumber_posXpath = '//*[@class="VEditPanel"]//*[@class="biFangNameLength-length"]' # Name输入框中字符长度数值Xpath +url_ObjectDetailPage_nameLenthNumber_posXpath = '//span[@class="flex items-center text-[var(--color-text-disabled)]"]' # Name输入框中字符长度数值Xpath url_ObjectDetailPage_addButton_posXpath = "//i[@class='iconfont icon-Create1 font-[700]']" # “+”按钮id url_ObjectDetailPage_itemsText_posXpath = '//div[@class="ItemRow infinite-list-item" and not(@style)]//div[@class="item-box"]//span[not(@class)]' # Items 列表下所有Item的文本元素 url_ObjectDetailPage_item_subAddButton_poXpath = "//div[@class='account-object-expression']//i[@class='iconfont icon-Create1 font-[700]']" # 单个Item中新增多条数据的"+"按钮 @@ -525,7 +530,7 @@ url_ObjectDetailPage_auditLogs_posXpath = '//div[@class="audit_log"]/span' # Au url_ObjectDetailPage_auditLogsDrawer_firstRowLog_checkBox_posXpath = '(//div[@class="LocalationDraswer lstsub right-show-edit right-show-edit-other"]//table[@class="el-table__body"]//span[@class="el-checkbox__input"])[1]' # Audit Logs 侧滑页第一条日志CheckBox Xpath url_ObjectDetailPage_auditLogsDrawer_compareButton_posXpath = '//div[@class="LocalationDraswer lstsub right-show-edit right-show-edit-other"]//button[contains(@id,"test-compare-_")]' # Audit Logs 侧滑页Compare 按钮Xpath url_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath = '//div[contains(text(),"Operation")]/following-sibling::div' # Audit Logs 侧滑页点击Compare后的 operation text Xpath -url_ObjectDetailPage_itemsTotal_posXpath = '(//div[@class="panel-content"]//div[contains(@class,"total")])[1]' # 详情页Items Total Xpath +url_ObjectDetailPage_itemsTotal_posXpath = '(//div[@class="flex-1 flex items-center justify-center undefined"]/span)[1]' # 详情页Items Total Xpath url_ObjectDetailPage_importFromFile_posXpath = "//button[@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 css-bc4t0x']" # Import From File 按钮Xpath url_ObjectDetailPage_importFromFile_button_posXpath = "//button[@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 css-bc4t0x']" # Import From File 按钮Xpath # url_ObjectDetailPage_pleaseUpload_posXpath = '//span[contains(text(),"Please Upload")]/../../input' # Please Upload input标签Xpath @@ -570,7 +575,6 @@ urlGroup_ObjectDetailPage_editgroup_posXpath = "//i[@class='row-edit iconfont ic url_ObjectDetailPage_okButton_posId = 'OK-_URLDetail_Home_App_anonymousComponent' # “OK”按钮id url_ObjectDetailPage_okButton_posXpath = "//button[@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']" url_ObjectDetailPage_cancelButton_posId = 'Cancle-_URLDetail_Home_App_anonymousComponent' # “Cancel”按钮id -url_ObjectDetailPage_cancelButton_posXpath = "//button[@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']" url_ObjectDetailPage_okButton_yes_posXpath = '//div[@class="el-message-box__btns"]//button[contains(@class,"operation-confirm")]' # 确认弹窗的“Yes”按钮 url_ObjectDetailPage_okButton_cancel_posXpath = '//div[@class="el-message-box__btns"]//button[contains(@class,"operation-cancel")]' # 确认弹窗的“Cancel”按钮 urlGroup_ObjectDetailPage_excludeTotal_posXpath = '//div[@class="panel-content"]//div[contains(@class,"total")]' # Group 详情页 exclude obj Total Xpath @@ -616,8 +620,8 @@ listPage_objectSearch_ip_address_buttonSearch_posXpath = listpage_search_button_ # main_Export_ObjectPage_Button_posXpath = '//div/button[contains(@class,"Export")]/i' # 导出按钮 main_Export_ObjectPage_Button_posXpath = "//button[@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-epitc3']" # 导出按钮 listPage_objectSearch_ip_address_buttonClear_posId = mainPage_ObjectSearch_buttonClear_posId # 清空查询按钮id -listPage_object_ip_address_create_ip_address_Button_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" # 创建IP Address -listPage_object_ip_address_create_ip_address_Group_Button_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" # 创建IP Address_Group +listPage_object_ip_address_create_ip_address_Button_posId = 'object0-_OperateBtns_ElRow_Objects_ip_Home_App_anonymousComponent' # 创建IP Address +listPage_object_ip_address_create_ip_address_Group_Button_posId = "object1-_OperateBtns_ElRow_Objects_ip_Home_App_anonymousComponent" # 创建IP Address_Group listPage_profileSearch_ip_address_dropDown_item_posXpath = "" # 下拉菜单定位 listPage_profileSearch_ip_address_input_itemContent_posXpath = "" # 输入item的值,replaceName替换实际查询值 @@ -639,7 +643,7 @@ listPage_First_object_Name_posXpath = "//div[@class='MuiDataGrid-virtualScroller listPage_First_object_Description_posXpath = "//div[@class='MuiDataGrid-virtualScrollerRenderZone css-1inm7gi']/div[2]//div[@data-field='description']" listPage_Second_object_ID_posXpath = "(//*[@id='ly-table1-listcontent']//div[@class='table-status-item-id'])[2]" # Create IP Address Object 和 Edit IP Address Object 新增和编辑页 -ip_addressObjectPage_input_Name_posXpath = "//div[@class='ip-object-name']//input" # name输入框Xpath +ip_addressObjectPage_input_Name_posXpath = "//div[@class='MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-uzf287']//input" # name输入框Xpath ip_addressObjectPage_radioButton_IP_posId = "IPendpoint" # IP单选按钮id ip_addressObjectPage_input_searchFor_posId = mainPage_ObjectSearch_buttonSearch_Item_posId # search for item搜索输入框id ip_addressObjectPage_button_addItem_posId = mainPage_ObjectSearch_buttonAddItem_posId # 添加item按钮id @@ -659,8 +663,8 @@ ip_addressObjectPage_radioButton_Geography_Select_replace = '//div[4]/div//div[2 ip_addressObjectPage_radioButton_Geography_Select_Asia_China = '//div[4]/div/div//div[3]/div[2]/div[8]/div/label/span/span' # countryRegion选择2中国 ip_addressObjectPage_radioButton_IP_learning_posId = "IP Learningip_learning" # IP Learning单选按钮id -ip_addressObjectPage_radioButton_IP_learning_posXpath = "//div[@class='ip-object-sub_type']//button[text()='IP Learning']" -ip_addressObjectPage_IP_learning_inputItem_posXpath = "//div[@class='ip-object-from_fqdns']//input[@class='MuiInput-input css-1u0jcuo']" # IP Learning中Item输入 +ip_addressObjectPage_radioButton_IP_learning_posXpath = "//button[@class='MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-lastButton css-5ve3fi']" +ip_addressObjectPage_IP_learning_inputItem_posXpath = "//div[@class='MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-grqzrl']/input" # IP Learning中Item输入 ip_addressObjectPage_button_Save_Item_posXpath = '//i[@class="operate-icon iconfont icon-save"]' # 保存item按钮 ip_address_Geography_list_first_ele_posXpath = '//div[@role="group"][@aria-expanded="true"]/div[1]/div/label/span' # Geography所选列表下第一个元素 @@ -673,7 +677,7 @@ ip_addressObjectPage_button_Input_Aging_Times_posXpath = "//div[@class='ip-objec ip_addressObjectPage_button_Input_Vote_Clients_Number_posXpath = "//div[@class='ip-object-vote_client_num']/div/input" # Vote Clients Number输入框 ip_addressObjectPage_button_Input_Learned_IP_Limits_posXpath = "//div[@class='ip-object-goal_upper_limit']/div/input" # Learned IP Limits 输入框 -ip_addressObjectPage_textArea_Description_posXpath = "//div[@class='ip-object-description']//textarea[1]" # description文本输入区Xpath +ip_addressObjectPage_textArea_Description_posXpath = "//div[@class='MuiTextarea-root MuiTextarea-variantOutlined MuiTextarea-colorNeutral MuiTextarea-sizeMd MuiTextarea-formControl css-v35t8h']/textarea[1]" # description文本输入区Xpath ip_addressObjectPage_button_OK_posXpath = "//button[@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']" # Group保存主页面OK按钮 ip_addressObjectPage_button_SaveYes_posXpath = '//button[@id="OK-_IpDetail_VDraswer_EditDraw_IpDetail_Home_App_anonymousComponent"]/span' # Group引用创建OK按钮 @@ -684,7 +688,7 @@ ip_addressObjectPage_button_cancel_posCss = "//button[@id='Cancel-_IpDetail_Home # Create IP Address Group Object 和 Edit Create IP Address Group 新增和编辑页 ip_address_Group_sub_Object_addButton_posXpath = "//div[@class='ip-object-included_sub_object_uuids']" # ip_address_Group添加sub Object按钮 ip_address_Group_sub_Object_add_new_Button_posXpath = "//i[@class='iconfont icon-Create1']" # 新建sub_ip_address按钮 -ip_address_Group_sub_Object_add_new_Select_one_Button_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-131n2dh']//li[1]" # 新建选择ip_address按钮 +ip_address_Group_sub_Object_add_new_Select_one_Button_posXpath = "//ul[@x-placement='bottom-start']/li[1]" # 新建选择ip_address按钮 ip_address_Group_sub_Object_edit_subObject_Button_posXpath = "//i[@class='row-edit iconfont icon-Edit cursor fontsize18']" # 编辑group 下的object 按钮 ip_address_Group_sub_Object_add_new_Select_Group_Button_posXpath = "//ul[@x-placement='bottom-start']/li[2]" # 新建选择ip_address_Group按钮 ip_address_Group_sub_Object_add_new_one_inputName_posXpath = "//div[@class='MuiBox-root css-1krxo6z']//div[@class='ip-object-name']//input" # new ip_address input Name @@ -694,7 +698,7 @@ ip_address_ObjectDetailPage_okButton_yes_posXpath = url_ObjectDetailPage_okButto # ================= Geography =============== Geography================= Geography =============== Geography================= Geography =============== Geography================= Geography =============== Geography ip_address_Group_sub_Object_add_new_addphoneNumber_item_inputName_posXpath = '//form/div[4]/div[1]/div/div/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div[1]/div/input' # new PhoneNumber inputItemName ip_address_Group_sub_Object_add_new_addIMEI_item_inputName_posXpath = '//input[@id="onlyMarvel"]' # new IMEI inputItemName -ip_address_Group_sub_Object_add_new_add_itemIP_Save_Button_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 保存item按钮 +ip_address_Group_sub_Object_add_new_add_itemIP_Save_Button_posXpath = "//i[@class='operate-icon iconfont icon-save check']" # 保存item按钮 ip_address_Group_sub_Object_add_new_one_OK1_Button_posXpath = "//div[@class='MuiBox-root css-1krxo6z']//button[@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']" # new ip_address CreateOK1 ip_address_Group_sub_Object_add_new_one_OK1_Warning_Yes_Button_posXpath = "//div[@class='el-message-box__btns']//span[normalize-space(text())='Yes']" # 再次确认创建new ip_address @@ -714,20 +718,20 @@ listPage_object_FQDNs_createButton_posXpath = listPage_object_ip_address_createB listPage_object_FQDNs_editButton_posXpath = listPage_object_ip_address_editButton_posXpath # edit按钮id listPage_object_FQDNs_delButton_posXpath = listPage_object_ip_address_delButton_posXpath # del按钮id listPage_object_FQDNs_del_disabled_Button_posXpath = '//button[@class="el-button topicCol-btn el-button--default el-button--small is-disabled"][@disabled="disabled"]' # FQDN删除按钮置灰 -listPage_object_FQDNs_del_yes_Button_posXpath = listPage_object_ip_address_del_yes_Button_posXpath # del_yes按钮 +listPage_object_FQDNs_del_yes_Button_posXpath = '//div/div[@aria-label="Tips"]/div[3]/span/button[1]/span' # del_yes按钮 listPage_objectSearch_FQDNs_selectLabel_posXpath = listpage_search_box_posXpath # 查询框id listPage_object_FQDNs_viewButton_posId = "//button[@id='appEdit-_OperateBtns_ElRow_Objects_fqdn_Home_App_anonymousComponent']//p[normalize-space(text()) = 'View']" # 查询框输入并选择 listPage_objectSearch_FQDNs_select_Id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_Objects_fqdn_Home_App_anonymousComponent"]' # 查询ID -listPage_objectSearch_FQDNs_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" # 查询Name -listPage_objectSearch_FQDNs_select_Details_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" # 查询Details -listPage_objectSearch_FQDNs_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" # 查询Description +listPage_objectSearch_FQDNs_select_Name_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_fqdn_Home_App_anonymousComponent"]' # 查询Name +listPage_objectSearch_FQDNs_select_Details_posXpath = '//li[@id="6-_FilteredSearch_ElRow_Objects_fqdn_Home_App_anonymousComponent"]' # 查询Details +listPage_objectSearch_FQDNs_select_Description_posXpath = '//li[@id="4-_FilteredSearch_ElRow_Objects_fqdn_Home_App_anonymousComponent"]' # 查询Description listPage_objectSearch_FQDNs_select_CreateBy_posXpath = '//*[@id="5-_FilteredSearch_ElRow_Objects_fqdn_Home_App_anonymousComponent"]' # 查询CreateBy listPage_objectSearch_FQDNs_buttonSearch_posId = mainPage_ObjectSearch_buttonSearch_posId # 查询按钮id listPage_objectSearch_FQDNs_buttonClear_posId = mainPage_ObjectSearch_buttonClear_posId # 清空查询按钮id -listPage_object_FQDNs_create_FQDNs_Button_posXpath = listPage_object_ip_address_create_ip_address_Button_posXpath # 创建FQDNs -listPage_object_FQDNs_create_FQDNs_Group_Button_posXpath = listPage_object_ip_address_create_ip_address_Group_Button_posXpath # 创建FQDNs Group +listPage_object_FQDNs_create_FQDNs_Button_posId = 'object0-_OperateBtns_ElRow_Objects_fqdn_Home_App_anonymousComponent' # 创建FQDNs +listPage_object_FQDNs_create_FQDNs_Group_Button_posId = "object1-_OperateBtns_ElRow_Objects_fqdn_Home_App_anonymousComponent" # 创建FQDNs Group listPage_profileSearch_FQDNs_dropDown_item_posXpath = "" # 下拉菜单定位 listPage_profileSearch_FQDNs_input_itemContent_posXpath = "" # 输入item的值,replaceName替换实际查询值 @@ -742,18 +746,19 @@ listPage_object_FQDNs_new_Description_extract_posXpath = '//table/tbody/tr[1]/td listPage_object_FQDNs_new_Details_extract_posXpath = '//table/tbody/tr[1]/td[4]/div/div/div/div/div/div/span' # 提取Detail listPage_object_FQDNs_del_after_ele_posXpath = '//div[@id="ly-table1-listcontent"]/div/div[3]/div/span' # 删除后提示"No Data" # FQDNs list page 列表页操作 -listPage_object_FQDNs_select_First_object_posXpath = listPage_object_ip_address_select_First_object_posXpath # 选择列表中第一个对象 +listPage_object_FQDNs_select_First_object_posXpath = '//table/tbody/tr/td[1]/div/div/div[1]/div/label/span[1]/span' # 选择列表中第一个对象 FQDNs_listPage_object_searchId_posId = '1-_FilteredSearch_ElRow_Objects_fqdn_Home_App_anonymousComponent' # ID 搜索 # Create FQDNs Object 和 Edit FQDNs Object 新增和编辑页 -FQDNsObjectPage_input_Name_posXpath = "//div[@class='fqdn-object-name']//input" # name输入框Xpath +FQDNsObjectPage_input_Name_posXpath = "//div[@class='biFangName']//input" # name输入框Xpath FQDNsObjectPage_input_searchFor_posId = mainPage_ObjectSearch_buttonSearch_Item_posId # search for item搜索输入框id FQDNsObjectPage_button_addItem_posXpath = mainPage_ObjectSearch_buttonAddItem_posXpath # 添加item按钮id FQDNsObjectPage_button_inputItem_posXpath = "//div[@class='MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-grqzrl']/input" # 输入item内容 FQDNsObjectPage_button_Save_Item_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 保存item按钮 -FQDNsObjectPage_textArea_Description_posXpath = "//div[@class='fqdn-object-description']//textarea[1]" # description文本输入区Xpath -FQDNsObjectPage_button_SaveYes_posXpath = "//div[@class=' fqdn-object-page MuiBox-root css-o7xelj']//button[text()='OK']" # OK按钮 +FQDNsObjectPage_textArea_Description_posXpath = "//div[@class='objectAdd_description el-textarea el-input--small']/textarea" # description文本输入区Xpath +FQDNsObjectPage_button_SaveYes_posXpath = "//div[@class=' fqdn-object-page MuiBox-root css-1hl1tbm']//button[@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按钮 FQDNsObjectPage_button_warningSaveYes_posXpath = "//div[@class='el-message-box__wrapper']/div/div[3]/button[2]/span" # 提示保存ok按钮警告框 FQDNsObjectPage_button_warningSaveCancel_posCss = '//div[@class="el-message-box__wrapper"]/div/div[3]/button[1]/span' # 提示保存取消按钮警告框 FQDNsObjectPage_button_cancel_posCss = "//button[@id='Cancle-_FqdnDetail_Home_App_anonymousComponent']/span" # Cancel按钮 @@ -799,19 +804,19 @@ listPage_object_Subscriber_IDs_first_reference_list_posXpath = '//div/div/div[2] listPage_object_Subscriber_IDs_second_reference_list_posXpath = '//div/div/div[2]/div[2]/div[1]/div/div[3]/div[2]' # 侧滑引用列表第二列 listPage_profilTable_FQDNs_reference_first_row_posXpath = listPage_object_Subscriber_IDs_first_reference_list_posXpath listPage_profilTable_FQDNs_reference_Second_row_posXpath = listPage_object_Subscriber_IDs_second_reference_list_posXpath -listPage_object_Subscriber_IDs_del_yes_Button_posXpath = listPage_object_ip_address_del_yes_Button_posXpath # del_yes按钮 +listPage_object_Subscriber_IDs_del_yes_Button_posXpath = '//div[@aria-label="Tips"]/div[3]/span/button[1]/span' # del_yes按钮 listPage_objectSearch_Subscriber_IDs_selectLabel_posId = mainPage_ObjectSearch_selectLabel_posId # 查询框id # 查询框输入并选择 listPage_objectSearch_Subscriber_IDs_select_Id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_Objects_subscriberid_Home_App_anonymousComponent"]' # 查询ID -listPage_objectSearch_Subscriber_IDs_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" # 查询Name -listPage_objectSearch_Subscriber_IDs_select_Details_posXpath ="//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" # 查询Details -listPage_objectSearch_Subscriber_IDs_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" # 查询Description +listPage_objectSearch_Subscriber_IDs_select_Name_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_subscriberid_Home_App_anonymousComponent"]' # 查询Name +listPage_objectSearch_Subscriber_IDs_select_Details_posXpath = '//li[@id="6-_FilteredSearch_ElRow_Objects_subscriberid_Home_App_anonymousComponent"]' # 查询Details +listPage_objectSearch_Subscriber_IDs_select_Description_posXpath = '//li[@id="4-_FilteredSearch_ElRow_Objects_subscriberid_Home_App_anonymousComponent"]' # 查询Description listPage_objectSearch_Subscriber_IDs_select_CreateBy_posXpath = '//*[@id="5-_FilteredSearch_ElRow_Objects_subscriberid_Home_App_anonymousComponent"]' # 查询CreateBy listPage_objectSearch_Subscriber_IDs_buttonSearch_posId = mainPage_ObjectSearch_buttonSearch_posId # 查询按钮id listPage_objectSearch_Subscriber_IDs_buttonClear_posId = mainPage_ObjectSearch_buttonClear_posId # 清空查询按钮id -listPage_object_Subscriber_IDs_create_Subscriber_IDs_Button_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" # 创建Subscriber_IDs -listPage_object_Subscriber_IDs_create_Subscriber_IDs_Group_Button_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" # 创建Subscriber_IDs Group +listPage_object_Subscriber_IDs_create_Subscriber_IDs_Button_posId = 'object0-_OperateBtns_ElRow_Objects_subscriberid_Home_App_anonymousComponent' # 创建Subscriber_IDs +listPage_object_Subscriber_IDs_create_Subscriber_IDs_Group_Button_posId = "object1-_OperateBtns_ElRow_Objects_subscriberid_Home_App_anonymousComponent" # 创建Subscriber_IDs Group listPage_profileSearch_Subscriber_IDs_dropDown_item_posXpath = "" # 下拉菜单定位 listPage_profileSearch_Subscriber_IDs_input_itemContent_posXpath = "" # 输入item的值,replaceName替换实际查询值 @@ -826,7 +831,7 @@ listPage_object_Subscriber_IDs_new_Description_extract_posXpath = '//table/tbody listPage_object_Subscriber_IDs_new_Details_extract_posXpath = '//table/tbody/tr[1]/td[4]/div/div/div/div/div/div/div/span/div/span' # 提取Detail listPage_object_Subscriber_IDs_del_after_ele_posXpath = '//div[@id="ly-table1-listcontent"]/div/div[3]/div/span' # 删除后提示"No Data" # Subscriber_IDs list page 列表页操作 -listPage_object_Subscriber_IDs_select_First_object_posXpath = listPage_object_ip_address_select_First_object_posXpath # 选择列表中第一个对象 +listPage_object_Subscriber_IDs_select_First_object_posXpath = '//table/tbody/tr/td[1]/div/div/div[1]/div/label/span[1]/span' # 选择列表中第一个对象 Subscriber_ID_listPage_object_searchId_posId = '1-_FilteredSearch_ElRow_Objects_subscriberid_Home_App_anonymousComponent' # ID 搜索 # Create Subscriber_IDs Object 和 Edit Subscriber_IDs Object 新增和编辑页 Subscriber_IDsObjectPage_input_Name_posXpath = "//div[@class='MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-uzf287']/input" # name输入框Xpath @@ -892,13 +897,13 @@ list_HTTP_Signatures_Export_files_yes_button_posXpath = '//div/div[3]/span/butto list_quote_first_row_object_HTTP_Signatures_posXpath = '//div/div/div[2]/div[2]/div[1]/div/div[3]/div' # quote侧滑第一行 list_quote_second_row_object_HTTP_Signatures_posXpath = '//div/div[2]/div[2]/div[1]/div/div[3]/div[2]' # quote侧滑第二行 Create_item_second_row_object_HTTP_Signatures_posXpath = "(//div[@class='infinite-list-wrapper']//div[@class='view-row'])[2]//div[@class='keywords-txt']/span" # item第二行 -listPage_object_HTTP_Signatures_del_yes_Button_posXpath = listPage_object_ip_address_del_yes_Button_posXpath # del_yes按钮 +listPage_object_HTTP_Signatures_del_yes_Button_posXpath = '//div[@class="el-dialog__wrapper"]/div/div[3]/span/button[1]/span' # del_yes按钮 listPage_objectSearch_HTTP_Signatures_selectLabel_posId = mainPage_ObjectSearch_selectLabel_posId # 查询框id # 查询框输入并选择 listPage_objectSearch_HTTP_Signatures_select_Id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_Objects_http_signature_Home_App_anonymousComponent"]' # 查询ID -listPage_objectSearch_HTTP_Signatures_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" # 查询Name -listPage_objectSearch_HTTP_Signatures_select_Details_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" # 查询Details -listPage_objectSearch_HTTP_Signatures_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" # 查询Description +listPage_objectSearch_HTTP_Signatures_select_Name_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_http_signature_Home_App_anonymousComponent"]' # 查询Name +listPage_objectSearch_HTTP_Signatures_select_Details_posXpath = '//li[@id="6-_FilteredSearch_ElRow_Objects_http_signature_Home_App_anonymousComponent"]' # 查询Details +listPage_objectSearch_HTTP_Signatures_select_Description_posXpath = '//li[@id="4-_FilteredSearch_ElRow_Objects_http_signature_Home_App_anonymousComponent"]' # 查询Description listPage_objectSearch_HTTP_Signatures_select_CreateBy_posXpath = '//*[@id="5-_FilteredSearch_ElRow_Objects_http_signature_Home_App_anonymousComponent"]' # 查询CreateBy listPage_objectSearch_HTTP_Signatures_buttonSearch_posId = mainPage_ObjectSearch_buttonSearch_posId # 查询按钮id @@ -919,7 +924,7 @@ listPage_object_HTTP_Signatures_new_Description_extract_posXpath = '//table/tbod listPage_object_HTTP_Signatures_new_Details_extract_posXpath = '//table/tbody/tr[1]/td[4]/div/div/div/div/div/div/span' # 提取Detail listPage_object_HTTP_Signatures_del_after_ele_posXpath = '//div[@id="ly-table1-listcontent"]/div/div[3]/div/span' # 删除后提示"No Data" # HTTP_Signatures list page 列表页操作 -listPage_object_HTTP_Signatures_select_First_object_posXpath = listPage_object_ip_address_select_First_object_posXpath # 选择列表中第一个对象 +listPage_object_HTTP_Signatures_select_First_object_posXpath = '//table/tbody/tr/td[1]/div/div/div[1]/div/label/span[1]/span' # 选择列表中第一个对象 HTTP_Signatures_listPage_object_searchId_posId = '1-_FilteredSearch_ElRow_Objects_http_signature_Home_App_anonymousComponent' # ID 搜索 # Create HTTP_Signatures Object 和 Edit HTTP_Signatures Object 新增和编辑页 HTTP_SignaturesObjectPage_input_Name_posXpath = "//div[@class='MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-uzf287']/input" # name输入框Xpath @@ -984,21 +989,21 @@ listPage_object_Keywords_createButton_posXpath = listPage_object_ip_address_crea listPage_object_Keywords_editButton_posXpath = listPage_object_ip_address_editButton_posXpath # edit按钮id listPage_object_Keywords_editButton_disable_posXpath = '//button[@id="appEdit-_OperateBtns_ElRow_Objects_keywords_Home_App_anonymousComponent"][@disabled="disabled"]' # edit按钮xpath listPage_object_Keywords_delButton_posXpath = listPage_object_ip_address_delButton_posXpath # del按钮id -listPage_object_Keywords_del_yes_Button_posXpath = listPage_object_ip_address_del_yes_Button_posXpath # del_yes按钮 +listPage_object_Keywords_del_yes_Button_posXpath = '//div[@class="el-dialog__wrapper"]/div/div[3]/span/button[1]/span' # del_yes按钮 listPage_object_Keywords_viewButton_posId = "//button[@id='appEdit-_OperateBtns_ElRow_Objects_keywords_Home_App_anonymousComponent']//p[normalize-space(text()) = 'View']" listPage_objectSearch_Keywords_selectLabel_posXpath = listpage_search_box_posXpath # 查询框id # 查询框输入并选择 listPage_objectSearch_Keywords_select_Id_posXpath = '//li[@id="1-_FilteredSearch_ElRow_Objects_keywords_Home_App_anonymousComponent"]' # 查询ID -listPage_objectSearch_Keywords_select_Name_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" # 查询Name -listPage_objectSearch_Keywords_select_Details_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Detail']" # 查询Details -listPage_objectSearch_Keywords_select_Description_posXpath = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Description']" # 查询Description +listPage_objectSearch_Keywords_select_Name_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_keywords_Home_App_anonymousComponent"]' # 查询Name +listPage_objectSearch_Keywords_select_Details_posXpath = '//li[@id="6-_FilteredSearch_ElRow_Objects_keywords_Home_App_anonymousComponent"]' # 查询Details +listPage_objectSearch_Keywords_select_Description_posXpath = '//li[@id="4-_FilteredSearch_ElRow_Objects_keywords_Home_App_anonymousComponent"]' # 查询Description listPage_objectSearch_Keywords_select_CreateBy_posXpath = '//*[@id="5-_FilteredSearch_ElRow_Objects_keywords_Home_App_anonymousComponent"]' # 查询CreateBy listPage_objectSearch_Keywords_buttonSearch_posId = mainPage_ObjectSearch_buttonSearch_posId # 查询按钮id listPage_objectSearch_Keywords_buttonClear_posId = mainPage_ObjectSearch_buttonClear_posId # 清空查询按钮id -listPage_object_Keywords_create_Keywords_Button_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" # 创建Keywords +listPage_object_Keywords_create_Keywords_Button_posId = 'object0-_OperateBtns_ElRow_Objects_keywords_Home_App_anonymousComponent' # 创建Keywords Create_page_import_from_file_button_xpath = "//button[@class='el-button btn-style el-button--default el-button--small']" # 创建Keywords import button -listPage_object_Keywords_create_Keywords_Group_Button_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" # 创建Keywords Group +listPage_object_Keywords_create_Keywords_Group_Button_posId = "object1-_OperateBtns_ElRow_Objects_keywords_Home_App_anonymousComponent" # 创建Keywords Group listPage_profileSearch_Keywords_dropDown_item_posXpath = "" # 下拉菜单定位 listPage_profileSearch_Keywords_input_itemContent_posXpath = "" # 输入item的值,replaceName替换实际查询值 @@ -1014,7 +1019,7 @@ listPage_object_Keywords_new_Details_extract_posXpath = '//table/tbody/tr[1]/td[ listPage_object_Keywords_del_after_ele_posXpath = '//div[@id="ly-table1-listcontent"]/div/div[3]/div/span' # 删除后提示"No Data" # Keywords list page 列表页操作 -listPage_object_Keywords_select_First_object_posXpath = listPage_object_ip_address_select_First_object_posXpath # 选择列表中第一个对象 +listPage_object_Keywords_select_First_object_posXpath = '//table/tbody/tr/td[1]/div/div/div[1]/div/label/span[1]/span' # 选择列表中第一个对象 keywords_listPage_object_searchId_posId = '1-_FilteredSearch_ElRow_Objects_keywords_Home_App_anonymousComponent' # ID 搜索 # Create Keywords Object 和 Edit Keywords Object 新增和编辑页 @@ -1022,16 +1027,16 @@ KeywordsObjectPage_input_Name_posXpath = "//div[@class='MuiInput-root MuiInput-v KeywordsObjectPage_input_searchFor_posId = mainPage_ObjectSearch_buttonSearch_Item_posId # search for item搜索输入框id KeywordsObjectPage_button_addItem_posXpath = mainPage_ObjectSearch_buttonAddItem_posXpath # 添加item按钮id -KeywordsObjectPage_first_Item_content_posXpath = "(//div[@data-testid='virtuoso-item-list']//div[@class='keyword-object-expression']/div[1]/span)[1]" # 第一个item的内容 -main_first_Item_count_posXpath = "//div[@class='flex flex-row justify-between mt-[4px]']/div[2]/span[2]" +KeywordsObjectPage_first_Item_content_posXpath = "(//div[@class='list-container']//div[@class='v-fill-available row-info']/span)[1]" # 第一个item的内容 +main_first_Item_count_posXpath = '//div[1]/div[2]/div[@class="total"]' KeywordsObjectPage_first_Item_count_posXpath = main_first_Item_count_posXpath ## 断言新增item的个数 KeywordsObjectPage_Audit_Logs_Button_posXpath = '//div/div/div[3]/div/div/form/div[8]/div/div[1]/span' # Audit Logs编辑框 KeywordsObjectPage_Audit_Logs_First_create_posXpath = '//table/tbody/tr/td[3]/div' # Audit Logs第一条编辑记录 KeywordsObjectPage_Audit_Logs_First_edit_posXpath = '//div/div/div/div/div[2]/div[2]/div/div[2]/div[3]/table/tbody/tr[2]' # Audit Logs第二条编辑记录 KeywordsObjectPage_button_item_select_HEX_posXpath = "//div[@class='flex items-center pt-0']//button[text()='HEX']" # HEX按钮 KeywordsObjectPage_button_item_select_REGEX_posXpath = "//div[@class='flex items-center pt-0']//button[text()='REGEX']" # REGEX按钮 -KeywordsObjectPage_button_inputItem_posXpath = "//div[@class='keyword-object-expression']//input[@class='MuiInput-input css-1u0jcuo']" # 输入item内容 -KeywordsObjectPage_button_add_Item_input_posXpath = "//div[@class='keyword-object-expression']//i[@class='iconfont icon-Create1 font-[700]']" +KeywordsObjectPage_button_inputItem_posXpath = "//div[@class='MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-1qymgs6']/input" # 输入item内容 + KeywordsObjectPage_button_Save_Item_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 保存item按钮 KeywordsObjectPage_import_files_ok1_posXpath = '//div/div/div[2]/div[2]/button[1]/span' # 导入文件确定ok KeywordsObjectPage_textArea_Description_posXpath = "//div[@class='MuiTextarea-root MuiTextarea-variantOutlined MuiTextarea-colorNeutral MuiTextarea-sizeMd MuiTextarea-formControl css-v35t8h']/textarea[1]" # Keywords_description文本输入区Xpath @@ -1040,10 +1045,9 @@ KeywordsObjectPage_button_SaveYes_posXpath = "//button[@class='MuiButtonBase-roo KeywordsObjectPage_button_warningSaveYes_posXpath = "//div[@class='el-message-box__wrapper']/div/div[3]/button[2]/span" # 提示保存ok按钮警告框 KeywordsObjectPage_button_warningSaveCancel_posCss = '//div[@class="el-message-box__wrapper"]/div/div[3]/button[1]/span' # 提示保存取消按钮警告框 KeywordsObjectPage_button_cancel_posCss = "//button[@id='Cancle-_keywordsDetail_Home_App_anonymousComponent']/span" # Cancel按钮 -KeywordsObjectPage_button_range_posXpath = "//div[@class='keyword-object-expression']//input[@class='MuiCheckbox-input css-1jj0cvj']" -KeywordsObjectPage_error_text_posXpath = "//div[@class='keyword-object-expression']//div[@class='MuiFormHelperText-root css-koslx8']" + # Create Keywords Group Object 和 Edit CreateKeywords Group 新增和编辑页 -main_ObjectPage_tips_Name_input_Xpath = "//div[@class='MuiFormHelperText-root css-koslx8']" +main_ObjectPage_tips_Name_input_Xpath = '//form/div[1]/div/div[@class="el-form-item__error"]' KeywordsObjectPage_tips_Name_input_Xpath = main_ObjectPage_tips_Name_input_Xpath # 删除失败,Name提示框 Keywords_list_reference_content_first_raw = '//div[1]/div/div/div[2]/div[2]/div[1]/div/div[3]/div' # 列表页引用第一行 Keywords_list_reference_content_second_raw = '//div/div/div[2]/div[2]/div[1]/div/div[2]/div/div[2]' # 列表引用第二行 @@ -1163,8 +1167,8 @@ cate_ObjectDetailPage_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_ # Object Accounts elements area top===================Object Accounts elements area top===================Object Accounts elements area top===================Object Accounts elements area top===================Object Accounts elements area top=================== # 列表页 acc_listPage_createButton_posXpath = listPage_object_ip_address_createButton_posXpath # 列表页create 按钮ID -acc_listPage_createButton_account_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" # 列表页create下account ID -acc_listPage_createButton_accountGroup_posId = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[2]" # 列表页create下account group ID +acc_listPage_createButton_account_posId = 'object0-_OperateBtns_ElRow_Objects_account_Home_App_anonymousComponent' # 列表页create下account ID +acc_listPage_createButton_accountGroup_posId = 'object1-_OperateBtns_ElRow_Objects_account_Home_App_anonymousComponent' # 列表页create下account group ID acc_listPage_editButton_posXpath = listPage_object_ip_address_editButton_posId # 列表页 Edit 按钮ID acc_listPage_deleteButton_posXpath = listPage_object_ip_address_delButton_posXpath # 列表页 Delete 按钮ID acc_object_columnSetting_descriptionOption_posXpath = listPage_object_urls_columnSetting_descriptionOption_posXpath # 列设置中的description选项元素Xpath @@ -1210,14 +1214,14 @@ acc_listPage_object_tableDetails_detailsRow_firstDetailValue_posXpaths = listPag # 对象详情页 acc_ObjectDetailPage_nameInput_posXpath = url_ObjectDetailPage_nameInput_posXpath # Name输入框Xpath acc_ObjectDetailPage_nameLenthNumber_posXpath = url_ObjectDetailPage_nameLenthNumber_posXpath # Name输入框中字符长度数值Xpath -acc_ObjectDetailPage_item_addButton_poXpath = url_ObjectDetailPage_addButton_posXpath # item下"+"按钮 +acc_ObjectDetailPage_item_addButton_poXpath = url_ObjectDetailPage_itemsText_posXpath # item下"+"按钮 acc_ObjectDetailPage_item_subAddButton_poId = url_ObjectDetailPage_item_subAddButton_poXpath # 单个Item中新增多条数据的"+"按钮 # acc_ObjectDetailPage_item_subAddButton_poId = '//*[@class="item-box"]//*[contains(@class,"addobject")]' # 单个Item中新增多条数据的"+"按钮 acc_ObjectDetailPage_itemValueInput_poXpath = "//input[@class='MuiInput-input css-1u0jcuo']" # item 下value输入框Xpath acc_ObjectDetailPage_itemSaveButton_poXpath = url_ObjectDetailPage_itemSaveButton_posXpath # item 下value保存按钮Xpath acc_ObjectDetailPage_item_search_posXpath = url_ObjectDetailPage_object_ip_search_posXpath # item 下搜索框id acc_ObjectDetailPage_itemsText_posXpath = '//div[@class="ItemRow infinite-list-item" and not(@style)]//div[@class="item-box"]//span[@title]' # Items 列表下所有Item的文本元素 -acc_ObjectDetailPage_description_posXpath = "//div[@class='account-object-description']//textarea[1]" # 对象详情页面下Description input Xpath +acc_ObjectDetailPage_description_posXpath = url_ObjectDetailPage_description_posXpath # 对象详情页面下Description input Xpath acc_ObjectDetailPage_auditLogs_posXpath = url_ObjectDetailPage_auditLogs_posXpath # Audit Logs Xpath acc_ObjectDetailPage_auditLogsDrawer_firstRowLog_checkBox_posXpath = url_ObjectDetailPage_auditLogsDrawer_firstRowLog_checkBox_posXpath # Audit Logs 侧滑页第一条日志CheckBox Xpath acc_ObjectDetailPage_auditLogsDrawer_compareButton_posXpath = url_ObjectDetailPage_auditLogsDrawer_compareButton_posXpath # Audit Logs 侧滑页Compare 按钮Xpath @@ -1267,8 +1271,8 @@ acc_ObjectDetailPage_firstObject = url_ObjectDetailPage_firstUrlObject # 侧滑 acc_ObjectDetailPage_secondObject = url_ObjectDetailPage_secondUrlObject # 侧滑acc Object中第二个url Xpath acc_ObjectDetailPage_editgroup_posXpath = "//i[@class='row-edit iconfont icon-Edit cursor fontsize18']" acc_ObjectGroupDetailPage_subAndExcludeObjects_posXpaths = '//div[@class="CommonSubObjects"]//*[@class="row-content-cell"]' # 列表下所有Item的文本元素(包括sub与exclude) -acc_ObjectGroupDetailPage_subObjects_posXpaths = '//div[@data-desc="subObject"]//div[@class="CommonSubObjects"]//*[@class="row-content-cell"]' # sub object 列表下所有Item的文本元素 -acc_ObjectGroupDetailPage_excludeObjects_posXpaths = '//div[@data-desc="exclude subObject"]//div[@class="CommonSubObjects"]//*[@class="row-content-cell"]' # exclude object 列表下所有Item的文本元素 +acc_ObjectGroupDetailPage_subObjects_posXpaths = '//div[@class="interval-object-included_sub_object_uuids"]//span' # sub object 列表下所有Item的文本元素 +acc_ObjectGroupDetailPage_excludeObjects_posXpaths = '//div[@class="interval-object-excluded_sub_object_uuids"]//span' # exclude object 列表下所有Item的文本元素 # 详情页通用元素 acc_ObjectDetailPage_mainOkButton_posXpath = "//button[@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按钮ID acc_ObjectDetailPage_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_posXpath # 确认弹窗的“Yes”按钮 @@ -1304,10 +1308,14 @@ int_listPage_object_urls_delete_noButton_posCss = acc_listPage_object_urls_delet # 对象详情页a int_ObjectDetailPage_nameInput_posXpath = url_ObjectDetailPage_nameInput_posXpath # Name输入框Xpath int_ObjectDetailPage_nameLenthNumber_posXpath = url_ObjectDetailPage_nameLenthNumber_posXpath # Name输入框中字符长度数值Xpath -int_ObjectDetailPage_item_addButton_poId = url_ObjectDetailPage_addButton_posXpath # item下"+"按钮 +int_ObjectDetailPage_item_addButton_poXpath = url_ObjectDetailPage_addButton_posXpath # item下"+"按钮 int_ObjectDetailPage_itemsText_posXpath = '//div[@class="ItemRow infinite-list-item" and not(@style)]//div[@class="item-box"]//div[@title]' # Items 列表下所有Item的文本元素 int_ObjectDetailPage_itemValueInput_lowBoundary_poXpath = '(//div[@class="v-panel-content"]//div[@class="CommonItems"]//div[@class="list-container"]//input)[1]' # item 下low_boundary value输入框Xpath int_ObjectDetailPage_itemValueInput_upBoundary_poXpath = '(//div[@class="v-panel-content"]//div[@class="CommonItems"]//div[@class="list-container"]//input)[last()]' # item 下 up_boundary value输入框Xpath +# item下"+"按钮 +int_ObjectDetailPage_itemsText_posXpath = '//div[@class="leading-[24px]"]' # Items 列表下所有Item的文本元素 +int_ObjectDetailPage_itemValueInput_lowBoundary_poXpath = '(//input[@class="MuiInput-input css-1u0jcuo"])[1]' # item 下low_boundary value输入框Xpath +int_ObjectDetailPage_itemValueInput_upBoundary_poXpath = '(//input[@class="MuiInput-input css-1u0jcuo"])[2]' # item 下 up_boundary value输入框Xpath int_ObjectDetailPage_itemSaveButton_poXpath = url_ObjectDetailPage_itemSaveButton_posXpath # item 下value保存按钮Xpath int_ObjectDetailPage_item_search_posId = url_ObjectDetailPage_object_ip_search_posId # item 下搜索框id int_ObjectDetailPage_description_posXpath = url_ObjectDetailPage_description_posXpath # 对象详情页面下Description input Xpath @@ -1317,17 +1325,18 @@ int_ObjectGroupDetailPage_subObjects_addButton_normalAdd_posXpath = acc_ObjectGr int_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath = acc_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath # Subordinate Objects 下无数据新增时"+"按钮Xpath int_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_posXpath = acc_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_posXpath # Object侧滑窗口的"+"按钮 int_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_account_posXpath = acc_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_account_posXpath # Object侧滑窗口的"+"按钮下的single object -int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_nameInput_posXpath = '//div[@class="drawer-box"]//div[@data-label="Name"]//input' # 侧滑子Create Object页面Name input Xpath +int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_nameInput_posXpath = '(//input[@class="MuiInput-input css-fqt4w4"])[2]' # 侧滑子Create Object页面Name input Xpath int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_itemsAddButton_posXpath = acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_itemsAddButton_posXpath # 侧滑子Create Object页面中Items下的"+"按钮 Xpath -int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_itemsValueInput_lowBoundary_posXpath = '(//div[@class="drawer-box"]//div[@class="CommonItems"]//div[@class="list-container"]//input)[1]' # 侧滑子Create Interval页面中Items下的low_boundary输入框 Xpath -int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_itemsValueInput_upBoundary_posXpath = '(//div[@class="drawer-box"]//div[@class="CommonItems"]//div[@class="list-container"]//input)[last()]' # 侧滑子Create Interval页面中Items下的upBoundary输入框 Xpath\ +int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_itemsValueInput_lowBoundary_posXpath = '(//input[@class="MuiInput-input css-1u0jcuo"])[1]' # 侧滑子Create Interval页面中Items下的low_boundary输入框 Xpath +int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_itemsValueInput_upBoundary_posXpath = '(//input[@class="MuiInput-input css-1u0jcuo"])[last()]' # 侧滑子Create Interval页面中Items下的upBoundary输入框 Xpath\ int_ObjectGroupDetailPage_subObjects_subCreateObjectDrawer_itemsValueSaveButton_posXpath = acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_itemsValueSaveButton_posXpath # 侧滑子Create Objects页面中Items下的保存按钮 Xpath int_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_descriptionTextarea_posXpath = acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_descriptionTextarea_posXpath # 侧滑子Create Objects页面中的Description textarea Xpath -int_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_posXpath = '//div[@class="drawer-box"]//div[@class="prox-fixed-footer policy-foot-color"]/button[@id="OK-_IntervalsDetail_VDraswer_EditDraw_IntervalsDetail_Home_App_anonymousComponent"]' # 侧滑子Create Objects页面中OK按钮 +int_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_posXpath = '(//button[@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"])[2]' # 侧滑子Create Objects页面中OK按钮 int_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_posXpath # 侧滑子Create Account页面确认弹窗的“Yes”按钮 int_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_cancel_posXpath = url_ObjectDetailPage_okButton_cancel_posXpath # 侧滑子Create Account页面确认弹窗的“Cancel”按钮 # 详情页通用元素 int_ObjectDetailPage_mainOkButton_poId = 'OK-_IntervalsDetail_Home_App_anonymousComponent' # OK按钮ID +int_ObjectDetailPage_mainOkButton_poXpath = '//button[@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"]' int_ObjectDetailPage_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_posXpath # 确认弹窗的“Yes”按钮 # Object Intervals elements area bottom===================Object Intervals elements area bottom===================Object Intervals elements area bottom===================Object Intervals elements area bottom===================Object Intervals elements area bottom=================== # Object Intervals elements area bottom===================Object Intervals elements area bottom===================Object Intervals elements area bottom===================Object Intervals elements area bottom===================Object Intervals elements area bottom=================== @@ -1435,7 +1444,7 @@ flagGroup_ObjectDetailPage_subitem_add_posXpath = '//div[@class="mt-[10px] flex # Object Geolocation elements area bottom===================Object Geolocation elements area bottom===================Object Geolocation elements area bottom===================Object Geolocation elements area bottom=================== # 对象详情页 port_ObjectDetailPage_nameInput_posXpath = '//input[@class="MuiInput-input css-fqt4w4"]' # Name输入框Xpath!!!!! -port_ObjectDetailPage_item_addButton_poId = '//i[@class="iconfont icon-Create1 font-[700]"]' # item下"+"按钮!!!!! +port_ObjectDetailPage_item_addButton_posXpath = '//i[@class="iconfont icon-Create1 font-[700]"]' # item下"+"按钮!!!!! port_ObjectDetailPage_itemValueInput_poXpath = '//div[@class="MuiInput-root MuiInput-variantOutlined MuiInput-colorNeutral MuiInput-sizeMd MuiInput-formControl css-grqzrl"]/input' # item 下value输入框Xpath!!!!! port_ObjectDetailPage_itemSaveButton_poXpath = '//i[@class="operate-icon iconfont icon-save"]' # item 下value保存按钮Xpath!!!!! port_ObjectDetailPage_item_search_posId = acc_ObjectDetailPage_item_search_posXpath # item 下搜索框id @@ -1504,25 +1513,25 @@ port_listPage_linkTips_dropitem_vsysSelect_posXpath = "//body/div[contains(@clas port_listPage_objectTable_tableTbody_posXpath = "//div[contains(@class,'ly-table1')]//tbody" # 列表tabel body object_page_ln_select_statistics_input_posXpath = '//button[@class="MuiSelect-button css-1qmzz5g"]' #详情页statistics!!!!! -object_page_ln_select_statistics_brief_posXpath = '//li[@class="MuiOption-root css-rabwri"]//p[@class="MuiTypography-root MuiTypography-title-sm css-kfmwsi"]' #elaboreate!!!!! -object_page_ln_select_statistics_elaborate_posXpath = '//li[@class="MuiOption-root css-171tq0k"]//p[@class="MuiTypography-root MuiTypography-title-sm css-kfmwsi"]' #brief!!!!! +object_page_ln_select_statistics_elaborate_posXpath = '//li[@class="MuiOption-root css-rabwri"]//p[@class="MuiTypography-root MuiTypography-title-sm css-kfmwsi"]' #elaboreate!!!!! +object_page_ln_select_statistics_brief_posXpath = '//li[@class="MuiOption-root css-171tq0k"]//p[@class="MuiTypography-root MuiTypography-title-sm css-kfmwsi"]' #brief!!!!! object_page_ln_select_statistics_none_posXpath = '//li[@class="MuiOption-root MuiOption-highlighted Mui-selected css-171tq0k"]//p[@class="MuiTypography-root MuiTypography-title-sm css-kfmwsi"]' # none!!!!! # 详情页通用元素 port_ObjectDetailPage_mainOkButton_poId = 'OK-_PortDetail_Home_App_anonymousComponent' # OK按钮ID -port_ObjectDetailPage_mainOkButton_posXpath = '//*[@id="OK-_PortDetail_Home_App_anonymousComponent"]' +port_ObjectDetailPage_mainOkButton_posXpath = '//button[@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"]' port_ObjectDetailPage_okButton_yes_posXpath = acc_ObjectDetailPage_okButton_yes_posXpath # 确认弹窗的“Yes”按钮 # 对象组详情页 port_ObjectGroupDetailPage_subObjects_addButton_normalAdd_posXpath = '//div[@data-desc="subObject"]//i[@class="operate-icon iconfont icon-Create1"]' # Subordinate Objects 下有数据新增时"+"按钮Xpath -port_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath = '//div[@data-desc="subObject"]//div[@class="AddButton"]' # Subordinate Objects 下无数据新增时"+"按钮Xpath -port_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_posXpath = '//div[@class="ToggleDraw"]//div[contains(@class,"search-box")]//button' # Ports侧滑窗口的"+"按钮 +port_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath = '//div[@class="port-object-included_sub_object_uuids"]' # Subordinate Objects 下无数据新增时"+"按钮Xpath +port_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_posXpath = '//div[@class="px-[12px] py-[4px] flex"]/button' # Ports侧滑窗口的"+"按钮 port_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_port_posXpath = '(//ul[@class="el-dropdown-menu el-popper el-dropdown-menu--small"]/li[not(contains(text(),"Group"))])[last()]' # Ports侧滑窗口的"+"按钮下的Port -port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_nameInput_posXpath = '//*[@id="router-view-container"]//div[@class="drawer-box"]//div[@data-label="Name"]//input' # 侧滑子Create Ports页面Name input Xpath -port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_itemsAddButton_posXpath = '//div[@class="drawer-box"]//div[@class="CommonItems"]//div[@class="object-item-add"]/div[@class="IconBtn"]' # 侧滑子Create Ports页面中Items下的"+"按钮 Xpath -port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_itemsValueInput_posXpath = '//*[@id="router-view-container"]//div[@class="item-box"]//input' # 侧滑子Create Ports页面中Items下的item value输入框 Xpath -port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_itemsValueSaveButton_posXpath = '//div[@class="drawer-box"]//div[@class="CommonItems"]//i[contains(@class,"icon-save")]' # 侧滑子Create Ports页面中Items下的保存按钮 Xpath -port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_descriptionTextarea_posXpath = '//div[@class="drawer-box"]//label[text()="Description"]/..//textarea' # 侧滑子Create Ports页面中的Description textarea Xpath -port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_okButton_posXpath = '//*[@id="OK-_PortDetail_VDraswer_EditDraw_PortDetail_Home_App_anonymousComponent"]' # 侧滑子Create Account页面中OK按钮 +port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_nameInput_posXpath = '(//input[@class="MuiInput-input css-fqt4w4"])[2]' # 侧滑子Create Ports页面Name input Xpath +port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_itemsAddButton_posXpath = '//button[@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-list-action-add css-h4tbqb"]' # 侧滑子Create Ports页面中Items下的"+"按钮 Xpath +port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_itemsValueInput_posXpath = '//input[@class="MuiInput-input css-1u0jcuo"]' # 侧滑子Create Ports页面中Items下的item value输入框 Xpath +port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_itemsValueSaveButton_posXpath = '//i[@class="operate-icon iconfont icon-save"]' # 侧滑子Create Ports页面中Items下的保存按钮 Xpath +port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_descriptionTextarea_posXpath = '(//textarea[@placeholder="Please enter the content"])[2]' # 侧滑子Create Ports页面中的Description textarea Xpath +port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_okButton_posXpath = '(//button[@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"])[2]' # 侧滑子Create Account页面中OK按钮 port_ObjectGroupDetailPage_subObjects_subCreatePortDrawer_okButton_yes_posXpath = acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_yes_posXpath # 侧滑子Create Account页面确认弹窗的“Yes”按钮 port_ObjectDetailPage_firstPortObject = acc_ObjectDetailPage_firstAccObject ## 侧滑Objects列表中第一个acc object Xpath portGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath = accGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath # Exclude Objects Switch Xpath @@ -1532,7 +1541,7 @@ port_ObjectDetailPage_firstObject = acc_ObjectDetailPage_firstObject # 侧滑ac port_ObjectGroupDetailPage_subObjects_toggleDraw_closeButton_posXpath = acc_ObjectGroupDetailPage_subObjects_toggleDraw_closeButton_posXpath # Accounts侧滑窗口的Close按钮 portGroup_ObjectDetailPage_excludeObjectsSwitch_normalAdd_posXpath = accGroup_ObjectDetailPage_excludeObjectsSwitch_normalAdd_posXpath # Exclude Objects有数据时新增按钮Xpath port_ObjectDetailPage_secondObject = acc_ObjectDetailPage_secondObject # 侧滑acc Object中第二个url Xpath -port_object_group_subobject_close_posXpath = '//*[@id="router-view-container"]//div[@class="PortList list-box"]/div[3]/button' +port_object_group_subobject_close_posXpath = '//div[@class="absolute bottom-0 h-[40px] w-[100%] overflow-hidden text-[16px] truncate bg-[--color-background-secondary] flex justify-center items-center pl-[12px] pr-[38px]"]/button' ## listPage->Tips dialog 列表页 tips对话框 port_listPage_object_delete_yesButton_posCss = 'body>.el-dialog__wrapper .delComponents-ok span' # 删除提示的Tips的yes按钮Xpath port_listPage_object_urls_delete_noButton_posCss = 'body>.el-dialog__wrapper .delComponents-close span' # 删除提示的Tips的No按钮Xpath diff --git a/page_element/profiles_element_position.py b/page_element/profiles_element_position.py index 06a97010..5dd6573b 100644 --- a/page_element/profiles_element_position.py +++ b/page_element/profiles_element_position.py @@ -19,8 +19,9 @@ 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 = "//div/ul/li/span[contains(text(),'English')]" mainPage_button_menu_posXCss = ".menu-btn span" # menu按钮定位 -mainPage_currentPage_vsysName_posXpath = "//span[@class='root-title']" # 当前页面中vsys name -mainPage_vsysTree_vsysName_posXpath = "//div[contains(@class, 'menu-level2')]//article//div[@class='menu-title']" # vsys tree中vsys name定位 +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']" |
