You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wait step that clicks an image can pause a run with Pause when unfocused #201
With Pause when unfocused on, a sequence's allowed windows are the ones under its click and hold points. A wait_image step with "click the image" set clicks wherever the image is found, so a window that appears only there is not in that set. If that click brings it to the front, the run pauses at the next step.
Sequence: click a button in window A that opens window B, then a wait-for-image step on a button in B with click on, then another step.
Turn on Pause when unfocused and start.
After the image click, B is in front and the run pauses ("waiting for the target window to be in front").
Suggested fix
After a wait step clicks its match, add the root window under that point (if it isn't ours) to _step_hwnds for the rest of the run, the same way windows under step points are added at Start.
Acceptance criteria
A test like TestSequenceFocus.test_any_step_window_counts_as_in_front where the clicked image is in a window no step point covers, and the run keeps going
Activity