diff options
| author | guowenzheng <[email protected]> | 2024-11-20 19:12:18 +0800 |
|---|---|---|
| committer | guowenzheng <[email protected]> | 2024-11-20 19:12:18 +0800 |
| commit | 896ebd0064940394fc5fb2ce144732bdedcd437d (patch) | |
| tree | 26cb9cb0efb4cf16b6a148a84d8543105f3d62c0 /page_element/objects_element_position.py | |
| parent | 811d40959940287323e288758c32e39a5e79ea59 (diff) | |
元素定位逻辑修改
Diffstat (limited to 'page_element/objects_element_position.py')
| -rw-r--r-- | page_element/objects_element_position.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/page_element/objects_element_position.py b/page_element/objects_element_position.py index 5cd9c9a0..d8451b5a 100644 --- a/page_element/objects_element_position.py +++ b/page_element/objects_element_position.py @@ -7,8 +7,8 @@ listpage_delete_yes_button_posXpath = '//button[@class="MuiButtonBase-root MuiBu listpage_search_box_posXpath = '//div[@class="MuiAutocomplete-wrapper MuiAutocomplete-multiple css-1h1ala5"]/input' # 查询框Xpath!!!!! listpage_search_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-1afa66w"]' #查询按钮Xapth!!!!! listpage_search_input_posXpath = '//input[@class="MuiAutocomplete-input css-qdyksh"]' #查询输入Xpath!!!!! -listPage_select_first_object_posXpath = '(//span[@class="MuiCheckbox-root MuiCheckbox-variantOutlined MuiCheckbox-colorNeutral MuiCheckbox-sizeMd MuiDataGrid-checkboxInput css-q3lb41"]//input)[1]' #列表中第一行数据前的复选框!!!!! -listpage_select_second_object_posXpath = '(//span[@class="MuiCheckbox-root MuiCheckbox-variantOutlined MuiCheckbox-colorNeutral MuiCheckbox-sizeMd MuiDataGrid-checkboxInput css-q3lb41"]//input)[2]'#列表中第二行数据前的复选框!!!!! +listPage_select_first_object_posXpath = '(//div[@aria-colindex="1"]//input)[1]' #列表中第一行数据前的复选框!!!!! +listpage_select_second_object_posXpath = '(//div[@aria-colindex="1"]//input)[2]'#列表中第二行数据前的复选框!!!!! 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!!!!! @@ -1734,16 +1734,16 @@ geoObjectPage_button_editItem_text_posXpath = "//div[@class='object-item-box']// # policy页面元素====================================================== # =================================================================================policy页面通用元素================================ -policy_button_add_contions_posXpath = "//div[@class='MultipleSelect ConditionModuleSelect']//span[text()='Add Condition']" -policy_button_type_add_contions_posXpath = "//p[normalize-space(text())='{replaceValue}']/ancestor::label[@class='el-form-item__label']/following-sibling::div/div[@class='MultipleSelect SourceSelect']" -policy_button_add_filter_psXpath = "//p[normalize-space(text())='{replaceValue}']/ancestor::label[@class='el-form-item__label']/following-sibling::div/div[@class='MultipleSelect FilterSelect']" +policy_button_add_contions_posXpath = '//button[text()="Add Condition"]' +policy_button_type_add_contions_posXpath = '//label[text()="{replaceValue}"]/ancestor::div[@class="flex flex-row group"]//button/i' +policy_button_add_filter_psXpath = "//label[normalize-space(text())='{replaceValue}']/ancestor::div[@class='flex flex-row group']/div[@class='flex flex-col items-center select-picker']//i" policy_button_add_application_posXpath = "//p[normalize-space(text())='Application']/ancestor::label[@class='el-form-item__label']/following-sibling::div//div[@class='MultipleSelect AppSelect']" -policy_list_add_contions_posXpath = "//div[@class='slider-container']//div[normalize-space(text())='{replaceValue}']" -statistics_policy_template_add_button_posXpath = "//div[text()='Statistics Template']/following-sibling::div[@class='MultipleSelect FlagSelect']//div[@class='addobject width300px addobject-long-list obj-content-null cursorPointer borderColor']" -statistics_policy_template_first_template_posXpath = "//div[@class='FlagList list-box']//ul[@class='row-container tableList']/li[1]" +policy_list_add_contions_posXpath = "//div[normalize-space(text())='{replaceValue}']" +statistics_policy_template_add_button_posXpath = '//div[@class="statistics-policy-template_profile"]//i' +statistics_policy_template_first_template_posXpath = '//ul[@class="MuiList-root MuiList-vertical MuiList-variantPlain MuiList-colorNeutral MuiList-sizeMd css-1cklc3"]/li[1]' intercept_policy_application_add_button_posID = "policy_app_add-_AppSelect_ElFormItem_ElForm_VPanel_VEditPanel_policy_Intercept_edit_Home_App_anonymousComponent" -shaping_policy_profile_add_button_posXpath = "//label[text()='Shaping Profile']//parent::*//div[@class='MultipleSelect FlagSelect']//div[@class='addobject width300px addobject-long-list obj-content-null cursorPointer borderColor']" +shaping_policy_profile_add_button_posXpath = '//label[normalize-space(text())="Shaping Profile"]/following-sibling::div//button/i' shaping_policy_profile_first = "//ul[@cLass='row-container tableList profile-table floatleft margin-top20 overflow-y-auto overflow-x-hidden width100']/li[1]" -service_chaining_policy_ssf_add_button_posID = "policy_sff_add-_SFFSelect_ElFormItem_ElForm_VPanel_VEditPanel_policy_service_chaining_write_Home_App_anonymousComponent" +service_chaining_policy_ssf_add_button_posID = '//label[normalize-space(text())="SFF Profile"]/following-sibling::div//button/i' service_chaining_policy_ssf_first = "//div[@class='slider-container positionRelative height100']//ul[@class='row-container tableList profile-table floatleft margin-top20 overflow-y-auto overflow-x-hidden width100']/li[1]" policy_button_add_port_filter_psXpath = "//p[normalize-space(text())='{replaceValue}']/ancestor::label[@class='el-form-item__label']/following-sibling::div/div[@class='MultipleSelect SourceSelect']"
\ No newline at end of file |
