Skip to content

Add --settle-timeout to bound the wait before a screenshot - #24

Merged
andiwand merged 3 commits into
mainfrom
feat/settle-timeout
Nov 28, 2026
Merged

andiwand merged 3 commits into
mainfrom
feat/settle-timeout

Conversation

@andiwand

@andiwand andiwand commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

The wait for a page to settle before a screenshot was fixed at 10 seconds. compare-html, compare-html-server and html-render-diff now take --settle-timeout (default 10), passed down to settle().

  • The page itself now gets exactly the timeout; WebDriver's script timeout is one second longer, so the page gives up first. Before, the page got timeout − 1, which would go negative for a small value.
  • The value must be positive and finite.
  • README: the settle wait counts toward --timeout.
  • Test: with settle_timeout=0.3 the busy page is captured before it turns green.

Firefox tests could not run locally (Selenium Manager cannot install Firefox here); Chrome passes.

andiwand and others added 3 commits November 28, 2026 10:54
The wait for a page to settle was fixed at 10 seconds. compare-html,
compare-html-server and html-render-diff now take --settle-timeout, which
is passed down to settle(). The page gets exactly that long, and WebDriver
a second more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FW6WZbM9Dou1Dt4UMehJtt
The timeout, retries, driver, worker count, window size and settle timeout
were spelled out in every signature and argparse call that used them, and the
help texts repeated the numbers; they now come from one module and the help
texts read %(default)s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FW6WZbM9Dou1Dt4UMehJtt
@andiwand
andiwand merged commit 13cf9be into main Nov 28, 2026
6 checks passed
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