reworked how we waited for select->
This commit is contained in:
@@ -131,10 +131,17 @@ def open_send_to_file(main, app, ctrl, timeouts):
|
||||
|
||||
def perform_export(dlg, ctrl, timeouts):
|
||||
"""Click Select -> then OK to start the export."""
|
||||
dlg.child_window(title=ctrl["select_btn_title"], class_name="Button").click()
|
||||
time.sleep(timeouts["settle"])
|
||||
# Wait for the Select button to be ready — the dialog may still be
|
||||
# populating its controls after appearing.
|
||||
select_btn = dlg.child_window(title=ctrl["select_btn_title"], class_name="Button")
|
||||
select_btn.wait("visible ready enabled", timeout=timeouts["dialog"])
|
||||
select_btn.click()
|
||||
|
||||
dlg.child_window(title=ctrl["ok_btn_title"], class_name="Button").click()
|
||||
# Wait for the OK button to become ready — transferring files to the
|
||||
# selected side can take a while on large drawers.
|
||||
ok_btn = dlg.child_window(title=ctrl["ok_btn_title"], class_name="Button")
|
||||
ok_btn.wait("visible ready enabled", timeout=timeouts["dialog"])
|
||||
ok_btn.click()
|
||||
|
||||
|
||||
def wait_for_export(app, ctrl, timeouts, log):
|
||||
|
||||
Reference in New Issue
Block a user