updated how we select the search box
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user