Skip to content

feat(examples): add Stagehand CAPTCHA wait-and-verify recipe - #50

Merged
Kylejeong2 merged 4 commits into
mainfrom
kylejeong/captcha-solving-wait-and-verify
Nov 7, 2026
Merged

Kylejeong2 merged 4 commits into
mainfrom
kylejeong/captcha-solving-wait-and-verify

Conversation

@Kylejeong2

@Kylejeong2 Kylejeong2 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a minimal Stagehand v4 example for waiting on CAPTCHA solving and verifying page access.

Why

A finished solve can leave the page blocked, so check for application content before continuing.

What changed

  • Listen before navigation, pause during solves, and revisit the original URL at most once if content is missing after a finish.
  • Keep watching after solver errors within a 90-second budget, report failure, and close the session.
  • Include a short README, pnpm setup with native .env loading, and catalog registration. No recipe tests, Playwright version, or shared helper modules.

Testing (if applicable)

  • Fresh disposable package: pnpm install --frozen-lockfile and pnpm typecheck passed.
  • Confirmed tsx --env-file=.env loads a synthetic environment variable without creating a browser session.
  • python3 scripts/verify.py and git diff --cached --check passed.
  • No live CAPTCHA solve or target-site workflow was run.

@Kylejeong2
Kylejeong2 force-pushed the kylejeong/captcha-solving-wait-and-verify branch from 7202b4b to e44d159 Compare November 6, 2026 19:02
@Kylejeong2 Kylejeong2 changed the title feat(examples): add CAPTCHA solving wait-and-verify recipe feat(examples): add Stagehand CAPTCHA wait-and-verify recipe Nov 6, 2026
@Kylejeong2
Kylejeong2 marked this pull request as ready for review November 7, 2026 00:20
@Kylejeong2
Kylejeong2 requested review from a team as code owners November 7, 2026 00:20
@Kylejeong2
Kylejeong2 merged commit 298d3ef into main Nov 7, 2026
10 checks passed
@Kylejeong2
Kylejeong2 deleted the kylejeong/captcha-solving-wait-and-verify branch November 7, 2026 01:40
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.

4 participants