venetian 0.4.2-aarch64-linux → 0.4.4-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/exe/aarch64-linux/node +2 -2
  3. data/exe/aarch64-linux/package/browsers.json +7 -7
  4. data/exe/aarch64-linux/package/lib/coreBundle.js +1805 -1077
  5. data/exe/aarch64-linux/package/lib/server/electron/loader.js +27 -17
  6. data/exe/aarch64-linux/package/lib/tools/cli-client/channelSessions.js +10 -8
  7. data/exe/aarch64-linux/package/lib/tools/cli-client/help.json +12 -7
  8. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/SKILL.md +1 -1
  9. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/running-code.md +2 -0
  10. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/storage-state.md +3 -0
  11. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/test-generation.md +1 -1
  12. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/tracing.md +12 -5
  13. data/exe/aarch64-linux/package/lib/utilsBundle.js +10410 -4080
  14. data/exe/aarch64-linux/package/lib/utilsBundle.js.LICENSE +43 -16
  15. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/{codeMirrorModule-CQ8RZGBm.js → codeMirrorModule-D5SeAdMv.js} +4 -4
  16. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/index-BnQkOdFO.css +1 -0
  17. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/{index-hRvO4yU2.js → index-C_gcIYdA.js} +4 -4
  18. data/exe/aarch64-linux/package/lib/vite/dashboard/index.html +3 -3
  19. data/exe/aarch64-linux/package/lib/vite/htmlReport/report.js +2 -2
  20. data/exe/aarch64-linux/package/lib/vite/recorder/assets/{codeMirrorModule-DK72OMRi.js → codeMirrorModule-ClnuDfLq.js} +4 -4
  21. data/exe/aarch64-linux/package/lib/vite/recorder/assets/{index-Cn0mmDuv.js → index-BwOPSdeb.js} +7 -7
  22. data/exe/aarch64-linux/package/lib/vite/recorder/index.html +1 -1
  23. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/{codeMirrorModule-BEB2e8M3.js → codeMirrorModule-DNqxPF-E.js} +7 -7
  24. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-BQT9Z6FV.js +184 -0
  25. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/rolldown-runtime-QTnfLwEv.js +1 -0
  26. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/urlMatch-Cgl6axSs.js +1 -0
  27. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/{xtermModule-B794rD2Z.js → xtermModule-Cv6bi7od.js} +1 -1
  28. data/exe/aarch64-linux/package/lib/vite/traceViewer/index.BY2vkw8A.js +1 -0
  29. data/exe/aarch64-linux/package/lib/vite/traceViewer/index.html +4 -3
  30. data/exe/aarch64-linux/package/lib/vite/traceViewer/{snapshot.B_Jk1wbt.js → snapshot.-ChLTbql.js} +1 -1
  31. data/exe/aarch64-linux/package/lib/vite/traceViewer/snapshot.html +2 -2
  32. data/exe/aarch64-linux/package/lib/vite/traceViewer/sw.bundle.js +2 -2
  33. data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.DuLwZHRf.js +5 -0
  34. data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.html +4 -3
  35. data/exe/aarch64-linux/package/package.json +1 -1
  36. data/exe/aarch64-linux/package/types/protocol.d.ts +129 -19
  37. data/exe/aarch64-linux/package/types/types.d.ts +39 -17
  38. data/lib/venetian/version.rb +3 -3
  39. metadata +17 -16
  40. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/index-AwgwcYie.css +0 -1
  41. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-D-g2vrvf.js +0 -184
  42. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +0 -1
  43. data/exe/aarch64-linux/package/lib/vite/traceViewer/index.7-c5LSTW.js +0 -1
  44. data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.CYwC_gH1.js +0 -5
