Skip to content

feat(basepage): withNewWindow / withNewTab - #103

Merged
shossain786 merged 1 commit into
masterfrom
feat/with-new-window
Oct 3, 2026
Merged

shossain786 merged 1 commit into
masterfrom
feat/with-new-window

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

Closes #49.

  • withNewWindow(opener, body): runs the opener, switches to the new window via handle diff, runs the body, closes the new window, restores the original in finally
  • withNewTab alias
  • Docs recipe added

Deviations from the issue's sketch, deliberately:

  • Two-arg form: a single Runnable has no way to run code in the new window, since the switch happens after it returns.
  • No window opening throws TimeoutException instead of a silent no-op, so a missing window cannot make a test pass without running its assertions.

Verified: new BasePageNewWindowTest covers normal open, alias, no window, body throws, opener throws; full suite 563 green.

🤖 Generated with Claude Code

…estore (#49)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shossain786
shossain786 merged commit e95d271 into master Oct 3, 2026
2 checks passed
@shossain786
shossain786 deleted the feat/with-new-window branch October 3, 2026 17:46
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.

BasePage.withNewWindow(Runnable) scoping for links that open a new tab

1 participant