summaryrefslogtreecommitdiff
path: root/support/ui_utils/element_position
diff options
context:
space:
mode:
authoryouzhijiang <[email protected]>2024-11-27 11:19:52 +0800
committeryouzhijiang <[email protected]>2024-11-27 11:19:52 +0800
commit7fc5945097bb3d7ab7a0fe2bd1aa96eb60f331ed (patch)
treeecd20e9b5af5a1d5794fb37738aec246991319a3 /support/ui_utils/element_position
parentd6d3a49f35ea0ccfa4b08ffdfb43cd9142a5e077 (diff)
object逻辑调整
Diffstat (limited to 'support/ui_utils/element_position')
-rw-r--r--support/ui_utils/element_position/map_element_position_library.py53
-rw-r--r--support/ui_utils/element_position/object_element_position.py6
2 files changed, 50 insertions, 9 deletions
diff --git a/support/ui_utils/element_position/map_element_position_library.py b/support/ui_utils/element_position/map_element_position_library.py
index 1b9b8b59d..9f910a1bf 100644
--- a/support/ui_utils/element_position/map_element_position_library.py
+++ b/support/ui_utils/element_position/map_element_position_library.py
@@ -1215,9 +1215,18 @@ object_subscriberid_object_element_position = {
"objectPage_okButton_posXpath": subscriberidObjectPage_okButton_posXpath,
"objectPage_okButton_warningYes_posXpath": subscriberidObjectPage_okButton_warningYes_posXpath
},
+ "edit":{
+ "ObjectListPage_editButton_posXpath": ipObjectListPage_editButton_posXpath,
+ "objectPage_addItem_posXpath": subscriberidobjectPage_addItem_posXpath,
+ "ObjectPage_edit_item_posXpath": ipObjectPage_edit_item_posXpath,
+ "ObjectPage_search_item_posXpath": ipObjectPage_search_item_posXpath,
+ "objectPage_inputItem_posXpath": subscriberidObjectPage_inputItem_posXpath,
+ "objectPage_button_saveItem_posXpath": subscriberidPage_button_saveItem_posXpath,
+ "objectPage_okButton_posXpath": subscriberidObjectPage_okButton_posXpath,
+ },
"search": {
"objectListPage_searchLabel_posXpath": subscriberidObjectListPage_searchLabel_posXpath,
- "objectListPage_searchLabel_selectName_posXpath": subscriberidObjectListPage_searchLabel_selectName_posXpath,
+ "objectListPage_searchLabel_selectID_posXpath": objectListPage_search_select_Id_posXpath,
"objectListPage_tableTbody_posXpath": subscriberidObjectListPage_tableTbody_posXpath,
"objectListPage_search_input_posXpath": subscriberidObjectListPage_search_input_posXpath,
"objectListPage_search_dropDown_item_posXpath": subscriberidObjectListPage_search_dropDown_item_posXpath,
@@ -1251,9 +1260,21 @@ object_keywords_object_element_position = {
"objectPage_okButton_warningYes_posXpath": keywordsObjectPage_okButton_warningYes_posXpath,
"ObjectPage_sameItem_addItem_posXpath": urlObjectPage_sameItem_addItem_posXpath,
},
+ "edit": {
+ "ObjectListPage_editButton_posXpath": ipObjectListPage_editButton_posXpath,
+ "objectPage_addItem_posXpath": keywordsobjectPage_addItem_posXpath,
+ "ObjectPage_edit_item_posXpath": ipObjectPage_edit_item_posXpath,
+ "ObjectPage_search_item_posXpath": ipObjectPage_search_item_posXpath,
+ "objectPage_inputItem_posXpath": keywordsObjectPage_inputItem_posXpath,
+ "objectPage_button_saveItem_posXpath": keywordsObjectPage_button_saveItem_posXpath,
+ "objectPage_okButton_posXpath": keywordsObjectPage_okButton_posXpath,
+ "ObjectPage_sameItem_addItem_posXpath": keywordsObjectPage_sameItem_addItem_posXpath,
+ "ObjectPage_sameItem_inputItem_posXpath":keywordsObjectPage_sameItem_inputItem_posXpath
+ },
"search": {
"objectListPage_searchLabel_posXpath": keywordsObjectListPage_searchLabel_posXpath,
"objectListPage_searchLabel_selectName_posXpath": keywordsObjectListPage_searchLabel_selectName_posXpath,
+ "objectListPage_searchLabel_selectID_posXpath": objectListPage_search_select_Id_posXpath,
"objectListPage_tableTbody_posXpath": keywordsObjectListPage_tableTbody_posXpath,
"objectListPage_search_input_posXpath": keywordsObjectListPage_search_input_posXpath,
"objectListPage_search_dropDown_item_posXpath": keywordsObjectListPage_search_dropDown_item_posXpath,
@@ -1261,7 +1282,7 @@ object_keywords_object_element_position = {
},
"delete": {
"objectListPage_allSelect_posXpath": keywordsObjectListPage_allSelect_posXpath,
- "objectListPage_deleteButton_posId": keywordsObjectListPage_deleteButton_posId,
+ "objectListPage_deleteButton_posXpath": keywordsObjectListPage_deleteButton_posXpath,
"objectListPage_deleteButton_warningYes_posXpath": keywordsObjectListPage_deleteButton_warningYes_posXpath
}
}
@@ -1382,7 +1403,7 @@ object_imsi_object_element_position = {
},
"delete": {
"objectListPage_allSelect_posXpath": imsiObjectListPage_allSelect_posXpath,
- "objectListPage_deleteButton_posId": imsiObjectListPage_deleteButton_posId,
+ "objectListPage_deleteButton_posId": imsiObjectListPage_deleteButton_posXpath,
"objectListPage_deleteButton_warningYes_posXpath": imsiObjectListPage_deleteButton_warningYes_posXpath
}
}
@@ -1413,7 +1434,7 @@ object_phone_number_object_element_position = {
},
"delete": {
"objectListPage_allSelect_posXpath": imsiObjectListPage_allSelect_posXpath,
- "objectListPage_deleteButton_posId": imsiObjectListPage_deleteButton_posId,
+ "objectListPage_deleteButton_posId": imsiObjectListPage_deleteButton_posXpath,
"objectListPage_deleteButton_warningYes_posXpath": imsiObjectListPage_deleteButton_warningYes_posXpath
}
}
@@ -1439,11 +1460,20 @@ object_mobile_identity_object_element_position = {
"objectPage_okButton_warningYes_posXpath": imsiObjectPage_okButton_warningYes_posXpath,
"ObjectPage_sameItem_addItem_posXpath": phoneNumberobjectPage_sameItem_addItem_posXpath,
"ObjectPage_sameItem_inputItem_posXpath":phoneNumberObjectPage_sameItem_inputItem_posXpath
-
+ },
+ "edit": {
+ "ObjectListPage_editButton_posXpath": ipObjectListPage_editButton_posXpath,
+ "objectPage_addItem_posXpath": imsiobjectPage_addItem_posXpath,
+ "ObjectPage_edit_item_posXpath": ipObjectPage_edit_item_posXpath,
+ "ObjectPage_search_item_posXpath": ipObjectPage_search_item_posXpath,
+ "objectPage_inputItem_posXpath": imsiObjectPage_inputItem_posXpath,
+ "objectPage_button_saveItem_posXpath": imsiObjectPage_button_saveItem_posXpath,
+ "objectPage_okButton_posXpath": imsiObjectPage_okButton_posXpath,
},
"search": {
"objectListPage_searchLabel_posXpath": imsiObjectListPage_searchLabel_posXpath,
"objectListPage_searchLabel_selectName_posXpath": imsiObjectListPage_searchLabel_selectName_posXpath,
+ "objectListPage_searchLabel_selectID_posXpath": objectListPage_search_select_Id_posXpath,
"objectListPage_tableTbody_posXpath": imsiObjectListPage_tableTbody_posXpath,
"objectListPage_search_input_posXpath": imsiObjectListPage_search_input_posXpath,
"objectListPage_search_dropDown_item_posXpath": imsiObjectListPage_search_dropDown_item_posXpath,
@@ -1451,7 +1481,7 @@ object_mobile_identity_object_element_position = {
},
"delete": {
"objectListPage_allSelect_posXpath": imsiObjectListPage_allSelect_posXpath,
- "objectListPage_deleteButton_posId": imsiObjectListPage_deleteButton_posId,
+ "objectListPage_deleteButton_posXpath": imsiObjectListPage_deleteButton_posXpath,
"objectListPage_deleteButton_warningYes_posXpath": imsiObjectListPage_deleteButton_warningYes_posXpath
}
}
@@ -1474,9 +1504,18 @@ object_apn_object_element_position = {
"objectPage_okButton_posXpath": apnObjectPage_okButton_posXpath,
"objectPage_okButton_warningYes_posXpath": apnObjectPage_okButton_warningYes_posXpath
},
+ "edit": {
+ "ObjectListPage_editButton_posXpath": ipObjectListPage_editButton_posXpath,
+ "objectPage_addItem_posXpath": subscriberidobjectPage_addItem_posXpath,
+ "ObjectPage_edit_item_posXpath": ipObjectPage_edit_item_posXpath,
+ "ObjectPage_search_item_posXpath": ipObjectPage_search_item_posXpath,
+ "objectPage_inputItem_posXpath": subscriberidObjectPage_inputItem_posXpath,
+ "objectPage_button_saveItem_posXpath": subscriberidPage_button_saveItem_posXpath,
+ "objectPage_okButton_posXpath": subscriberidObjectPage_okButton_posXpath,
+ },
"search": {
"objectListPage_searchLabel_posXpath": apnObjectListPage_searchLabel_posXpath,
- "objectListPage_searchLabel_selectName_posXpath": apnObjectListPage_searchLabel_selectName_posXpath,
+ "objectListPage_searchLabel_selectID_posXpath": objectListPage_search_select_Id_posXpath,
"objectListPage_tableTbody_posXpath": apnObjectListPage_tableTbody_posXpath,
"objectListPage_search_input_posXpath": apnObjectListPage_search_input_posXpath,
"objectListPage_search_dropDown_item_posXpath": apnObjectListPage_search_dropDown_item_posXpath,
diff --git a/support/ui_utils/element_position/object_element_position.py b/support/ui_utils/element_position/object_element_position.py
index ad2697077..99af9aaec 100644
--- a/support/ui_utils/element_position/object_element_position.py
+++ b/support/ui_utils/element_position/object_element_position.py
@@ -140,7 +140,7 @@ mobile_identitiesObjectListPage_createButton_posXpath = '//span[@class="action-c
mobile_identitiesObjectListPage_dropDown_createButton_posXpath = "//ul[@class='base-Popper-root MuiMenu-root Mui-expanded MuiMenu-variantOutlined MuiMenu-colorNeutral MuiMenu-sizeMd css-1iuehdr']//li[1]" # 从下拉菜单中选择Mobile Identity
imsiObjectListPage_searchLabel_posXpath = ipObjectListPage_searchLabel_posId = "//div[@class='MuiAutocomplete-wrapper MuiAutocomplete-multiple css-1h1ala5']//input" # 查询框id
imsiObjectListPage_searchLabel_selectName_posXpath = '//li[@id="2-_FilteredSearch_ElRow_Objects_mobile_identity_Home_App_anonymousComponent"]' # 查询Name
-imsiObjectListPage_deleteButton_posId = "//div[@class='flex justify-start items-center mr-[20px]']//span[text()='Delete']"
+imsiObjectListPage_deleteButton_posXpath = "//div[@class='flex justify-start items-center mr-[20px]']//span[text()='Delete']"
imsiObjectListPage_deleteButton_warningYes_posXpath = ipObjectListPage_deleteButton_warningYes_posXpath
imsiObjectListPage_allSelect_posXpath = objectListPage_allSelect_posXpath
imsiObjectListPage_search_input_posXpath = objectListPage_search_input_posXpath
@@ -312,7 +312,7 @@ urlObjectListPage_deleteButton_warningYes_posXpath = httpSignatureObjectListPage
# keywords
keywordsObjectListPage_createButton_posXpath = '//span[@class="action-create inline-flex mr-[8px] "]/button'
-keywordsObjectListPage_deleteButton_posId = '//*[@class="action-delete inline-flex mr-[8px] "]'
+keywordsObjectListPage_deleteButton_posXpath = '//*[@class="action-delete inline-flex mr-[8px] "]'
keywordsObjectListPage_deleteButton_warningYes_posXpath = httpSignatureObjectListPage_deleteButton_warningYes_posXpath
# httpSignatureObjectListPage_deleteButton_warningNo_posCss
keywordsObjectListPage_dropDown_createButton_posXpath = '//li[@class="MuiMenuItem-root MuiMenuItem-colorNeutral MuiMenuItem-variantPlain keyword-item css-1rt9hnn"]'
@@ -331,6 +331,8 @@ keywordsObjectPage_item_value_plus_posXpath = '//*[@class="customRow css-863uk6"
keywordsObjectPage_button_saveItem_posXpath = '//*[@class="flex flex-row items-center"]//i[@class="operate-icon iconfont icon-save"]'
keywordsObjectPage_okButton_posXpath = '//*[@class="form-action bg-[--color-background] flex justify-center py-[12px] absolute bottom-0 w-full"]//button[1]'
keywordsObjectPage_okButton_warningYes_posXpath = "//button[@class='el-button el-button--default el-button--small el-button--primary operation-confirm']//span"
+keywordsObjectPage_sameItem_addItem_posXpath = '//*[@class="pl-[40px] pt-[0!important]"]//i[@class="iconfont icon-Create1 font-[700]"]'
+keywordsObjectPage_sameItem_inputItem_posXpath = "(//div[@class='form-list-row css-xpbhx9']//div[@class='MuiBox-root css-0']//input[@class='MuiInput-input css-1u0jcuo'])[last()]"
# account
accountObjectListPage_createButton_posXpath = '//span[@class="action-create inline-flex mr-[8px] "]/button'