[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77V728XSKFZXPTHZPPSN9CA":3,"skill-same:01M77V728XSKFZXPTHZPPSN9CA":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77V728XSKFZXPTHZPPSN9CA","playwright-cli",null,"Automate browser interactions, test web pages and work with Playwright tests.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Automate browser interactions, test web pages and work with Playwright tests.\"\n---\n# Browser Automation with playwright-cli\n\n## Quick start\n\n```bash\n# open new browser\nplaywright-cli open\n# navigate to a page\nplaywright-cli goto https:\u002F\u002Fplaywright.dev\n# interact with the page using refs from the snapshot\nplaywright-cli click e15\nplaywright-cli type \"page.click\"\nplaywright-cli press Enter\n# take a screenshot (rarely used, as snapshot is more common)\nplaywright-cli screenshot\n# close the browser\nplaywright-cli close\n```\n\n## Commands\n\n### Core\n\n```bash\nplaywright-cli open\n# open and navigate right away\nplaywright-cli open https:\u002F\u002Fexample.com\u002F\nplaywright-cli goto https:\u002F\u002Fplaywright.dev\nplaywright-cli type \"search query\"\nplaywright-cli click e3\nplaywright-cli dblclick e7\n# --submit presses Enter after filling the element\nplaywright-cli fill e5 \"user@example.com\"  --submit\nplaywright-cli drag e2 e8\n# drop files or data onto an element (from outside the page)\nplaywright-cli drop e4 --path=.\u002Fimage.png\nplaywright-cli drop e4 --data=\"text\u002Fplain=hello world\"\nplaywright-cli hover e4\nplaywright-cli select e9 \"option-value\"\nplaywright-cli upload .\u002Fdocument.pdf\nplaywright-cli check e12\nplaywright-cli uncheck e12\nplaywright-cli snapshot\n# search the snapshot for text or a regexp, returns matching nodes with surrounding context\nplaywright-cli find \"Sign in\"\nplaywright-cli find --regex \"Sign (in|up)\"\n# wrap the regexp in slashes to add flags, e.g. \u002Fi for case-insensitive\nplaywright-cli find --regex \"\u002Fsign (in|up)\u002Fi\"\nplaywright-cli eval \"document.title\"\nplaywright-cli eval \"el => el.textContent\" e5\n# get element id, class, or any attribute not visible in the snapshot\nplaywright-cli eval \"el => el.id\" e5\nplaywright-cli eval \"el => el.getAttribute('data-testid')\" e5\nplaywright-cli dialog-accept\nplaywright-cli dialog-accept \"confirmation text\"\nplaywright-cli dialog-dismiss\nplaywright-cli resize 1920 1080\nplaywright-cli close\n```\n\n### Navigation\n\n```bash\nplaywright-cli go-back\nplaywright-cli go-forward\nplaywright-cli reload\n```\n\n### Keyboard\n\n```bash\nplaywright-cli press Enter\nplaywright-cli press ArrowDown\nplaywright-cli keydown Shift\nplaywright-cli keyup Shift\n```\n\n### Mouse\n\n```bash\nplaywright-cli mousemove 150 300\nplaywright-cli mousedown\nplaywright-cli mousedown right\nplaywright-cli mouseup\nplaywright-cli mouseup right\nplaywright-cli mousewheel 0 100\n```\n\n### Save as\n\n```bash\nplaywright-cli screenshot\nplaywright-cli screenshot e5\nplaywright-cli screenshot --filename=page.png\nplaywright-cli screenshot --hires\nplaywright-cli pdf --filename=page.pdf\n```\n\n### Tabs\n\n```bash\nplaywright-cli tab-list\nplaywright-cli tab-new\nplaywright-cli tab-new https:\u002F\u002Fexample.com\u002Fpage\nplaywright-cli tab-close\nplaywright-cli tab-close 2\nplaywright-cli tab-select 0\n```\n\n### Storage\n\n```bash\nplaywright-cli state-save\nplaywright-cli state-save auth.json\nplaywright-cli state-load auth.json\n\n# Cookies\nplaywright-cli cookie-list\nplaywright-cli cookie-list --domain=example.com\nplaywright-cli cookie-get session_id\nplaywright-cli cookie-set session_id abc123\nplaywright-cli cookie-set session_id abc123 --domain=example.com --httpOnly --secure\nplaywright-cli cookie-delete session_id\nplaywright-cli cookie-clear\n\n# LocalStorage\nplaywright-cli localstorage-list\nplaywright-cli localstorage-get theme\nplaywright-cli localstorage-set theme dark\nplaywright-cli localstorage-delete theme\nplaywright-cli localstorage-clear\n\n# SessionStorage\nplaywright-cli sessionstorage-list\nplaywright-cli sessionstorage-get step\nplaywright-cli sessionstorage-set step 3\nplaywright-cli sessionstorage-delete step\nplaywright-cli sessionstorage-clear\n```\n\n### Network\n\n```bash\nplaywright-cli route \"**\u002F*.jpg\" --status=404\nplaywright-cli route \"https:\u002F\u002Fapi.example.com\u002F**\" --body='{\"mock\": true}'\nplaywright-cli route-list\nplaywright-cli unroute \"**\u002F*.jpg\"\nplaywright-cli unroute\n```\n\n### DevTools\n\n```bash\nplaywright-cli console\nplaywright-cli console warning\nplaywright-cli requests\nplaywright-cli request 5\nplaywright-cli run-code \"async page => await page.context().grantPermissions(['geolocation'])\"\nplaywright-cli run-code --filename=script.js\nplaywright-cli tracing-start\nplaywright-cli tracing-stop\nplaywright-cli video-start video.webm\nplaywright-cli video-chapter \"Chapter Title\" --description=\"Details\" --duration=2000\nplaywright-cli video-stop\n\n# annotate each subsequent action (click, type, ...) with a callout naming the action and highlighting the target\nplaywright-cli video-show-actions --duration=600 --position=top-right\nplaywright-cli video-hide-actions\n\n# launch the dashboard for UI review \u002F design feedback — user annotates the page, you receive the annotated screenshot, snapshot, and notes\nplaywright-cli show --annotate\n\n# generate a Playwright locator for an element from its ref or selector\nplaywright-cli generate-locator e5 --raw\n\n# show a persistent highlight overlay for an element, optionally with a custom style\nplaywright-cli highlight e5\nplaywright-cli highlight e5 --style=\"outline: 3px dashed red\"\n# hide a single element highlight, or all page highlights when no target is given\nplaywright-cli highlight e5 --hide\nplaywright-cli highlight --hide\n```\n\n## Raw output\n\nThe global `--raw` option strips page status, generated code, and snapshot sections from the output, returning only the result value. Use it to pipe command output into other tools. Commands that don't produce output return nothing.\n\n```bash\nplaywright-cli --raw eval \"JSON.stringify(performance.timing)\" | jq '.loadEventEnd - .navigationStart'\nplaywright-cli --raw eval \"JSON.stringify([...document.querySelectorAll('a')].map(a => a.href))\" > links.json\nplaywright-cli --raw snapshot > before.yml\nplaywright-cli click e5\nplaywright-cli --raw snapshot > after.yml\ndiff before.yml after.yml\nTOKEN=$(playwright-cli --raw cookie-get session_id)\nplaywright-cli --raw localstorage-get theme\n```\n\nFor structured output wrapping every reply as JSON, pass --json\n```bash\nplaywright-cli list --json\n```\n\n## Open parameters\n```bash\n# Use specific browser when creating session\nplaywright-cli open --browser=chrome\nplaywright-cli open --browser=firefox\nplaywright-cli open --browser=webkit\nplaywright-cli open --browser=msedge\n\n# Emulate a generic mobile device (Pixel 10 for Chromium, iPhone 17 for WebKit).\n# Prefer this when a mobile layout is acceptable: mobile pages are usually\n# lighter, so snapshots are smaller and cheaper.\nplaywright-cli open --mobile\nplaywright-cli open --device=\"iPhone 15\"\n\n# Use persistent profile (by default profile is in-memory)\nplaywright-cli open --persistent\n# Use persistent profile with custom directory\nplaywright-cli open --profile=\u002Fpath\u002Fto\u002Fprofile\n\n# Connect to browser via Playwright Extension\nplaywright-cli attach --extension=chrome\n\n# Connect to a running Chrome or Edge by channel name\nplaywright-cli attach --cdp=chrome\nplaywright-cli attach --cdp=msedge\n\n# Connect to a running browser via CDP endpoint\nplaywright-cli attach --cdp=http:\u002F\u002Flocalhost:9222\n\n# Start with config file\nplaywright-cli open --config=my-config.json\n\n# Close the browser\nplaywright-cli close\n# Detach from an attached browser (leaves the external browser running)\nplaywright-cli -s=msedge detach\n# Delete user data for the default session\nplaywright-cli delete-data\n```\n\n## URLs with `&` on Windows\n\nOn Windows, `cmd.exe` and PowerShell treat `&` as a command separator, so URLs with multiple query parameters get truncated before `playwright-cli` runs. Escape `&` with `^&` in `cmd.exe`, or use `--%` in PowerShell:\n\n```batch\nplaywright-cli goto \"https:\u002F\u002Fexample.com\u002F?a=1^&b=2\"\n```\n\n```powershell\nplaywright-cli --% goto \"https:\u002F\u002Fexample.com\u002F?a=1&b=2\"\n```\n\n## Snapshots\n\nAfter each command, playwright-cli provides a snapshot of the current browser state.\n\n```bash\n> playwright-cli goto https:\u002F\u002Fexample.com\n### Page\n- Page URL: https:\u002F\u002Fexample.com\u002F\n- Page Title: Example Domain\n### Snapshot\n[Snapshot](.playwright-cli\u002Fpage-2026-02-14T19-22-42-679Z.yml)\n```\n\nYou can also take a snapshot on demand using `playwright-cli snapshot` command. All the options below can be combined as needed.\n\n```bash\n# default - save to a file with timestamp-based name\nplaywright-cli snapshot\n\n# save to file, use when snapshot is a part of the workflow result\nplaywright-cli snapshot --filename=after-click.yaml\n\n# snapshot an element instead of the whole page\nplaywright-cli snapshot \"#main\"\n\n# limit snapshot depth for efficiency, take a partial snapshot afterwards\nplaywright-cli snapshot --depth=4\nplaywright-cli snapshot e34\n\n# include each element's bounding box as [box=x,y,width,height]\nplaywright-cli snapshot --boxes\n\n# search a large snapshot instead of capturing it all — returns matching nodes\n# with 3 lines of context around each match (like grep -C)\nplaywright-cli find \"Add to cart\"\nplaywright-cli find --regex \"\\\\$[0-9]+\\\\.[0-9]{2}\"\n```\n\n## Targeting elements\n\nBy default, use refs from the snapshot to interact with page elements.\n\n```bash\n# get snapshot with refs\nplaywright-cli snapshot\n\n# interact using a ref\nplaywright-cli click e15\n```\n\nYou can also use css selectors or Playwright locators.\n\n```bash\n# css selector\nplaywright-cli click \"#main > button.submit\"\n\n# role locator\nplaywright-cli click \"getByRole('button', { name: 'Submit' })\"\n\n# test id\nplaywright-cli click \"getByTestId('submit-button')\"\n```\n\n## Browser Sessions\n\n```bash\n# create new browser session named \"mysession\" with persistent profile\nplaywright-cli -s=mysession open example.com --persistent\n# same with manually specified profile directory (use when requested explicitly)\nplaywright-cli -s=mysession open example.com --profile=\u002Fpath\u002Fto\u002Fprofile\nplaywright-cli -s=mysession click e6\nplaywright-cli -s=mysession close  # stop a named browser\nplaywright-cli -s=mysession delete-data  # delete user data for persistent session\n\nplaywright-cli list\n# Close all browsers\nplaywright-cli close-all\n# Forcefully kill all browser processes\nplaywright-cli kill-all\n```\n\n## Installation\n\nIf global `playwright-cli` command is not available, try a local version via `npx playwright cli`:\n\n```bash\nnpx --no-install playwright --version\n```\n\nWhen local version is available, use `npx playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command:\n\n```bash\nnpm install -g @playwright\u002Fcli@latest\n```\n\n## Example: Form submission\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\u002Fform\nplaywright-cli snapshot\n\nplaywright-cli fill e1 \"user@example.com\"\nplaywright-cli fill e2 \"password123\"\nplaywright-cli click e3\nplaywright-cli snapshot\nplaywright-cli close\n```\n\n## Example: Multi-tab workflow\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli tab-new https:\u002F\u002Fexample.com\u002Fother\nplaywright-cli tab-list\nplaywright-cli tab-select 0\nplaywright-cli snapshot\nplaywright-cli close\n```\n\n## Example: Debugging with DevTools\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli click e4\nplaywright-cli fill e7 \"test\"\nplaywright-cli console\nplaywright-cli requests\nplaywright-cli close\n```\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli tracing-start\nplaywright-cli click e4\nplaywright-cli fill e7 \"test\"\nplaywright-cli tracing-stop\nplaywright-cli close\n```\n\n## Example: Interactive session\n\nAsk the user for UI review or design feedback. The user draws boxes on the live page and types comments; you receive the annotated screenshot, the snapshot of the marked region, and the user's notes. Use this whenever the user asks for \"UI review\", \"design feedback\", or to \"ask the user what they think \u002F want \u002F mean\":\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli show --annotate\n```\n\n## Specific tasks\n\n* **Running and Debugging Playwright tests** [references\u002Fplaywright-tests.md](references\u002Fplaywright-tests.md)\n* **Request mocking** [references\u002Frequest-mocking.md](references\u002Frequest-mocking.md)\n* **Running Playwright code** [references\u002Frunning-code.md](references\u002Frunning-code.md)\n* **Browser session management** [references\u002Fsession-management.md](references\u002Fsession-management.md)\n* **Storage state (cookies, localStorage)** [references\u002Fstorage-state.md](references\u002Fstorage-state.md)\n* **Test generation (plan \u002F generate \u002F heal)** [references\u002Ftest-generation.md](references\u002Ftest-generation.md)\n* **Tracing** [references\u002Ftracing.md](references\u002Ftracing.md)\n* **Video recording** [references\u002Fvideo-recording.md](references\u002Fvideo-recording.md)\n* **Inspecting element attributes** [references\u002Felement-attributes.md](references\u002Felement-attributes.md)\n","# Browser Automation with playwright-cli\n\n## Quick start\n\n```bash\n# open new browser\nplaywright-cli open\n# navigate to a page\nplaywright-cli goto https:\u002F\u002Fplaywright.dev\n# interact with the page using refs from the snapshot\nplaywright-cli click e15\nplaywright-cli type \"page.click\"\nplaywright-cli press Enter\n# take a screenshot (rarely used, as snapshot is more common)\nplaywright-cli screenshot\n# close the browser\nplaywright-cli close\n```\n\n## Commands\n\n### Core\n\n```bash\nplaywright-cli open\n# open and navigate right away\nplaywright-cli open https:\u002F\u002Fexample.com\u002F\nplaywright-cli goto https:\u002F\u002Fplaywright.dev\nplaywright-cli type \"search query\"\nplaywright-cli click e3\nplaywright-cli dblclick e7\n# --submit presses Enter after filling the element\nplaywright-cli fill e5 \"user@example.com\"  --submit\nplaywright-cli drag e2 e8\n# drop files or data onto an element (from outside the page)\nplaywright-cli drop e4 --path=.\u002Fimage.png\nplaywright-cli drop e4 --data=\"text\u002Fplain=hello world\"\nplaywright-cli hover e4\nplaywright-cli select e9 \"option-value\"\nplaywright-cli upload .\u002Fdocument.pdf\nplaywright-cli check e12\nplaywright-cli uncheck e12\nplaywright-cli snapshot\n# search the snapshot for text or a regexp, returns matching nodes with surrounding context\nplaywright-cli find \"Sign in\"\nplaywright-cli find --regex \"Sign (in|up)\"\n# wrap the regexp in slashes to add flags, e.g. \u002Fi for case-insensitive\nplaywright-cli find --regex \"\u002Fsign (in|up)\u002Fi\"\nplaywright-cli eval \"document.title\"\nplaywright-cli eval \"el => el.textContent\" e5\n# get element id, class, or any attribute not visible in the snapshot\nplaywright-cli eval \"el => el.id\" e5\nplaywright-cli eval \"el => el.getAttribute('data-testid')\" e5\nplaywright-cli dialog-accept\nplaywright-cli dialog-accept \"confirmation text\"\nplaywright-cli dialog-dismiss\nplaywright-cli resize 1920 1080\nplaywright-cli close\n```\n\n### Navigation\n\n```bash\nplaywright-cli go-back\nplaywright-cli go-forward\nplaywright-cli reload\n```\n\n### Keyboard\n\n```bash\nplaywright-cli press Enter\nplaywright-cli press ArrowDown\nplaywright-cli keydown Shift\nplaywright-cli keyup Shift\n```\n\n### Mouse\n\n```bash\nplaywright-cli mousemove 150 300\nplaywright-cli mousedown\nplaywright-cli mousedown right\nplaywright-cli mouseup\nplaywright-cli mouseup right\nplaywright-cli mousewheel 0 100\n```\n\n### Save as\n\n```bash\nplaywright-cli screenshot\nplaywright-cli screenshot e5\nplaywright-cli screenshot --filename=page.png\nplaywright-cli screenshot --hires\nplaywright-cli pdf --filename=page.pdf\n```\n\n### Tabs\n\n```bash\nplaywright-cli tab-list\nplaywright-cli tab-new\nplaywright-cli tab-new https:\u002F\u002Fexample.com\u002Fpage\nplaywright-cli tab-close\nplaywright-cli tab-close 2\nplaywright-cli tab-select 0\n```\n\n### Storage\n\n```bash\nplaywright-cli state-save\nplaywright-cli state-save auth.json\nplaywright-cli state-load auth.json\n\n# Cookies\nplaywright-cli cookie-list\nplaywright-cli cookie-list --domain=example.com\nplaywright-cli cookie-get session_id\nplaywright-cli cookie-set session_id abc123\nplaywright-cli cookie-set session_id abc123 --domain=example.com --httpOnly --secure\nplaywright-cli cookie-delete session_id\nplaywright-cli cookie-clear\n\n# LocalStorage\nplaywright-cli localstorage-list\nplaywright-cli localstorage-get theme\nplaywright-cli localstorage-set theme dark\nplaywright-cli localstorage-delete theme\nplaywright-cli localstorage-clear\n\n# SessionStorage\nplaywright-cli sessionstorage-list\nplaywright-cli sessionstorage-get step\nplaywright-cli sessionstorage-set step 3\nplaywright-cli sessionstorage-delete step\nplaywright-cli sessionstorage-clear\n```\n\n### Network\n\n```bash\nplaywright-cli route \"**\u002F*.jpg\" --status=404\nplaywright-cli route \"https:\u002F\u002Fapi.example.com\u002F**\" --body='{\"mock\": true}'\nplaywright-cli route-list\nplaywright-cli unroute \"**\u002F*.jpg\"\nplaywright-cli unroute\n```\n\n### DevTools\n\n```bash\nplaywright-cli console\nplaywright-cli console warning\nplaywright-cli requests\nplaywright-cli request 5\nplaywright-cli run-code \"async page => await page.context().grantPermissions(['geolocation'])\"\nplaywright-cli run-code --filename=script.js\nplaywright-cli tracing-start\nplaywright-cli tracing-stop\nplaywright-cli video-start video.webm\nplaywright-cli video-chapter \"Chapter Title\" --description=\"Details\" --duration=2000\nplaywright-cli video-stop\n\n# annotate each subsequent action (click, type, ...) with a callout naming the action and highlighting the target\nplaywright-cli video-show-actions --duration=600 --position=top-right\nplaywright-cli video-hide-actions\n\n# launch the dashboard for UI review \u002F design feedback — user annotates the page, you receive the annotated screenshot, snapshot, and notes\nplaywright-cli show --annotate\n\n# generate a Playwright locator for an element from its ref or selector\nplaywright-cli generate-locator e5 --raw\n\n# show a persistent highlight overlay for an element, optionally with a custom style\nplaywright-cli highlight e5\nplaywright-cli highlight e5 --style=\"outline: 3px dashed red\"\n# hide a single element highlight, or all page highlights when no target is given\nplaywright-cli highlight e5 --hide\nplaywright-cli highlight --hide\n```\n\n## Raw output\n\nThe global `--raw` option strips page status, generated code, and snapshot sections from the output, returning only the result value. Use it to pipe command output into other tools. Commands that don't produce output return nothing.\n\n```bash\nplaywright-cli --raw eval \"JSON.stringify(performance.timing)\" | jq '.loadEventEnd - .navigationStart'\nplaywright-cli --raw eval \"JSON.stringify([...document.querySelectorAll('a')].map(a => a.href))\" > links.json\nplaywright-cli --raw snapshot > before.yml\nplaywright-cli click e5\nplaywright-cli --raw snapshot > after.yml\ndiff before.yml after.yml\nTOKEN=$(playwright-cli --raw cookie-get session_id)\nplaywright-cli --raw localstorage-get theme\n```\n\nFor structured output wrapping every reply as JSON, pass --json\n```bash\nplaywright-cli list --json\n```\n\n## Open parameters\n```bash\n# Use specific browser when creating session\nplaywright-cli open --browser=chrome\nplaywright-cli open --browser=firefox\nplaywright-cli open --browser=webkit\nplaywright-cli open --browser=msedge\n\n# Emulate a generic mobile device (Pixel 10 for Chromium, iPhone 17 for WebKit).\n# Prefer this when a mobile layout is acceptable: mobile pages are usually\n# lighter, so snapshots are smaller and cheaper.\nplaywright-cli open --mobile\nplaywright-cli open --device=\"iPhone 15\"\n\n# Use persistent profile (by default profile is in-memory)\nplaywright-cli open --persistent\n# Use persistent profile with custom directory\nplaywright-cli open --profile=\u002Fpath\u002Fto\u002Fprofile\n\n# Connect to browser via Playwright Extension\nplaywright-cli attach --extension=chrome\n\n# Connect to a running Chrome or Edge by channel name\nplaywright-cli attach --cdp=chrome\nplaywright-cli attach --cdp=msedge\n\n# Connect to a running browser via CDP endpoint\nplaywright-cli attach --cdp=http:\u002F\u002Flocalhost:9222\n\n# Start with config file\nplaywright-cli open --config=my-config.json\n\n# Close the browser\nplaywright-cli close\n# Detach from an attached browser (leaves the external browser running)\nplaywright-cli -s=msedge detach\n# Delete user data for the default session\nplaywright-cli delete-data\n```\n\n## URLs with `&` on Windows\n\nOn Windows, `cmd.exe` and PowerShell treat `&` as a command separator, so URLs with multiple query parameters get truncated before `playwright-cli` runs. Escape `&` with `^&` in `cmd.exe`, or use `--%` in PowerShell:\n\n```batch\nplaywright-cli goto \"https:\u002F\u002Fexample.com\u002F?a=1^&b=2\"\n```\n\n```powershell\nplaywright-cli --% goto \"https:\u002F\u002Fexample.com\u002F?a=1&b=2\"\n```\n\n## Snapshots\n\nAfter each command, playwright-cli provides a snapshot of the current browser state.\n\n```bash\n> playwright-cli goto https:\u002F\u002Fexample.com\n### Page\n- Page URL: https:\u002F\u002Fexample.com\u002F\n- Page Title: Example Domain\n### Snapshot\n[Snapshot](.playwright-cli\u002Fpage-2026-02-14T19-22-42-679Z.yml)\n```\n\nYou can also take a snapshot on demand using `playwright-cli snapshot` command. All the options below can be combined as needed.\n\n```bash\n# default - save to a file with timestamp-based name\nplaywright-cli snapshot\n\n# save to file, use when snapshot is a part of the workflow result\nplaywright-cli snapshot --filename=after-click.yaml\n\n# snapshot an element instead of the whole page\nplaywright-cli snapshot \"#main\"\n\n# limit snapshot depth for efficiency, take a partial snapshot afterwards\nplaywright-cli snapshot --depth=4\nplaywright-cli snapshot e34\n\n# include each element's bounding box as [box=x,y,width,height]\nplaywright-cli snapshot --boxes\n\n# search a large snapshot instead of capturing it all — returns matching nodes\n# with 3 lines of context around each match (like grep -C)\nplaywright-cli find \"Add to cart\"\nplaywright-cli find --regex \"\\\\$[0-9]+\\\\.[0-9]{2}\"\n```\n\n## Targeting elements\n\nBy default, use refs from the snapshot to interact with page elements.\n\n```bash\n# get snapshot with refs\nplaywright-cli snapshot\n\n# interact using a ref\nplaywright-cli click e15\n```\n\nYou can also use css selectors or Playwright locators.\n\n```bash\n# css selector\nplaywright-cli click \"#main > button.submit\"\n\n# role locator\nplaywright-cli click \"getByRole('button', { name: 'Submit' })\"\n\n# test id\nplaywright-cli click \"getByTestId('submit-button')\"\n```\n\n## Browser Sessions\n\n```bash\n# create new browser session named \"mysession\" with persistent profile\nplaywright-cli -s=mysession open example.com --persistent\n# same with manually specified profile directory (use when requested explicitly)\nplaywright-cli -s=mysession open example.com --profile=\u002Fpath\u002Fto\u002Fprofile\nplaywright-cli -s=mysession click e6\nplaywright-cli -s=mysession close  # stop a named browser\nplaywright-cli -s=mysession delete-data  # delete user data for persistent session\n\nplaywright-cli list\n# Close all browsers\nplaywright-cli close-all\n# Forcefully kill all browser processes\nplaywright-cli kill-all\n```\n\n## Installation\n\nIf global `playwright-cli` command is not available, try a local version via `npx playwright cli`:\n\n```bash\nnpx --no-install playwright --version\n```\n\nWhen local version is available, use `npx playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command:\n\n```bash\nnpm install -g @playwright\u002Fcli@latest\n```\n\n## Example: Form submission\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\u002Fform\nplaywright-cli snapshot\n\nplaywright-cli fill e1 \"user@example.com\"\nplaywright-cli fill e2 \"password123\"\nplaywright-cli click e3\nplaywright-cli snapshot\nplaywright-cli close\n```\n\n## Example: Multi-tab workflow\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli tab-new https:\u002F\u002Fexample.com\u002Fother\nplaywright-cli tab-list\nplaywright-cli tab-select 0\nplaywright-cli snapshot\nplaywright-cli close\n```\n\n## Example: Debugging with DevTools\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli click e4\nplaywright-cli fill e7 \"test\"\nplaywright-cli console\nplaywright-cli requests\nplaywright-cli close\n```\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli tracing-start\nplaywright-cli click e4\nplaywright-cli fill e7 \"test\"\nplaywright-cli tracing-stop\nplaywright-cli close\n```\n\n## Example: Interactive session\n\nAsk the user for UI review or design feedback. The user draws boxes on the live page and types comments; you receive the annotated screenshot, the snapshot of the marked region, and the user's notes. Use this whenever the user asks for \"UI review\", \"design feedback\", or to \"ask the user what they think \u002F want \u002F mean\":\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\nplaywright-cli show --annotate\n```\n\n## Specific tasks\n\n* **Running and Debugging Playwright tests** [references\u002Fplaywright-tests.md](references\u002Fplaywright-tests.md)\n* **Request mocking** [references\u002Frequest-mocking.md](references\u002Frequest-mocking.md)\n* **Running Playwright code** [references\u002Frunning-code.md](references\u002Frunning-code.md)\n* **Browser session management** [references\u002Fsession-management.md](references\u002Fsession-management.md)\n* **Storage state (cookies, localStorage)** [references\u002Fstorage-state.md](references\u002Fstorage-state.md)\n* **Test generation (plan \u002F generate \u002F heal)** [references\u002Ftest-generation.md](references\u002Ftest-generation.md)\n* **Tracing** [references\u002Ftracing.md](references\u002Ftracing.md)\n* **Video recording** [references\u002Fvideo-recording.md](references\u002Fvideo-recording.md)\n* **Inspecting element attributes** [references\u002Felement-attributes.md](references\u002Felement-attributes.md)\n",{"description":7},"main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fplaywright-cli",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill playwright-cli",{"tool":38,"command":39},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill playwright-cli",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill playwright-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Felement-attributes.md","REFERENCE","参考文档",665,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Felement-attributes.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fplaywright-tests.md",1690,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Fplaywright-tests.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Frequest-mocking.md",2182,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Frequest-mocking.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Frunning-code.md",5642,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Frunning-code.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fsession-management.md",5671,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Fsession-management.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fstorage-state.md",5198,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Fstorage-state.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Ftest-generation.md",16114,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Ftest-generation.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Ftracing.md",3440,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Ftracing.md",{"path":81,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fvideo-recording.md",5387,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fplaywright-cli\u002Freferences\u002Fvideo-recording.md",[85,92,99,106,113,120],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]