@@ -8,11 +8,10 @@ var disabledFeatures = [
8
8
  // See https://github.com/microsoft/playwright/issues/14047
9
9
  "AvoidUnnecessaryBeforeUnloadCheckSync",
10
10
  "DestroyProfileOnBrowserClose",
11
- // See https://github.com/microsoft/playwright/pull/13854
12
- "DialMediaRouteProvider",
13
- "GlobalMediaControls",
14
- // See https://github.com/microsoft/playwright/pull/27605
11
+ // Keep HTTP navigations and routes on HTTP, including with HTTPS-First balanced mode.
12
+ // See https://github.com/microsoft/playwright/issues/43871
15
13
  "HttpsUpgrades",
14
+ "HttpsFirstBalancedModeAutoEnable",
16
15
  // Hides the Lens feature in the URL address bar. Its not working in unofficial builds.
17
16
  "LensOverlay",
18
17
  // See https://github.com/microsoft/playwright/pull/8162
@@ -21,24 +20,31 @@ var disabledFeatures = [
21
20
  "PaintHolding",
22
21
  // See https://github.com/microsoft/playwright/issues/32230
23
22
  "ThirdPartyStoragePartitioning",
24
- // Chromium 149 rejects re-applying the `origin` header on a redirect (as request interception
25
- // does) with net::ERR_INVALID_ARGUMENT. See https://github.com/microsoft/playwright/issues/41690
26
- "BlockOriginHeaderModificationOnRedirect",
27
- // See https://github.com/microsoft/playwright/issues/16126
28
- "Translate",
29
- // See https://issues.chromium.org/u/1/issues/435410220
30
- "AutoDeElevate",
23
+ // Chromium 155 aborts preflighted cross-origin redirects with net::ERR_ABORTED while
24
+ // Fetch interception is enabled. See https://github.com/microsoft/playwright/issues/43242
25
+ "AvoidCorsURLLoaderRestartOnRedirect",
26
+ // Avoids intermittent ERR_NO_BUFFER_SPACE failures on Windows (https://crbug.com/572515601).
27
+ "TcpPortRandomizationWin",
31
28
  // Prevents downloading optimization hints on startup.
32
29
  "OptimizationHints",
33
30
  // Prevents network time queries to clients2.google.com on startup.
34
31
  "NetworkTimeServiceQuerying",
35
32
  // Prevents AI Mode eligibility requests to www.google.com on startup.
36
33
  "AimEnabled",
34
+ // Prevents preconnects to the default search engine (www.google.com) on startup.
35
+ // See https://github.com/microsoft/playwright/issues/42910
36
+ "PreconnectToSearch",
37
37
  // Disables forced sign-in in Edge.
38
38
  "msForceBrowserSignIn",
39
39
  // Disables updating the preferred version in LaunchServices preferences on mac.
40
40
  "msEdgeUpdateLaunchServicesPreferredVersion"
41
41
  ].filter(Boolean);
42
+ var enabledFeatures = () => [
43
+ process.env.PLAYWRIGHT_LEGACY_SCREENSHOT ? "" : "CDPScreenshotNewSurface",
44
+ // Prevents /ListAccounts requests to accounts.google.com on startup.
45
+ // See https://github.com/microsoft/playwright/issues/42910 and https://issues.chromium.org/565837024
46
+ "SkipListAccountsWithoutGaiaCookies"
47
+ ].filter(Boolean);
42
48
  var chromiumSwitches = (options) => [
43
49
  "--disable-field-trial-config",
44
50
  // https://source.chromium.org/chromium/chromium/src/+/main:testing/variations/README.md
@@ -48,7 +54,6 @@ var chromiumSwitches = (options) => [
48
54
  "--disable-back-forward-cache",
49
55
  // Avoids surprises like main request not being intercepted during page.goBack().
50
56
  "--disable-breakpad",
51
- "--disable-client-side-phishing-detection",
52
57
  "--disable-component-extensions-with-background-pages",
53
58
  "--disable-component-update",
54
59
  // Avoids unneeded network activity after startup.
@@ -59,7 +64,7 @@ var chromiumSwitches = (options) => [
59
64
  // Disables Edge-specific updater on mac.
60
65
  "--disable-extensions",
61
66
  "--disable-features=" + disabledFeatures.join(","),
62
- process.env.PLAYWRIGHT_LEGACY_SCREENSHOT ? "" : "--enable-features=CDPScreenshotNewSurface",
67
+ "--enable-features=" + enabledFeatures().join(","),
63
68
  "--allow-pre-commit-input",
64
69
  "--disable-hang-monitor",
65
70
  "--disable-ipc-flooding-protection",
@@ -75,20 +80,25 @@ var chromiumSwitches = (options) => [
75
80
  "--use-mock-keychain",
76
81
  // See https://chromium-review.googlesource.com/c/chromium/src/+/2436773
77
82
  "--no-service-autorun",
78
- "--export-tagged-pdf",
79
83
  // https://chromium-review.googlesource.com/c/chromium/src/+/4853540
80
84
  "--disable-search-engine-choice-screen",
81
85
  // https://issues.chromium.org/41491762
82
86
  "--unsafely-disable-devtools-self-xss-warnings",
87
+ // See https://issues.chromium.org/issues/40277080
88
+ "--enable-unsafe-swiftshader",
83
89
  // Edge can potentially restart on Windows (msRelaunchNoCompatLayer) which looses its file descriptors (stdout/stderr) and CDP (3/4). Disable until fixed upstream.
84
90
  "--edge-skip-compat-layer-relaunch",
91
+ // Chrome for Testing enables the stack sampling profiler, which crashes the browser on Windows
92
+ // when it unwinds the main thread. See https://github.com/microsoft/playwright/issues/43327
93
+ "--disable-stack-profiler",
85
94
  // This disables Chrome for Testing infobar that is visible in the persistent context.
86
95
  // The switch is ignored everywhere else, including Chromium/Chrome/Edge.
87
96
  "--disable-infobars",
88
- // Less annoying popups.
89
- "--disable-search-engine-choice-screen",
90
97
  // Prevents the "three dots" menu crash in IdentityManager::HasPrimaryAccount for ephemeral contexts.
91
- options?.android ? "" : "--disable-sync"
98
+ options?.android ? "" : "--disable-sync",
99
+ // Prevents relaunching as non-admin when started from an elevated process on Windows.
100
+ // See https://issues.chromium.org/u/1/issues/435410220
101
+ "--do-not-de-elevate"
92
102
  ].filter(Boolean);
93
103
 
94
104
  // packages/playwright-core/src/server/electron/loader.ts
@@ -92,44 +92,46 @@ async function isPortOpen(port) {
92
92
  socket.setTimeout(250, () => done(false));
93
93
  });
94
94
  }
95
+ const linuxConfigHome = process.env.CHROME_CONFIG_HOME || process.env.XDG_CONFIG_HOME || import_path.default.join(import_os.default.homedir(), ".config");
96
+ const linuxUserDataDir = (product) => process.env.CHROME_USER_DATA_DIR || import_path.default.join(linuxConfigHome, product);
95
97
  const channelToUserDataDir = /* @__PURE__ */ new Map([
96
98
  ["chrome", {
97
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "google-chrome"),
99
+ "linux": linuxUserDataDir("google-chrome"),
98
100
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Google", "Chrome"),
99
101
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome", "User Data")
100
102
  }],
101
103
  ["chrome-beta", {
102
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "google-chrome-beta"),
104
+ "linux": linuxUserDataDir("google-chrome-beta"),
103
105
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Google", "Chrome Beta"),
104
106
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome Beta", "User Data")
105
107
  }],
106
108
  ["chrome-dev", {
107
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "google-chrome-unstable"),
109
+ "linux": linuxUserDataDir("google-chrome-unstable"),
108
110
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Google", "Chrome Dev"),
109
111
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome Dev", "User Data")
110
112
  }],
111
113
  ["chrome-canary", {
112
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "google-chrome-canary"),
114
+ "linux": linuxUserDataDir("google-chrome-canary"),
113
115
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Google", "Chrome Canary"),
114
116
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome SxS", "User Data")
115
117
  }],
