Skip to content

fix(web-integration): clear inputs via cdp select all#2695

Open
EAGzzyCSL wants to merge 2 commits into
mainfrom
zzy/fix-web-clear-input-cdp
Open

fix(web-integration): clear inputs via cdp select all#2695
EAGzzyCSL wants to merge 2 commits into
mainfrom
zzy/fix-web-clear-input-cdp

Conversation

@EAGzzyCSL

Copy link
Copy Markdown
Collaborator

Summary

  • Use CDP Input.dispatchKeyEvent with selectAll for web clearInput before deleting text.
  • Add Puppeteer and Playwright unit coverage that verifies clearInput empties a focused input.

Validation

  • pnpm --filter @midscene/web test -- tests/unit-test/base-page-clear-input-cdp.test.ts

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: b3083aa
Status: ✅  Deploy successful!
Preview URL: https://08afde7d.midscene.pages.dev
Branch Preview URL: https://zzy-fix-web-clear-input-cdp.midscene.pages.dev

View logs

@EAGzzyCSL

Copy link
Copy Markdown
Collaborator Author

beta:v1.9.8-beta-20260618091332.0

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