M2: Playwright essentials (v0.4.0) #5
Loading…
Reference in a new issue
No description provided.
Delete branch "akib/m2-essentials"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M2 of the plan (docs/IMPLEMENTATION.md): the Playwright essentials that were missing. Version 0.4.0, 49 blocks (6 new).
What's in it
>> has-text=,has-not-text=,has=,has-not=,visible, plusA || B.[pressed],[expanded],[selected],[disabled].has-textwhen nothing simpler is unique. Role options are stricter:[checked=yes]is now an error.class,css,focused,editable,in-viewport,accessible-name,accessible-description.Control+Shift+KandControlOrMeta+Awork in both input modes. Press Key getsmode: "text"(insertText).button,modifiers,position(from the padding box, like Playwright) andclickCount. Old configs send the same request as before.detailor a built-in event's init).target: "dropzone"(M2.6).source: "data"(base64 or a data: URL). HTTP Request getsresponseType: "base64"→body64(M2.15).readfetches the file again as text, CSV or JSON.tabs.captureTab.cookiespermission) and for local/session storage.requestmode and amethodfilter.captureBodyreads response bodies on Chromium, but only for responses that start after the step.default.BlockDefinition.portsmay now be a function of the config.mode: until | while, withmaxandfailAtMax.donenow carriesiterations.Fixes found while merging
run()(Chromium and Firefox) could return an earlier run of the same workflow. It now waits for the new run.dataTransfer.files. The agent now exposes a real FileList.Test plan
npm run check: 680 unit/DOM tests; guide, learning and wiki checks passnpm run build,npm run build:firefoxnpm run e2e(system Chromium, headless): 18 specs, 207 checks. Includesm2-locators,m2-actions,m2-browser,m2-flow; the new blocks' exports pass undernpx playwright test.npm run e2e:firefox: 30 checks (Firefox 159). Includes downloads, screenshots, cookies, storage, requests, locator filters, Assert subjects, click options, Element Action, Drag, drop zone.After merge:
npm run wiki:publish.🤖 Generated with Claude Code