116
118
  ["msedge", {
117
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "microsoft-edge"),
119
+ "linux": linuxUserDataDir("microsoft-edge"),
118
120
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Microsoft Edge"),
119
121
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge", "User Data")
120
122
  }],
121
123
  ["msedge-beta", {
122
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "microsoft-edge-beta"),
124
+ "linux": linuxUserDataDir("microsoft-edge-beta"),
123
125
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Microsoft Edge Beta"),
124
126
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge Beta", "User Data")
125
127
  }],
126
128
  ["msedge-dev", {
127
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "microsoft-edge-dev"),
129
+ "linux": linuxUserDataDir("microsoft-edge-dev"),
128
130
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Microsoft Edge Dev"),
129
131
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge Dev", "User Data")
130
132
  }],
131
133
  ["msedge-canary", {
132
- "linux": import_path.default.join(import_os.default.homedir(), ".config", "microsoft-edge-canary"),
134
+ "linux": linuxUserDataDir("microsoft-edge-canary"),
133
135
  "darwin": import_path.default.join(import_os.default.homedir(), "Library", "Application Support", "Microsoft Edge Canary"),
134
136
  "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge SxS", "User Data")
135
137
  }]
@@ -1,5 +1,5 @@
1
1
  {
2
- "global": "Usage: playwright-cli <command> [args] [options]\nUsage: playwright-cli -s=<session> <command> [args] [options]\n\nCore:\n open [url] open the browser\n attach [name] attach to a running playwright browser\n close close the browser\n detach detach from an attached browser\n goto <url> navigate to a url\n type <text> type text into editable element\n click <target> [button] perform click on a web page\n dblclick <target> [button] perform double click on a web page\n fill <target> <text> fill text into editable element\n drag <startTarget> <endTarget> perform drag and drop between two elements\n drop <target> drop files or data onto an element\n hover <target> hover over element on page\n select <target> <val> select an option in a dropdown\n upload <files...> upload one or multiple files\n check <target> check a checkbox or radio button\n uncheck <target> uncheck a checkbox or radio button\n snapshot [target] capture page snapshot to obtain element ref\n find [text] search the page snapshot for text or a regexp, returning matching nodes with surrounding context (like search snippets)\n eval <func> [target] evaluate javascript expression on page or element\n dialog-accept [prompt] accept a dialog\n dialog-dismiss dismiss a dialog\n resize <w> <h> resize the browser window\n delete-data delete session data\n\nNavigation:\n go-back go back to the previous page\n go-forward go forward to the next page\n reload reload the current page\n\nKeyboard:\n press <key> press a key on the keyboard, `a`, `arrowleft`\n keydown <key> press a key down on the keyboard\n keyup <key> press a key up on the keyboard\n\nMouse:\n mousemove <x> <y> move mouse to a given position\n mousedown [button] press mouse down\n mouseup [button] press mouse up\n mousewheel <dx> <dy> scroll mouse wheel\n\nSave as:\n screenshot [target] screenshot of the current page or element\n pdf save page as pdf\n\nTabs:\n tab-list list all tabs\n tab-new [url] create a new tab\n tab-close [index] close a browser tab\n tab-select <index> select a browser tab\n\nStorage:\n state-load <filename> loads browser storage (authentication) state from a file\n state-save [filename] saves the current storage (authentication) state to a file\n cookie-list list all cookies (optionally filtered by domain/path)\n cookie-get <name> get a specific cookie by name\n cookie-set <name> <value> set a cookie with optional flags\n cookie-delete <name> delete a specific cookie\n cookie-clear clear all cookies\n localstorage-list list all localstorage key-value pairs\n localstorage-get <key> get a localstorage item by key\n localstorage-set <key> <value> set a localstorage item\n localstorage-delete <key> delete a localstorage item\n localstorage-clear clear all localstorage\n sessionstorage-list list all sessionstorage key-value pairs\n sessionstorage-get <key> get a sessionstorage item by key\n sessionstorage-set <key> <value> set a sessionstorage item\n sessionstorage-delete <key> delete a sessionstorage item\n sessionstorage-clear clear all sessionstorage\n\nEmulation:\n set-color-scheme <scheme> emulate the light or dark color scheme\n set-reduced-motion <motion> emulate the reduced motion preference\n set-forced-colors <colors> emulate forced colors mode\n set-contrast <contrast> emulate the preferred contrast\n set-media <media> emulate the css media type\n clear-color-scheme clear color scheme emulation\n clear-reduced-motion clear reduced motion emulation\n clear-forced-colors clear forced colors emulation\n clear-contrast clear preferred contrast emulation\n clear-media clear css media type emulation\n\nNetwork:\n requests list all network requests since loading the page. each request is numbered for use with the `request` command.\n request <index> show full details (headers, body, response) of a single network request by its number from the `requests` command.\n request-headers <index> print only the request headers for a single network request by its number from the `requests` command.\n request-body <index> print only the request body for a single network request by its number from the `requests` command.\n response-headers <index> print only the response headers for a single network request by its number from the `requests` command.\n response-body <index> print the response body for a single network request by its number from the `requests` command. textual bodies are inlined; binary bodies are saved to a file and the path is printed.\n route <pattern> mock network requests matching a url pattern\n route-list list all active network routes\n unroute [pattern] remove routes matching a pattern (or all routes)\n network-state-set <state> set the browser network state to online or offline\n\nDevTools:\n console [min-level] list console messages\n run-code [code] run playwright code snippet\n recording-start start recording user actions\n recording-stop stop recording user actions and print them as playwright code\n tracing-start start trace recording\n tracing-stop stop trace recording\n video-start [filename] start video recording\n video-stop stop video recording\n video-chapter <title> add a chapter marker to the video recording\n video-show-actions annotate subsequent cli/mcp actions on the page with a callout that names the action and, when styled, marks the action point and highlights the target element\n video-hide-actions stop annotating actions performed on the page\n show show playwright dashboard\n pause-at <location> run the test up to a specific location and pause there\n resume resume the test execution\n step-over step over the next call in the test\n generate-locator <target> generate a playwright locator for the given element\n highlight [target] show (or with --hide, remove) a highlight overlay for an element; `--hide` without a target hides all page highlights.\n\nWebMCP:\n webmcp-list list the webmcp tools registered by the page\n webmcp-call <name> call a webmcp tool registered by the page\n\nInstall:\n install initialize workspace\n install-browser [browser] install browser\n\nBrowser sessions:\n list list browser sessions\n close-all close all browser sessions\n kill-all forcefully kill all browser sessions (for stale/zombie processes)\n\nGlobal options:\n --help [command] print help\n --json output response as JSON\n --raw output only the result value, without status and code\n --version print version",
2
+ "global": "Usage: playwright-cli <command> [args] [options]\nUsage: playwright-cli -s=<session> <command> [args] [options]\n\nCore:\n open [url] open the browser\n attach [name] attach to a running playwright browser\n close close the browser\n detach detach from an attached browser\n goto <url> navigate to a url\n type <text> type text into editable element\n click <target> [button] perform click on a web page\n dblclick <target> [button] perform double click on a web page\n fill <target> <text> fill text into editable element\n drag <startTarget> <endTarget> perform drag and drop between two elements\n drop <target> drop files or data onto an element\n hover <target> hover over element on page\n select <target> <val> select an option in a dropdown\n upload <files...> upload one or multiple files\n check <target> check a checkbox or radio button\n uncheck <target> uncheck a checkbox or radio button\n snapshot [target] capture page snapshot to obtain element ref\n find [text] search the page snapshot for text or a regexp, returning matching nodes with surrounding context (like search snippets)\n eval <func> [target] evaluate javascript expression on page or element\n dialog-accept [prompt] accept a dialog\n dialog-dismiss dismiss a dialog\n resize <w> <h> resize the browser window\n delete-data delete session data\n\nNavigation:\n go-back go back to the previous page\n go-forward go forward to the next page\n reload reload the current page\n\nKeyboard:\n press <key> press a key on the keyboard, `a`, `arrowleft`\n keydown <key> press a key down on the keyboard\n keyup <key> press a key up on the keyboard\n\nMouse:\n mousemove <x> <y> move mouse to a given position\n mousedown [button] press mouse down\n mouseup [button] press mouse up\n mousewheel <dx> <dy> scroll mouse wheel\n\nSave as:\n screenshot [target] screenshot of the current page or element\n pdf save page as pdf\n\nTabs:\n tab-list list all tabs\n tab-new [url] create a new tab\n tab-close [index] close a browser tab\n tab-select <index> select a browser tab\n\nStorage:\n state-load <filename> loads browser storage (authentication) state from a file\n state-save [filename] saves the current storage (authentication) state to a file\n cookie-list list all cookies (optionally filtered by domain/path)\n cookie-get <name> get a specific cookie by name\n cookie-set <name> <value> set a cookie with optional flags\n cookie-delete <name> delete a specific cookie (optionally only on a given domain/path)\n cookie-clear clear all cookies\n localstorage-list list all localstorage key-value pairs\n localstorage-get <key> get a localstorage item by key\n localstorage-set <key> <value> set a localstorage item\n localstorage-delete <key> delete a localstorage item\n localstorage-clear clear all localstorage\n sessionstorage-list list all sessionstorage key-value pairs\n sessionstorage-get <key> get a sessionstorage item by key\n sessionstorage-set <key> <value> set a sessionstorage item\n sessionstorage-delete <key> delete a sessionstorage item\n sessionstorage-clear clear all sessionstorage\n\nEmulation:\n set-color-scheme <scheme> emulate the light or dark color scheme\n set-reduced-motion <motion> emulate the reduced motion preference\n set-forced-colors <colors> emulate forced colors mode\n set-contrast <contrast> emulate the preferred contrast\n set-media <media> emulate the css media type\n clear-color-scheme clear color scheme emulation\n clear-reduced-motion clear reduced motion emulation\n clear-forced-colors clear forced colors emulation\n clear-contrast clear preferred contrast emulation\n clear-media clear css media type emulation\n\nNetwork:\n requests list all network requests since loading the page. each request is numbered for use with the `request` command.\n request <index> show full details (headers, body, response) of a single network request by its number from the `requests` command.\n request-headers <index> print only the request headers for a single network request by its number from the `requests` command.\n request-body <index> print only the request body for a single network request by its number from the `requests` command.\n response-headers <index> print only the response headers for a single network request by its number from the `requests` command.\n response-body <index> print the response body for a single network request by its number from the `requests` command. textual bodies are inlined; binary bodies are saved to a file and the path is printed.\n route <pattern> mock network requests matching a url pattern\n route-list list all active network routes\n unroute [pattern] remove routes matching a pattern (or all routes)\n network-state-set <state> set the browser network state to online or offline\n\nDevTools:\n console [min-level] list console messages\n run-code [code] run playwright code snippet\n recording-start start recording user actions\n recording-stop stop recording user actions and print them as playwright code\n tracing-start start trace recording\n tracing-stop stop trace recording\n video-start [filename] start video recording\n video-stop stop video recording\n video-chapter <title> add a chapter marker to the video recording\n video-show-actions annotate subsequent cli/mcp actions on the page with a callout that names the action and, when styled, marks the action point and highlights the target element\n video-hide-actions stop annotating actions performed on the page\n show show playwright dashboard\n pause-at <location> run the test up to a specific location and pause there\n resume resume the test execution\n step-over step over the next call in the test\n generate-locator <target> generate a playwright locator for the given element\n highlight [target] show (or with --hide, remove) a highlight overlay for an element; `--hide` without a target hides all page highlights.\n\nWebMCP:\n webmcp-list list the webmcp tools registered by the page\n webmcp-call <name> call a webmcp tool registered by the page\n\nInstall:\n install initialize workspace\n install-browser [browser] install browser\n\nBrowser sessions:\n list list browser sessions\n close-all close all browser sessions\n kill-all forcefully kill all browser sessions (for stale/zombie processes)\n\nGlobal options:\n --help [command] print help\n --json output response as JSON\n --raw output only the result value, without status and code\n --version print version",
3
3
  "commands": {
4
4
  "open": {
5
5
  "help": "playwright-cli open [url]\n\nOpen the browser\n\nArguments:\n [url] the url to navigate to\nOptions:\n --browser browser or chrome channel to use, possible values: chrome, firefox, webkit, msedge.\n --config path to the configuration file, defaults to .playwright/cli.config.json\n --device emulate a specific device, for example \"iphone 15\".\n --headed run browser in headed mode\n --idle-timeout shut the session down after this many milliseconds without a command. defaults to one hour for headless browsers, never for headed ones. pass 0 to disable.\n --mobile emulate a generic mobile device (pixel 10 for chromium, iphone 17 for webkit). mobile pages are usually lighter, which saves tokens.\n --persistent use persistent browser profile\n --profile path to a persistent user data directory.",
@@ -175,8 +175,9 @@
175
175
  ]
176
176
  },
177
177
  "console": {
178
- "help": "playwright-cli console [min-level]\n\nList console messages\n\nArguments:\n [min-level] level of the console messages to return. each level includes the messages of more severe levels. defaults to \"info\".\nOptions:\n --clear whether to clear the console list",
178
+ "help": "playwright-cli console [min-level]\n\nList console messages\n\nArguments:\n [min-level] level of the console messages to return. each level includes the messages of more severe levels. defaults to \"info\".\nOptions:\n --all whether to return all console messages since the beginning of the session, not just since the last navigation\n --clear whether to clear the console list",
179
179
  "flags": {
180
+ "all": "boolean",
180
181
  "clear": "boolean"
181
182
  },
182
183
  "args": [
@@ -377,8 +378,11 @@
377
378
  ]
378
379
  },
379
380
  "cookie-delete": {
380
- "help": "playwright-cli cookie-delete <name>\n\nDelete a specific cookie\n\nArguments:\n <name> cookie name",
381
- "flags": {},
381
+ "help": "playwright-cli cookie-delete <name>\n\nDelete a specific cookie (optionally only on a given domain/path)\n\nArguments:\n <name> cookie name\nOptions:\n --domain only delete the cookie on this domain\n --path only delete the cookie on this path",
382
+ "flags": {
383
+ "domain": "string",
384
+ "path": "string"
385
+ },
382
386
  "args": [
383
387
  "name"
384
388
  ]
@@ -517,10 +521,11 @@
517
521
  "args": []
518
522
  },
519
523
  "requests": {
520
- "help": "playwright-cli requests \n\nList all network requests since loading the page. Each request is numbered for use with the `request` command.\n\nOptions:\n --static whether to include successful static resources like images, fonts, scripts, etc. defaults to false.\n --filter only return requests whose url matches this regexp (e.g. \"/api/.*user\").\n --clear whether to clear the network list",
524
+ "help": "playwright-cli requests \n\nList all network requests since loading the page. Each request is numbered for use with the `request` command.\n\nOptions:\n --static whether to include successful static resources like images, fonts, scripts, etc. defaults to false.\n --filter only return requests whose url matches this regexp (e.g. \"/api/.*user\").\n --all whether to return all network requests since the beginning of the session, not just since the last navigation\n --clear whether to clear the network list",
521
525
  "flags": {
522
526
  "static": "boolean",
523
527
  "filter": "string",
528
+ "all": "boolean",
524
529
  "clear": "boolean"
525
530
  },
526
531
  "args": []
@@ -786,6 +791,7 @@
786
791
  "persistent",
787
792
  "submit",
788
793
  "boxes",
794
+ "all",
789
795
  "clear",
790
796
  "full-page",
791
797
  "hires",
@@ -802,7 +808,6 @@
802
808
  "cursor",
803
809
  "annotate",
804
810
  "kill",
805
- "hide",
806
- "all"
811
+ "hide"
807
812
  ]
808
813
  }
