diff options
| author | guowenzheng <[email protected]> | 2024-11-27 19:38:16 +0800 |
|---|---|---|
| committer | guowenzheng <[email protected]> | 2024-11-27 19:38:16 +0800 |
| commit | 99600951e60e7558c1089a2fc504a66b11ccd45c (patch) | |
| tree | d91bb83589b713b262bba09ed798df9727674419 /page_element | |
| parent | a75f5d2125fc403381e5f583551751c0da4d2d24 (diff) | |
Diffstat (limited to 'page_element')
| -rw-r--r-- | page_element/admin_area_element_position.py | 10 | ||||
| -rw-r--r-- | page_element/ln_objects_element_position.py | 19 | ||||
| -rw-r--r-- | page_element/objects_element_position.py | 24 | ||||
| -rw-r--r-- | page_element/policies_element_position.py | 8 |
4 files changed, 31 insertions, 30 deletions
diff --git a/page_element/admin_area_element_position.py b/page_element/admin_area_element_position.py index 0a515bc9..2b8a1248 100644 --- a/page_element/admin_area_element_position.py +++ b/page_element/admin_area_element_position.py @@ -683,11 +683,11 @@ object_ip_address_search_result_first = '(//*[@class="table-status-box"])[1]' admin_logs_target_ids_column = '//span[@class="bfId"]' #该列元素集合 object_ip_address_delete_button = '//*[@id="appDel-_OperateBtns_ElRow_Objects_ip_Home_App_anonymousComponent"]' object_ip_address_delete_confirm = '(//*[@class="dialog-footer"])[2]/button[1]' -url_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath = '//div[contains(text(),"Operation")]/following-sibling::div' # Audit Logs 侧滑页点击Compare后的 operation text Xpath -ObjectDetailPage_audit_log_compare_type_posXpath = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[3]' -ObjectDetailPage_audit_log_compare_ip_posXpath = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[4]' -ObjectDetailPage_audit_log_compare_time_posXpath = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[5]' -ObjectDetailPage_audit_log_compare_user_posXpath = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[6]' +url_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath1 = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[3]' # Audit Logs 侧滑页点击Compare后的 operation text Xpath +ObjectDetailPage_audit_log_compare_type_posXpath1 = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[4]' +ObjectDetailPage_audit_log_compare_ip_posXpath1 = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[5]' +ObjectDetailPage_audit_log_compare_time_posXpath1 = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[6]' +ObjectDetailPage_audit_log_compare_user_posXpath1 = '//div[@class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-2.5 css-n8utul"]/div[7]' ObjectDetailPage_audit_log_cancel_posXpath = '//button[text()="Cancel"]' # My Account模块 menu_first_user_posXpath = "//*[@id='user_avator']" # 右上角当前登录账号 diff --git a/page_element/ln_objects_element_position.py b/page_element/ln_objects_element_position.py index 951e2a76..b884b81d 100644 --- a/page_element/ln_objects_element_position.py +++ b/page_element/ln_objects_element_position.py @@ -106,7 +106,7 @@ listPage_objectSearch_Tunnels_buttonClear_posId = "searchClear" #清空查� listPage_objectSearch_Tunnels_AllButton_posxpath = listPage_objectSearch_APNs_All_Button_posxpath #列表的All按钮 listPage_objectSearch_Tunnels_Total_posxpath = "(//div[@class='flex-1']//span[@class='text-textColor'])[1]" #列表的总条数total -listPage_object_tunnel_type_Button_posXpath="//div[@class='MuiDataGrid-columnsManagement css-1v3xuhs']//span[text()='Type']" #Colum-Type Button +listPage_object_tunnel_type_Button_posXpath="//span[text()='Type']" #Colum-Type Button listPage_object_Tunnels_select_First_object_posXpath = listPage_object_APNs_select_First_object_posXpath #列表中第一行数据前的复选框 listPage_object_Tunnels_select_second_object_posXpath=listPage_object_APNs_select_Second_object_posXpath #列表中第二行数据前的复选框 @@ -129,7 +129,8 @@ Tunnel_add_item_button="//div[@class='tunnel-object-endpointA']//i[@class='iconf tunnel_ip_list_first = "//div[@class='pt-[2px] overflow-hidden flex-1']//ul/li[1]//div[@class='flex h-[22px] leading-[22px] MuiBox-root css-14di81r']" 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_end_point_b_frame = 'v[@class="tunnel-object-endpointB"]//div[@class="MuiBox-root css-kh10be"]' +tunnel_ip_list_fourth="//div[@class='pt-[2px] overflow-hidden flex-1']//ul/li[2]//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-zcc2bs']" tunnel_ip_list_close2 = "(//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'])[2]" @@ -137,14 +138,14 @@ tunnel_ip_list_add_button='//i[@class="iconfont icon-Create1"]' tunnel_ip_list_select_ip='//li[normalize-space(text())="Address"]' tunnel_ip_list_select_ip_group='//li[normalize-space(text())="Address Group"]' tunnel_ip_group_add_subobject="//div[@class='ip-object-included_sub_object_uuids']" -tunnel_slide_ip_name="//div[@class='MuiBox-root css-1krxo6z']//div[@class='ip-object-name']//input" -tunnel_slide_ip_item_add="//div[@class='MuiBox-root css-1krxo6z']//i[@class='iconfont icon-Create1 font-[700]']" -tunnel_slide_ip_item_input="//div[@class='MuiBox-root css-1krxo6z']//input[@class='MuiAutocomplete-input css-1lv7pyi']" -tunnel_slide_ip_item_save="//div[@class='MuiBox-root css-1krxo6z']//i[@class='operate-icon iconfont icon-save']" -tunnel_slide_ip_ok="//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']" +tunnel_slide_ip_name="(//input[@class='MuiInput-input css-fqt4w4'])[2]" +tunnel_slide_ip_item_add="(//i[@class='iconfont icon-Create1 font-[700]'])[3]" +tunnel_slide_ip_item_input="(//input[@class='MuiAutocomplete-input css-1lv7pyi'])" +tunnel_slide_ip_item_save="//i[@class='operate-icon iconfont icon-save']" +tunnel_slide_ip_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]" tunnel_slide_ip_confirm_ok='//*[@class="el-button el-button--default el-button--small el-button--primary operation-confirm"]' tunnel_item_search_frame = "//div[@class='tunnel-object-endpointA']//input[@placeholder='Search For']" -tunnel_first_row_item="//div[@class='flex flex-col items-center px-[4px] select-picker']//ul/li[1]//span" +tunnel_first_row_item = '//div[@class="flex h-[22px] leading-[22px] MuiBox-root css-j0s0fv"]//span' tunnel_ip_group_first_row="(//div[@class='pt-[2px] overflow-hidden flex-1'])[2]//ul//li[1]" tunnel_edit_endpointa_posXpath = '//*[@id="tunnelOperateItem-_EndpointAList_ElFormItem_ElForm_VPanel_VEditPanel_tunnelAdd_Home_App_anonymousComponent"]/i' tunnel_edit_endpointa_item_posXpath ='//*[@id="router-view-container"]//div[@class="IconBtn"]/i[@class="operate-icon iconfont icon-Edit"]' @@ -160,7 +161,7 @@ TunnelsObjectPage_button_warningSaveYes_posSelector = 'body > div.el-message-box listPage_objectSearch_Tunnels_select_all_xpath= "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//li[1]" listPage_objectSearch_Tunnels_select_Id_posId = "1-_FilteredSearch_ElRow_Objects_tunnel_Home_App_anonymousComponent" #查询ID listPage_objectSearch_Tunnels_select_Name_posId ="//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='Name']" #查询Name -listPage_objectSearch_Tunnels_select_IP_posId = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='ip']" #查询IP +listPage_objectSearch_Tunnels_select_IP_posId = "//ul[@class='base-Popper-root MuiAutocomplete-listbox css-18r31z0']//span[text()='IP']" #查询IP #Object Attributes===================Attributes====================Attributes=================Attributes=======================Attributes=================Attributes================ diff --git a/page_element/objects_element_position.py b/page_element/objects_element_position.py index 012baa50..aca5a47e 100644 --- a/page_element/objects_element_position.py +++ b/page_element/objects_element_position.py @@ -137,7 +137,7 @@ main_Group_sub_Object_input_frame_posXpath = "//input[@class='MuiInput-input css main_Group_sub_Object_input_frame_select_one_posXpath = "//ul[@class='MuiList-root MuiList-vertical MuiList-variantPlain MuiList-colorNeutral MuiList-sizeMd css-1cklc3']/li[1]//div[@class='flex h-[22px] leading-[22px] MuiBox-root css-14di81r']" # 搜索框第一个元素 # 列表页 main_listPage_object_reference_count_posXpath = "//div[@class='MuiDataGrid-virtualScrollerContent css-0']/div/div[2]//div[@data-field='reference_count']/button" # 提取reference的数量《断言》 -main_listPage_object_statistics_view_postXpath = "(//div[@class='MuiDataGrid-virtualScrollerContent css-0']//div[@data-field='statistics'])[2]" +main_listPage_object_statistics_view_postXpath = '(//button[text()="View"])[1]' main_listPage_object_bottomTotal_postXpath = "//div[@class='flex-1 flex items-center justify-center undefined']/span[1]" # 列表页底部Total元素 # object导入文件Xpath路径 main_ObjectPage_Input_path_Import_files_posXpath = "//div[@class='flex flex-col justify-start flex-1 MuiBox-root css-0']//input[@type='file']" @@ -1248,7 +1248,7 @@ acc_ObjectDetailPage_auditLogsDrawer_compareButton_posXpath = url_ObjectDetailPa acc_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath = url_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath # Audit Logs 侧滑页点击Compare后的 operation text Xpath acc_ObjectDetailPage_itemsTotal_posXpath = url_ObjectDetailPage_itemsTotal_posXpath # Items Total Xpath acc_ObjectDetailPage_clearCounter_posXpath = url_ObjectDetailPage_clearCounter_posXpath # Clear Counter 按钮 -acc_ObjectDetailPage_objectStatistics_dropDown_posXpath = "//div[@class='MuiSelect-root MuiSelect-variantOutlined MuiSelect-colorNeutral MuiSelect-sizeMd css-1lceg5i']" # Statistics type下拉框 +acc_ObjectDetailPage_objectStatistics_dropDown_posXpath = "//div[@class='MuiSelect-root MuiSelect-variantOutlined MuiSelect-colorNeutral MuiSelect-sizeMd css-1lceg5i']//button" # Statistics type下拉框 acc_ObjectDetailPage_objectStatistics_elaborate_posXpath = "//ul[@class='base-Popper-root MuiSelect-listbox Mui-expanded css-1ufo3gk']//*[text()='Elaborate']" # object_statistics下的Elaborate选项 acc_ObjectDetailPage_objectStatistics_brief_posXpath = "//ul[@class='base-Popper-root MuiSelect-listbox Mui-expanded css-1ufo3gk']//*[text()='Brief']" # object_statistics下的 Brief 选项 acc_ObjectDetailPage_objectStatistics_none_posXpath = "//ul[@class='base-Popper-root MuiSelect-listbox Mui-expanded css-1ufo3gk']//*[text()=’None‘]" # object_statistics下的 None 选项 @@ -1271,28 +1271,28 @@ ObjectDetailPage_importDrawer_importTipsValue_Total_posXpath = "//div[@class='Mu ObjectDetailPage_importDrawer_importTable_Failed_items_posXpath = '//i[@class="iconfont icon-Dashboarddisablepolicy text-[var(--color-error)] pr-[4px]"]' ObjectDetailPage_importDrawer_importTable_Total_posXpath ="(//div[@class='flex-1 mt-[20px]']//div[@class='flex-1 flex items-center justify-center undefined']//span[@class='text-textColor'])[1]" # 对象组详情页 +accGroup_ObjectDetailPage_excludeObjectsSwitch_enableStatus_posXpath = "//div[@class='account-object-']//span[@class='MuiButtonBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary Mui-checked PrivateSwitchBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary Mui-checked Mui-checked css-y2jqxi']" # Exclude Objects Switch Xpath开启状态 acc_ObjectGroupDetailPage_subObjects_addButton_normalAdd_posXpath = "//div[@class='account-object-included_sub_object_uuids']// i[@class='iconfont icon-Create1 text-[18px] font-[700] text-[--color-primary] cursor-pointer']" # Subordinate Objects 下有数据新增时"+"按钮Xpath -acc_ObjectGroupDetailPage_excludeObjects_addButton_normalAdd_posXpath = "//div[@class='account-object-excluded_sub_object_uuids']//i[@class='iconfont icon-Create1 text-[18px] text-weight-700] text-[--color-primary] cursor-pointer']" # Exclude Objects 下有数据新增时"+"按钮Xpath -acc_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath = "//div[@class='account-object-included_sub_object_uuids']" # Subordinate Objects 下无数据新增时"+"按钮Xpath -acc_ObjectGroupDetailPage_excludeObjects_addButton_newAdd_posXpath = "//div[@class='account-object-excluded_sub_object_uuids']" # Exclude Objects 下无数据新增时"+"按钮Xpath +acc_ObjectGroupDetailPage_excludeObjects_addButton_normalAdd_posXpath = "//div[@class='account-object-excluded_sub_object_uuids']//i[@class='iconfont icon-Create1 text-[18px] font-[700] text-[--color-primary] cursor-pointer']" # Exclude Objects 下有数据新增时"+"按钮Xpath +acc_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath = "//div[@class='account-object-included_sub_object_uuids']//i" # Subordinate Objects 下无数据新增时"+"按钮Xpath +acc_ObjectGroupDetailPage_excludeObjects_addButton_newAdd_posXpath = "//div[@class='account-object-excluded_sub_object_uuids']//i" # Exclude Objects 下无数据新增时"+"按钮Xpath acc_ObjectDetailPage_firstAccObject = url_ObjectDetailPage_firstUrlObject ## 侧滑Objects列表中第一个acc object Xpath acc_ObjectGroupDetailPage_subObjects_search_posId = url_ObjectDetailPage_object_ip_search_posId # Subordinate Objects 下搜索框id acc_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_posXpath = "//button[@class='MuiIconButton-root MuiIconButton-variantPlain MuiIconButton-colorNeutral MuiIconButton-sizeMd MuiMenuButton-root MuiMenuButton-variantOutlined MuiMenuButton-colorNeutral MuiMenuButton-sizeMd css-83p2rh']" # Accounts侧滑窗口的"+"按钮 acc_ObjectGroupDetailPage_subObjects_toggleDraw_closeButton_posXpath = url_ObjectGroupDetailPage_subObjects_toggleDraw_closeButton_posXpath # Accounts侧滑窗口的Close按钮 acc_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_account_posXpath = objectPage_group_sub_object_add_new_select_button_posXpath # Accounts侧滑窗口的"+"按钮下的Account -acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_nameInput_posXpath = "//div[@class='MuiBox-root css-1krxo6z']//input[@class='MuiInput-input css-fqt4w4']" # 侧滑子Create Account页面Name input Xpath +acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_nameInput_posXpath = "(//input[@class='MuiInput-input css-fqt4w4'])[2]" # 侧滑子Create Account页面Name input Xpath acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_itemsAddButton_posXpath = "//div[@class='items']//i[@class='iconfont icon-Create1 font-[700]']" # 侧滑子Create Account页面中Items下的"+"按钮 Xpath -acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_itemsValueInput_posXpath = "//div[@class='MuiBox-root css-1krxo6z']//input[@class='MuiInput-input css-1u0jcuo']" # 侧滑子Create Account页面中Items下的item value输入框 Xpath +acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_itemsValueInput_posXpath = '//div[@class="account-object-expression"]//input' # 侧滑子Create Account页面中Items下的item value输入框 Xpath acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_itemsValueSaveButton_posXpath = "//i[@class='operate-icon iconfont icon-save']" # 侧滑子Create Account页面中Items下的保存按钮 Xpath acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_descriptionTextarea_posXpath = '(//textarea[@placeholder="Please enter the content"])[2]' # 侧滑子Create Account页面中的Description textarea Xpath -acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_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']" # 侧滑子Create Account页面中OK按钮 +acc_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 Account页面中OK按钮 acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_posXpath # 侧滑子Create Account页面确认弹窗的“Yes”按钮 acc_ObjectGroupDetailPage_subObjects_subCreateAccountDrawer_okButton_cancel_posXpath = url_ObjectDetailPage_okButton_cancel_posXpath # 侧滑子Create Account页面确认弹窗的“Cancel”按钮 -accGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath = urlGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath # Exclude Objects Switch Xpath -accGroup_ObjectDetailPage_excludeObjectsSwitch_enableStatus_posXpath = urlGroup_ObjectDetailPage_excludeObjectsSwitch_enableStatus_posXpath # Exclude Objects Switch Xpath开启状态下 -accGroup_ObjectDetailPage_excludeObjectsSwitch_newAdd_posXpath = urlGroup_ObjectDetailPage_excludeObjectsSwitch_newAdd_posXpath # Exclude Objects无数据时新增按钮Xpath +accGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath = "//div[@class='account-object-']//span[@class='MuiButtonBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary PrivateSwitchBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary css-y2jqxi']" # Exclude Objects Switch Xpath +accGroup_ObjectDetailPage_excludeObjectsSwitch_newAdd_posXpath = "//div[@class='account-object-excluded_sub_object_uuids']//i[@class='iconfont icon-Create1 font-[700]']" # Exclude Objects无数据时新增按钮Xpath accGroup_ObjectDetailPage_excludeObjectsSwitch_normalAdd_posXpath = urlGroup_ObjectDetailPage_excludeObjectsSwitch_normalAdd_posXpath # Exclude Objects有数据时新增按钮Xpath -accGroup_ObjectDetailPage_excludeObjects_itemsArea_posXpath = urlGroup_ObjectDetailPage_excludeObjects_itemsArea_posXpath # Exclude Objects下的item区域div Xpath +accGroup_ObjectDetailPage_excludeObjects_itemsArea_posXpath = "//div[@class='account-object-excluded_sub_object_uuids']" # Exclude Objects下的item区域div Xpath acc_ObjectDetailPage_firstObject = url_ObjectDetailPage_firstUrlObject # 侧滑acc Object中第一个url Xpath acc_ObjectDetailPage_secondObject = url_ObjectDetailPage_secondUrlObject # 侧滑acc Object中第二个url Xpath acc_ObjectDetailPage_editgroup_posXpath = "//i[@class='row-edit iconfont icon-Edit cursor fontsize18']" diff --git a/page_element/policies_element_position.py b/page_element/policies_element_position.py index 4520c16c..4a2e57a1 100644 --- a/page_element/policies_element_position.py +++ b/page_element/policies_element_position.py @@ -42,7 +42,7 @@ listPage_policiesSearch_buttonClear_posId = "searchClear" # 清空查询按钮i # profiles模块列设置 listPage_policiesColumn_columnSetting_posId = "eventfixed" # 列设置按钮 listPage_firstRow_checkBox_posXpath = '(//div[contains(@class,"el-table__body-wrapper")]//tr[contains(@class," table_")]//td//span[@class="el-checkbox__input"])[1]' # 列表页第一行数据的CheckBox -list_first_row_first_column_posXpath = '//div[@id="ly-table1-listcontent"]//span[text()="ID"]' # 第一行、第一列--ID +list_first_row_first_column_posXpath = '//div[@aria-rowindex="2"]' # 第一行、第一列--ID # Policies 底部页码栏===================Policies 底部页码栏=====================Policies 底部页码栏=================Policies 底部页码栏=======================Policies 底部页码栏=================Policies 底部页码栏 listPage_bottomTotal_postXpath = '//div[@class="page-box-containcheck"]//*[@class="el-pagination__total"]' # 列表页底部Total元素 @@ -106,10 +106,10 @@ security_policy_add_button_by_xpath = '//label[(normalize-space(text())="Device" security_create_Button_posXpath = '//button[@id="app_create-_OperateBtns_ElRow_Objects_ProxyInterception_Home_App_anonymousComponent"]/span' # 安全创建按钮 security_create_Name_input_frame_PosXpath = '//input[@class="MuiInput-input css-fqt4w4"]' # 创建输入Name框 security_create_add_source_button_click_PosXpath = '//div/div/div/div[1]/div[2]/form/div[4]/div/div/div/i' # 创建添加source按钮 -security_create_add_tunnel_button_click_PosXpath = '(//div[(normalize-space(text())="Tunnel")])[2]' # 选择tunnel按钮 -security_add_tunnel_button = '(//*[@class="iconfont icon-Create1 cursor"])[1]' +security_create_add_tunnel_button_click_PosXpath = '(//div[(normalize-space(text())="Tunnel")])' # 选择tunnel按钮 +security_add_tunnel_button = '//label[text()="Tunnel"]/ancestor::div[@class="flex flex-row group"]//button' security_search_tunnel_frame_click_PosXpath = '(//*[@id="object_ip_search"])[2]' # tunnel搜索框 -security_first_tunnel_inlist_click_PosXpath = '(//*[@class="ellipsis list-popover-click"])[1]' # tunnel列表页的第一个元素 +security_first_tunnel_inlist_click_PosXpath = '//ul[@class="MuiList-root MuiList-vertical MuiList-variantPlain MuiList-colorNeutral MuiList-sizeMd css-1cklc3"]/li[1]' # tunnel列表页的第一个元素 security_first_add_App_Group_right_top_click_PosXpath = '//*[@id="tab-group"]' # "+"App,列表页选择App Group security_first_app_group_inlist_click_PosXpath = '//div/div/div/div[3]/div[1]/div/div[2]/ul/li[1]/div[2]/span/div[2]/div/span' # App Group列表页的第一个元素 security_create_add_source_button_right_click_PosXpath = '//div[2]/div/div[1]/div/div/div/div[2]/div/div/div[1]/div/span[2]/i' # 右划选择框 |
