Skip to content

fix(page): call client.command inside wait_for_navigation! so a command override runs once - #706

Merged
route merged 1 commit into
mainfrom
fix/page-command-wait-double-call
Nov 15, 2026
Merged

route merged 1 commit into
mainfrom
fix/page-command-wait-double-call

Conversation

@route

@route route commented Nov 15, 2026

Copy link
Copy Markdown
Member

Page#command(wait:) called command again inside wait_for_navigation!, so a subclass that overrides command, like Cuprite's Page, ran its override twice for a waiting command.

The block now calls client.command directly, after the slowmo sleep. The sleep moves out of the wait, so it runs once before navigation tracking starts.

…nd override runs once

Page#command(wait:) called command again in the block, which ran a subclass override such as Cuprite's twice. Call client.command there, after the slowmo sleep.
@route
route merged commit 1cb5f03 into main Nov 15, 2026
7 checks passed
@route
route deleted the fix/page-command-wait-double-call branch November 15, 2026 16:04
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