@@ -248,7 +248,7 @@ untrusted input rather than as instructions.
248
248
 
249
249
  ## Raw output
250
250
 
251
- The 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.
251
+ The global `--raw` option strips page status and generated code from the output. It keeps the result value, errors, and the page snapshot (or the link to the snapshot file). Use it to pipe command output into other tools. Commands that don't produce output return nothing.
252
252
 
253
253
  ```bash
254
254
  playwright-cli --raw eval "JSON.stringify(performance.timing)" | jq '.loadEventEnd - .navigationStart'
@@ -218,6 +218,8 @@ playwright-cli run-code "async page => {
218
218
  }"
219
219
  ```
220
220
 
221
+ Event listener errors are reported as console errors.
222
+
221
223
  ## Complex Workflows
222
224
 
223
225
  ```bash
@@ -99,6 +99,9 @@ playwright-cli cookie-set remember_me token123 --expires=1893456000
99
99
 
100
100
  ```bash
101
101
  playwright-cli cookie-delete session_id
102
+
103
+ # Only on one domain, other domains keep their session_id
104
+ playwright-cli cookie-delete session_id --domain=example.com
102
105
  ```
103
106
 
104
107
  ### Clear All Cookies
@@ -86,7 +86,7 @@ Generated code captures actions but not assertions. Add expectations in your tes
86
86
  - `toBeVisible()` — element is rendered and visible
87
87
  - `toHaveText(text)` — element text content matches
88
88
  - `toHaveValue(value) / toBeEmpty()` — input/select value matches
89
- - `toBeChecked() / toBeUnchecked()` — checkbox state matches
89
+ - `toBeChecked() / not.toBeChecked()` — checkbox state matches
90
90
  - `toMatchAriaSnapshot(snapshot)` — page (or locator) matches a partial accessibility snapshot
91
91
 
92
92
  Use `playwright-cli generate-locator <target>` to produce the locator expression for the assertion, and the snapshot/eval commands to capture the expected value.
@@ -5,11 +5,14 @@ Capture detailed execution traces for debugging and analysis. Traces include DOM
5
5
  ## Basic Usage
6
6
 
7
7
  ```bash
