summaryrefslogtreecommitdiff
path: root/page_element/objects_element_position.py
diff options
context:
space:
mode:
authorguowenzheng <[email protected]>2024-10-25 10:27:13 +0800
committerguowenzheng <[email protected]>2024-10-25 10:27:13 +0800
commitdbeb3471037cff138af8822c3325b6452e8ddc79 (patch)
treee242b1dea4cd4ff21cbc03bb0358d58fff8605ba /page_element/objects_element_position.py
parentee3edc1e04030abd32ec0fe31c23d8d6f1eba4e3 (diff)
元素定位逻辑修改
Diffstat (limited to 'page_element/objects_element_position.py')
-rw-r--r--page_element/objects_element_position.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/page_element/objects_element_position.py b/page_element/objects_element_position.py
index b69e494a..1bcc6f49 100644
--- a/page_element/objects_element_position.py
+++ b/page_element/objects_element_position.py
@@ -1432,7 +1432,7 @@ flag_ObjectDetailPage_auditLogsDrawer_firstRowLog_checkBox_posXpath = url_Object
flag_ObjectDetailPage_auditLogsDrawer_compareButton_posXpath = url_ObjectDetailPage_auditLogsDrawer_compareButton_posXpath # Audit Logs 侧滑页Compare 按钮Xpath
flag_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath = url_ObjectDetailPage_auditLogsDrawer_compareDrawer_operationText_posXpath # Audit Logs 侧滑页点击Compare后的 operation text Xpath
flag_ObjectDetailPage_flagItemChunk_posXpath = '//div[@class="CommonItems"]//div[@class="edit-row"]//span[@class="flex"]//span[contains(@class,"flag-item-chunk")]' # Item flag 选择块
-flag_ObjectDetailPage_flagItemChunk_template_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 flag-- css-d6ftns"])[{}]' # Item flag 选择块!!!!!
+flag_ObjectDetailPage_flagItemChunk_template_posXpath = '(//div[@data-testid="virtuoso-item-list"]/div[@data-index="0"]//button)[{}]' # Item flag 选择块!!!!!
flag_ObjectDetailPage_DelCross_posXpath = url_ObjectDetailPage_urlDelCross_posXpath # item删除按钮Xpath
# 详情页通用元素
flag_ObjectDetailPage_mainOkButton_poId = 'OK-_FlagsDetail_Home_App_anonymousComponent' # OK按钮ID
@@ -1442,23 +1442,23 @@ flag_ObjectDetailPage_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_
# 对象组详情页
flag_ObjectGroupDetailPage_subObjects_addButton_normalAdd_posXpath = '//div[@class="flag-object-included_sub_object_uuids"]//i[@class="iconfont icon-Create1 text-[18px] text-weight-700] text-[--color-primary] cursor-pointer"]' # Subordinate Objects 下有数据新增时"+"按钮Xpath!!!!!
flag_ObjectGroupDetailPage_subObjects_addButton_newAdd_posXpath = '//div[@class="flag-object-included_sub_object_uuids"]//i' # Subordinate Objects 下无数据新增时"+"按钮Xpath!!!!!
-flag_ObjectDetailPage_firstObject = '//li[@data-id="178666"]//span' ## 侧滑Objects列表中第一个flag object Xpath!!!!!!
+flag_ObjectDetailPage_firstObject = '//ul[@class="MuiList-root MuiList-vertical MuiList-variantPlain MuiList-colorNeutral MuiList-sizeMd css-1cklc3"]/li[1]' ## 侧滑Objects列表中第一个flag object Xpath!!!!!!
flag_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"]/i' # Flag侧滑窗口的"+"按钮!!!!!
-flag_ObjectGroupDetailPage_subObjects_toggleDraw_closeButton_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"]' # Flag侧滑窗口的Close按钮!!!!!
+flag_ObjectGroupDetailPage_subObjects_toggleDraw_closeButton_posXpath = '//i[@class="iconfont icon-Clear_aNormal close-icon"]' # Flag侧滑窗口的Close按钮!!!!!
flag_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_flag_posXpath = acc_ObjectGroupDetailPage_subObjects_toggleDraw_addButton_account_posXpath # Flag侧滑窗口的"+"按钮下的Flag
flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_nameInput_posXpath = '(//input[@class="MuiInput-input css-fqt4w4"])[2]' # 侧滑子Create Flag页面Name input Xpath!!!!!
flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_itemsAddButton_posXpath = '//div[@class="mt-[10px] flex justify-center"]//i[@class="iconfont icon-Create1 font-[700]"]' # 侧滑子Create Flag页面中Items下的"+"按钮 Xpath!!!!!
flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_descriptionTextarea_posXpath = '(//textarea[@placeholder="Please enter the content"])[2]' # 侧滑子Create Flag 页面中的Description textarea Xpath!!!!!
-flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_itemsValueSaveButton_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 action-save css-kv7t48"]' # 侧滑子Create Flag页面中Items下的保存按钮 Xpath!!!!!
+flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_itemsValueSaveButton_posXpath = '//i[@class="operate-icon iconfont icon-save"]' # 侧滑子Create Flag页面中Items下的保存按钮 Xpath!!!!!
flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_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"]//span[@class="MuiTouchRipple-root css-w0pj6f"])[2]' # 侧滑子Create Flag 页面中OK按钮!!!!!
flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_okButton_yes_posXpath = url_ObjectDetailPage_okButton_yes_posXpath # 侧滑子Create Flag 页面确认弹窗的“Yes”按钮
flag_ObjectGroupDetailPage_subObjects_subCreateFlagDrawer_okButton_cancel_posXpath = url_ObjectDetailPage_okButton_cancel_posXpath # 侧滑子Create Flag页面确认弹窗的“Cancel”按钮
-flagGroup_ObjectDetailPage_excludeObjectsSwitch_normalAdd_posXpath = '//div[@class="flag-object-excluded_sub_object_uuids"]//i[@class="iconfont icon-Create1 text-[18px] text-weight-700] text-[--color-primary] cursor-pointer"]' # Exclude Objects有数据时新增按钮Xpath!!!!!
-flagGroup_ObjectDetailPage_excludeObjectsSwitch_newAdd_posXpath = '//div[@class="flag-object-excluded_sub_object_uuids"]//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-1d67a6h"]' # Exclude Objects无数据时新增按钮Xpath!!!!!
-flag_ObjectDetailPage_secondObject = '//li[@data-id="178665"]//span' # 侧滑 Object中第二个url Xpath!!!!!
+flagGroup_ObjectDetailPage_excludeObjectsSwitch_normalAdd_posXpath = '//div[@class="flag-object-excluded_sub_object_uuids"]//i[@class="iconfont icon-Create1 text-[18px] font-[700] text-[--color-primary] cursor-pointer"]' # Exclude Objects有数据时新增按钮Xpath!!!!!
+flagGroup_ObjectDetailPage_excludeObjectsSwitch_newAdd_posXpath = '//div[@class="flag-object-excluded_sub_object_uuids"]' # Exclude Objects无数据时新增按钮Xpath!!!!!
+flag_ObjectDetailPage_secondObject = '//ul[@class="MuiList-root MuiList-vertical MuiList-variantPlain MuiList-colorNeutral MuiList-sizeMd css-1cklc3"]/li[2]' # 侧滑 Object中第二个url Xpath!!!!!
flagGroup_ObjectDetailPage_excludeObjects_itemsArea_posXpath = '//div[@class="flag-object-excluded_sub_object_uuids"]' # Exclude Objects下的item区域div Xpath!!!!!
# flag_ObjectDetailPage_firstObject =url_ObjectDetailPage_firstUrlObject # 侧滑 Object中第一个url Xpath
-flagGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath = urlGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath # Exclude Objects Switch Xpath
+flagGroup_ObjectDetailPage_excludeObjectsSwitch_posXpath = "//div[@class='flag-object-']//span[@class='MuiButtonBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary PrivateSwitchBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary css-y2jqxi']" # Exclude Objects Switch Xpath
flagGroup_ObjectDetailPage_subOkButton_posId = 'OK-_FlagsDetail_VDraswer_EditDraw_FlagsDetail_Home_App_anonymousComponent'
flagGroup_ObjectDetailPage_subOkButton_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"]//span[@class="MuiTouchRipple-root css-w0pj6f"])[2]' # ok按钮xpath!!!!!
flagGroup_ObjectDetailPage_subOkButton_yes_posXpath = "//div[@class='el-message-box__wrapper']/div/div[3]/button[2]/span" # 子确认弹窗的“Yes”按钮