updated how we select the search box

This commit is contained in:
2026-07-06 22:48:50 -05:00
parent 6ac8b29305
commit a845447f87

View File

@@ -95,10 +95,11 @@ def connect_main(ctrl, log):
def navigate_to_drawer(main, drawer_id, ctrl, timeouts, log):
"""Type the drawer ID into the search box and click Go."""
box = main.child_window(title=ctrl["drawer_box_title"], class_name="Edit")
# Use best_match name "Edit" instead of title — the title is placeholder
# text that changes once the user types in the box.
box = main["Edit"]
box.wait("visible ready", timeout=timeouts["nav"])
box.select()
box.set_edit_text("")
box.set_edit_text(drawer_id)
time.sleep(timeouts["settle"])