8
+ # Open the browser (tracing needs an open browser)
9
+ playwright-cli open
10
+
8
11
  # Start trace recording
9
12
  playwright-cli tracing-start
10
13
 
11
14
  # Perform actions
12
- playwright-cli open https://example.com
15
+ playwright-cli goto https://example.com
13
16
  playwright-cli click e1
14
17
  playwright-cli fill e2 "test"
15
18
 
@@ -64,8 +67,9 @@ When you start tracing, Playwright creates a `.playwright-cli/traces/` directory
64
67
  ### Debugging Failed Actions
65
68
 
66
69
  ```bash
70
+ playwright-cli open
67
71
  playwright-cli tracing-start
68
- playwright-cli open https://app.example.com
72
+ playwright-cli goto https://app.example.com
69
73
 
70
74
  # This click fails - why?
71
75
  playwright-cli click e5
@@ -77,8 +81,9 @@ playwright-cli tracing-stop
77
81
  ### Analyzing Performance
78
82
 
79
83
  ```bash
84
+ playwright-cli open
80
85
  playwright-cli tracing-start
81
- playwright-cli open https://slow-site.com
86
+ playwright-cli goto https://slow-site.com
82
87
  playwright-cli tracing-stop
83
88
 
84
89
  # View network waterfall to identify slow resources
@@ -88,9 +93,10 @@ playwright-cli tracing-stop
88
93
 
89
94
  ```bash
90
95
  # Record a complete user flow for documentation
96
+ playwright-cli open
91
97
  playwright-cli tracing-start
92
98
 
93
- playwright-cli open https://app.example.com/checkout
99
+ playwright-cli goto https://app.example.com/checkout
94
100
  playwright-cli fill e1 "4111111111111111"
95
101
  playwright-cli fill e2 "12/25"
96
102
  playwright-cli fill e3 "123"
@@ -117,8 +123,9 @@ playwright-cli tracing-stop
117
123
 
118
124
  ```bash
119
125
  # Trace the entire flow, not just the failing step
126
+ playwright-cli open
120
127
  playwright-cli tracing-start
121
- playwright-cli open https://example.com
128
+ playwright-cli goto https://example.com
122
129
  # ... all steps leading to the issue ...
123
130
  playwright-cli tracing-stop
124
131
  ```