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
Commit b22eecd
Browse filesBrowse the repository at this point in the historyBrowse files
throwComputerError("stale_window","The editor's window moved or is not an observed window; observe again.")
731
738
}
732
-
guardlet current =attribute(root, kAXFocusedUIElementAttribute),holdsFocus(current, element)else{throwComputerError("focus_changed","The exact editor is no longer focused; remaining input was not dispatched. Observe again.")}
739
+
guardlet current =attribute(root, kAXFocusedUIElementAttribute),holdsFocus(current, element), editor.map({CFEqual($0, current)})??trueelse{throwComputerError("focus_changed","The exact editor is no longer focused; remaining input was not dispatched. Observe again.")}
733
740
// Keystrokes land on the focused element, so it (or the text control targeted) must take text.
guard targetTakesText || takesText(receiver)else{throwComputerError("unsupported_action","Keyboard focus is not in a text input; no text was sent. Click into the text field, or use press_key for shortcuts.")}
744
+
editor = receiver
737
745
}
738
746
// AX focus requests and app activation may settle asynchronously. Wait without
739
747
// posting input or requesting focus again; every eventual input keeps the same guard.
assertfind(snapshot, role='AXTextField', label='Fixture editable text')['value'].endswith(' window'), 'Window target did not type into its focused editor'
0 commit comments