Skip to content

Commit 411ac0b

Browse files
inspector attribute changes
1 parent b8faf63 commit 411ac0b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Apps/Mobile/Android_Inspector_ZeuZ.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def find_matching_element(root, selected_element) -> bool:
216216
# Iterate through all elements with the same tag in root
217217
for elem in root.iter(tag):
218218
if elem.attrib == attribs and (elem.text or "").strip() == text:
219-
elem.set("zeuz", "ai")
219+
elem.set("zeuz", "aiplugin")
220220
return True
221221

222222
return False
@@ -273,13 +273,16 @@ def send_to_zeuz():
273273
# Convert the modified XML tree to string
274274
modified_xml_string = ET.tostring(root, encoding='unicode')
275275

276+
print("\n\n------------- Modified XML -------------------")
277+
print(modified_xml_string)
278+
print("---------------------------------------------\n\n")
276279
# Send the request to Zeuz server
277280
headers = {
278281
"X-Api-Key": settings['api_key'],
279282
}
280283
content = json.dumps({
281284
'page_src': modified_xml_string,
282-
"action_type": "appium",
285+
"action_type": "android",
283286
})
284287
response = requests.post(
285288
f"{settings['url']}ai_record_single_action/",

0 commit comments

Comments
 (0)