import sys
import xml.etree.ElementTree as ET

path = sys.argv[1]
root = ET.parse(path).getroot()
for node in root.iter("node"):
    text = (node.get("text") or "").strip()
    desc = (node.get("content-desc") or "").strip()
    rid = node.get("resource-id") or ""
    bounds = node.get("bounds") or ""
    clickable = node.get("clickable") or "false"
    if text or desc or "login" in rid.lower() or "register" in rid.lower():
        print(f"text={text!r} desc={desc!r} id={rid} bounds={bounds} click={clickable}")
