Skip to content

docs(selenium-devtools): describe the Safari focus handling the adapter has - #438

Merged
vishnuv688 merged 1 commit into
mainfrom
docs/selenium-safari-focus
Oct 19, 2026
Merged

vishnuv688 merged 1 commit into
mainfrom
docs/selenium-safari-focus

Conversation

@vishnuv688

Copy link
Copy Markdown
Member

The Selenium README's Limitations bullet said the plugin brings Safari to the front once after the session starts with `open -a Safari`. That is the WDIO service, Nightwatch and Python behaviour (`restoreBrowserFocus`), not Selenium's.

The bullet now matches the code: before each element click, `sendKeys`, `clear` or `submit` on a Safari session, `focusForInput` (wired as the driver patcher's `beforeInput` hook) switches to the session's own window handle when that window has lost focus and the test is in the top-level document, and `dashboardLaunchCommand` opens the dashboard behind Safari on macOS. The advice to avoid clicking other windows during a live Safari run, and the note that trace mode is unaffected, are kept.

README only, so no changeset.

🤖 Generated with Claude Code

…er has

The Limitations bullet said the plugin runs `open -a Safari` once after the
session starts. That is what the WDIO service, Nightwatch and the Python
adapter do; the Selenium adapter instead switches to the session's own
window before each element input when it has lost focus, and opens the
dashboard behind Safari on macOS. Users reading the README were told about
a mechanism this adapter does not use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only change appears safe to merge.

Summary

Corrects the Selenium README’s explanation of Safari focus handling.

  • The Selenium README explains Safari’s per-input focus behavior.

Reviews (1) · Last reviewed commit: "docs(selenium-devtools): describe the Sa..." · Reviewed by Greptile

@vishnuv688
vishnuv688 merged commit a4f6eac into main Oct 19, 2026
11 checks passed
@vishnuv688
vishnuv688 deleted the docs/selenium-safari-focus branch October 19, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant