Skip to content

chore: track microsoft/playwright-cli - #28

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
track-playwright-cli_0083b63
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
track-playwright-cli_0083b63

Conversation

@github-actions

Copy link
Copy Markdown

microsoft/playwright-cli c872a33 -> 0083b63

Verdict: review

  • upstream changed files we rewrote (read the patches): README.md

Commits

Mapped files (three-way merge)

file result
tests/integration/core.spec.ts unchanged

Files we rewrote (upstream patch, for reading)

README.md (modified)

@@ -36,8 +36,12 @@ Claude Code, GitHub Copilot and others will use the locally installed skills.
 
 ```bash
 playwright-cli install --skills
+playwright-cli install --skills=agents  # install into .agents/skills
+playwright-cli install --skills --global # install into the home directory

+--skills defaults to claude, installing into .claude/skills. Use agents for other agents.
+

Skills-less operation

Point your agent at the CLI and let it cook. It'll read the skill off playwright-cli --help on its own:
@@ -106,8 +110,9 @@ Manage your sessions as follows:

playwright-cli list                     # list all sessions
-playwright-cli close-all                # close all browsers
-playwright-cli kill-all                 # forcefully kill all browser processes
+playwright-cli list --all                # list sessions across all workspaces
+playwright-cli close-all                # close all browsers in this workspace
+playwright-cli kill-all                 # forcefully kill all CLI daemon processes

Monitoring

@@ -118,6 +123,8 @@ background and you want to observe their progress or step in to help.

playwright-cli show
+playwright-cli show --port=9223         # run a blocking HTTP dashboard server
+playwright-cli show --port=9223 --host=0.0.0.0 # listen on all interfaces
Image @@ -139,28 +146,33 @@ From the grid you can also close running sessions or delete data for inactive on ```bash playwright-cli open [url] # open browser, optionally navigate to url playwright-cli goto # navigate to a url -playwright-cli close # close the page +playwright-cli close # close the browser playwright-cli type # type text into editable element +playwright-cli type --submit # type and press Enter playwright-cli click [button] # perform click on a web page +playwright-cli click --modifiers=Shift # click with a modifier key (repeatable) playwright-cli dblclick [button] # perform double click on a web page +playwright-cli dblclick --modifiers=Shift # double click with a modifier key playwright-cli fill # fill text into editable element playwright-cli fill --submit # fill and press Enter playwright-cli drag # perform drag and drop between two elements playwright-cli drop --path= # drop files onto an element (from outside the page) -playwright-cli drop --data="k=v" # drop data onto an element +playwright-cli drop --data="text/plain=hello" # drop data onto an element playwright-cli hover # hover over element on page playwright-cli select # select an option in a dropdown -playwright-cli upload # upload one or multiple files +playwright-cli upload # upload files through an open file chooser playwright-cli check # check a checkbox or radio button playwright-cli uncheck # uncheck a checkbox or radio button playwright-cli snapshot # capture page snapshot to obtain element ref playwright-cli snapshot --filename=f # save snapshot to specific file -playwright-cli snapshot # snapshot a specific element +playwright-cli snapshot [ref] # snapshot the page or a specific element playwright-cli snapshot --depth=N # limit snapshot depth for efficiency playwright-cli find # search the snapshot for text, returns matching nodes playwright-cli find --regex # search the snapshot with a regexp playwright-cli find --filename=f # save matches to a file +playwright-cli find --max-results=N # limit the number of matches playwright-cli eval [ref] # evaluate javascript expression on page or element +playwright-cli eval --filename=f # save evaluation result to a file playwright-cli dialog-accept [prompt] # accept a dialog playwright-cli dialog-dismiss # dismiss a dialog playwright-cli resize # resize the browser window @@ -198,6 +210,8 @@ The element under the mouse pointer scrolls, so use `mousemove` to move over it ```bash playwright-cli screenshot [ref] # screenshot of the current page or element playwright-cli screenshot --filename=f # save screenshot with specific filename +playwright-cli screenshot --type=webp # choose png, jpeg, or webp +playwright-cli screenshot --full-page # capture the full scrollable page playwright-cli screenshot --hires # capture at full device pixel ratio playwright-cli pdf # save page as pdf ```

Other upstream files

  • .github/workflows/agent-readme.yml (added)
  • AGENTS.md (modified)

CI on this branch: failure (run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants