venetian 0.1.0-x86_64-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.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/Rakefile +14 -0
- data/exe/playwright +11 -0
- data/exe/x86_64-linux/LICENSE +2946 -0
- data/exe/x86_64-linux/node +0 -0
- data/exe/x86_64-linux/package/LICENSE +202 -0
- data/exe/x86_64-linux/package/NOTICE +5 -0
- data/exe/x86_64-linux/package/README.md +3 -0
- data/exe/x86_64-linux/package/ThirdPartyNotices.txt +13 -0
- data/exe/x86_64-linux/package/api.json +1 -0
- data/exe/x86_64-linux/package/bin/install_media_pack.ps1 +5 -0
- data/exe/x86_64-linux/package/bin/install_webkit_wsl.ps1 +33 -0
- data/exe/x86_64-linux/package/bin/reinstall_chrome_beta_linux.sh +42 -0
- data/exe/x86_64-linux/package/bin/reinstall_chrome_beta_mac.sh +13 -0
- data/exe/x86_64-linux/package/bin/reinstall_chrome_beta_win.ps1 +24 -0
- data/exe/x86_64-linux/package/bin/reinstall_chrome_stable_linux.sh +42 -0
- data/exe/x86_64-linux/package/bin/reinstall_chrome_stable_mac.sh +12 -0
- data/exe/x86_64-linux/package/bin/reinstall_chrome_stable_win.ps1 +24 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_beta_linux.sh +48 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_beta_mac.sh +11 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_beta_win.ps1 +23 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_dev_linux.sh +48 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_dev_mac.sh +11 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_dev_win.ps1 +23 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_stable_linux.sh +48 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_stable_mac.sh +11 -0
- data/exe/x86_64-linux/package/bin/reinstall_msedge_stable_win.ps1 +24 -0
- data/exe/x86_64-linux/package/browsers.json +81 -0
- data/exe/x86_64-linux/package/cli.js +21 -0
- data/exe/x86_64-linux/package/index.d.ts +17 -0
- data/exe/x86_64-linux/package/index.js +32 -0
- data/exe/x86_64-linux/package/index.mjs +28 -0
- data/exe/x86_64-linux/package/lib/bootstrap.js +77 -0
- data/exe/x86_64-linux/package/lib/coreBundle.js +69799 -0
- data/exe/x86_64-linux/package/lib/entry/cliDaemon.js +5 -0
- data/exe/x86_64-linux/package/lib/entry/dashboardApp.js +3 -0
- data/exe/x86_64-linux/package/lib/entry/mcp.js +10 -0
- data/exe/x86_64-linux/package/lib/entry/oopBrowserDownload.js +3 -0
- data/exe/x86_64-linux/package/lib/package.js +50 -0
- data/exe/x86_64-linux/package/lib/server/chromium/appIcon.png +0 -0
- data/exe/x86_64-linux/package/lib/server/deviceDescriptorsSource.json +1779 -0
- data/exe/x86_64-linux/package/lib/server/electron/loader.js +115 -0
- data/exe/x86_64-linux/package/lib/serverRegistry.js +7343 -0
- data/exe/x86_64-linux/package/lib/serverRegistry.js.LICENSE +354 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/channelSessions.js +141 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/cli.js +6 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/help.json +679 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/minimist.js +128 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/output.js +343 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/program.js +380 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/registry.js +176 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/session.js +265 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/SKILL.md +388 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/element-attributes.md +23 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/playwright-tests.md +39 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/request-mocking.md +87 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/running-code.md +241 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/session-management.md +225 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/spec-driven-testing.md +305 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/storage-state.md +275 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/test-generation.md +134 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/tracing.md +139 -0
- data/exe/x86_64-linux/package/lib/tools/cli-client/skill/references/video-recording.md +143 -0
- data/exe/x86_64-linux/package/lib/tools/dashboard/appIcon.png +0 -0
- data/exe/x86_64-linux/package/lib/tools/trace/SKILL.md +171 -0
- data/exe/x86_64-linux/package/lib/tools/utils/extension.js +78 -0
- data/exe/x86_64-linux/package/lib/tools/utils/socketConnection.js +108 -0
- data/exe/x86_64-linux/package/lib/utilsBundle.js +85418 -0
- data/exe/x86_64-linux/package/lib/utilsBundle.js.LICENSE +2002 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/index-BY2S1tHT.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/index-DpEq2p62.js +52 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/index.html +29 -0
- data/exe/x86_64-linux/package/lib/vite/dashboard/playwright-logo.svg +24 -0
- data/exe/x86_64-linux/package/lib/vite/htmlReport/index.html +16 -0
- data/exe/x86_64-linux/package/lib/vite/htmlReport/report.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/htmlReport/report.js +72 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/assets/codeMirrorModule-BHYmBp6h.js +32 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/assets/index-4ZiSSCmn.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/assets/index-DA10QRaq.js +193 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/index.html +29 -0
- data/exe/x86_64-linux/package/lib/vite/recorder/playwright-logo.svg +9 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/assets/codeMirrorModule-Ds_H_9Yq.js +32 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-D31xz8zv.js +262 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/assets/urlMatch-BYQrIQwR.js +1 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/defaultSettingsView.BDKsFU3c.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/index.BCnMPevh.js +2 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/index.CzXZzn5A.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/index.html +44 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/manifest.webmanifest +16 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/playwright-logo.svg +9 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/snapshot.html +10 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/snapshot.v8KI4P3m.js +2 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/sw.bundle.js +5 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/uiMode.C2Efnu2P.js +6 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/uiMode.html +18 -0
- data/exe/x86_64-linux/package/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- data/exe/x86_64-linux/package/lib/xdg-open +1066 -0
- data/exe/x86_64-linux/package/package.json +34 -0
- data/exe/x86_64-linux/package/protocol.yml +4884 -0
- data/exe/x86_64-linux/package/types/protocol.d.ts +24565 -0
- data/exe/x86_64-linux/package/types/structs.d.ts +45 -0
- data/exe/x86_64-linux/package/types/types.d.ts +24518 -0
- data/lib/tasks/venetian.rake +11 -0
- data/lib/venetian/browser_installer.rb +26 -0
- data/lib/venetian/browser_runner_extensions.rb +17 -0
- data/lib/venetian/executable.rb +154 -0
- data/lib/venetian/gemspec.rb +7 -0
- data/lib/venetian/playwright_create_extensions.rb +11 -0
- data/lib/venetian/railtie.rb +9 -0
- data/lib/venetian/tasks.rb +3 -0
- data/lib/venetian/upstream.rb +45 -0
- data/lib/venetian/version.rb +5 -0
- data/lib/venetian.rb +29 -0
- metadata +185 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// packages/playwright-core/src/server/electron/loader.ts
|
|
4
|
+
var import_electron = require("electron");
|
|
5
|
+
|
|
6
|
+
// packages/playwright-core/src/server/chromium/chromiumSwitches.ts
|
|
7
|
+
var disabledFeatures = [
|
|
8
|
+
// See https://github.com/microsoft/playwright/issues/14047
|
|
9
|
+
"AvoidUnnecessaryBeforeUnloadCheckSync",
|
|
10
|
+
// See https://github.com/microsoft/playwright/issues/38568
|
|
11
|
+
"BoundaryEventDispatchTracksNodeRemoval",
|
|
12
|
+
"DestroyProfileOnBrowserClose",
|
|
13
|
+
// See https://github.com/microsoft/playwright/pull/13854
|
|
14
|
+
"DialMediaRouteProvider",
|
|
15
|
+
"GlobalMediaControls",
|
|
16
|
+
// See https://github.com/microsoft/playwright/pull/27605
|
|
17
|
+
"HttpsUpgrades",
|
|
18
|
+
// Hides the Lens feature in the URL address bar. Its not working in unofficial builds.
|
|
19
|
+
"LensOverlay",
|
|
20
|
+
// See https://github.com/microsoft/playwright/pull/8162
|
|
21
|
+
"MediaRouter",
|
|
22
|
+
// See https://github.com/microsoft/playwright/issues/28023
|
|
23
|
+
"PaintHolding",
|
|
24
|
+
// See https://github.com/microsoft/playwright/issues/32230
|
|
25
|
+
"ThirdPartyStoragePartitioning",
|
|
26
|
+
// See https://github.com/microsoft/playwright/issues/16126
|
|
27
|
+
"Translate",
|
|
28
|
+
// See https://issues.chromium.org/u/1/issues/435410220
|
|
29
|
+
"AutoDeElevate",
|
|
30
|
+
// See https://github.com/microsoft/playwright/issues/37714
|
|
31
|
+
"RenderDocument",
|
|
32
|
+
// Prevents downloading optimization hints on startup.
|
|
33
|
+
"OptimizationHints",
|
|
34
|
+
// Disables forced sign-in in Edge.
|
|
35
|
+
"msForceBrowserSignIn",
|
|
36
|
+
// Disables updating the preferred version in LaunchServices preferences on mac.
|
|
37
|
+
"msEdgeUpdateLaunchServicesPreferredVersion"
|
|
38
|
+
].filter(Boolean);
|
|
39
|
+
var chromiumSwitches = (options) => [
|
|
40
|
+
"--disable-field-trial-config",
|
|
41
|
+
// https://source.chromium.org/chromium/chromium/src/+/main:testing/variations/README.md
|
|
42
|
+
"--disable-background-networking",
|
|
43
|
+
"--disable-background-timer-throttling",
|
|
44
|
+
"--disable-backgrounding-occluded-windows",
|
|
45
|
+
"--disable-back-forward-cache",
|
|
46
|
+
// Avoids surprises like main request not being intercepted during page.goBack().
|
|
47
|
+
"--disable-breakpad",
|
|
48
|
+
"--disable-client-side-phishing-detection",
|
|
49
|
+
"--disable-component-extensions-with-background-pages",
|
|
50
|
+
"--disable-component-update",
|
|
51
|
+
// Avoids unneeded network activity after startup.
|
|
52
|
+
"--no-default-browser-check",
|
|
53
|
+
"--disable-default-apps",
|
|
54
|
+
"--disable-dev-shm-usage",
|
|
55
|
+
"--disable-edgeupdater",
|
|
56
|
+
// Disables Edge-specific updater on mac.
|
|
57
|
+
"--disable-extensions",
|
|
58
|
+
"--disable-features=" + disabledFeatures.join(","),
|
|
59
|
+
process.env.PLAYWRIGHT_LEGACY_SCREENSHOT ? "" : "--enable-features=CDPScreenshotNewSurface",
|
|
60
|
+
"--allow-pre-commit-input",
|
|
61
|
+
"--disable-hang-monitor",
|
|
62
|
+
"--disable-ipc-flooding-protection",
|
|
63
|
+
"--disable-popup-blocking",
|
|
64
|
+
"--disable-prompt-on-repost",
|
|
65
|
+
"--disable-renderer-backgrounding",
|
|
66
|
+
"--force-color-profile=srgb",
|
|
67
|
+
"--metrics-recording-only",
|
|
68
|
+
"--no-first-run",
|
|
69
|
+
"--password-store=basic",
|
|
70
|
+
"--use-mock-keychain",
|
|
71
|
+
// See https://chromium-review.googlesource.com/c/chromium/src/+/2436773
|
|
72
|
+
"--no-service-autorun",
|
|
73
|
+
"--export-tagged-pdf",
|
|
74
|
+
// https://chromium-review.googlesource.com/c/chromium/src/+/4853540
|
|
75
|
+
"--disable-search-engine-choice-screen",
|
|
76
|
+
// https://issues.chromium.org/41491762
|
|
77
|
+
"--unsafely-disable-devtools-self-xss-warnings",
|
|
78
|
+
// Edge can potentially restart on Windows (msRelaunchNoCompatLayer) which looses its file descriptors (stdout/stderr) and CDP (3/4). Disable until fixed upstream.
|
|
79
|
+
"--edge-skip-compat-layer-relaunch",
|
|
80
|
+
// This disables Chrome for Testing infobar that is visible in the persistent context.
|
|
81
|
+
// The switch is ignored everywhere else, including Chromium/Chrome/Edge.
|
|
82
|
+
"--disable-infobars",
|
|
83
|
+
// Less annoying popups.
|
|
84
|
+
"--disable-search-engine-choice-screen",
|
|
85
|
+
// Prevents the "three dots" menu crash in IdentityManager::HasPrimaryAccount for ephemeral contexts.
|
|
86
|
+
options?.android ? "" : "--disable-sync"
|
|
87
|
+
].filter(Boolean);
|
|
88
|
+
|
|
89
|
+
// packages/playwright-core/src/server/electron/loader.ts
|
|
90
|
+
process.argv.splice(1, process.argv.indexOf("--remote-debugging-port=0"));
|
|
91
|
+
for (const arg of chromiumSwitches()) {
|
|
92
|
+
const match = arg.match(/--([^=]*)=?(.*)/);
|
|
93
|
+
import_electron.app.commandLine.appendSwitch(match[1], match[2]);
|
|
94
|
+
}
|
|
95
|
+
var originalWhenReady = import_electron.app.whenReady();
|
|
96
|
+
var originalEmit = import_electron.app.emit.bind(import_electron.app);
|
|
97
|
+
var readyEventArgs;
|
|
98
|
+
import_electron.app.emit = (event, ...args) => {
|
|
99
|
+
if (event === "ready") {
|
|
100
|
+
readyEventArgs = args;
|
|
101
|
+
return import_electron.app.listenerCount("ready") > 0;
|
|
102
|
+
}
|
|
103
|
+
return originalEmit(event, ...args);
|
|
104
|
+
};
|
|
105
|
+
var isReady = false;
|
|
106
|
+
var whenReadyCallback;
|
|
107
|
+
var whenReadyPromise = new Promise((f) => whenReadyCallback = f);
|
|
108
|
+
import_electron.app.isReady = () => isReady;
|
|
109
|
+
import_electron.app.whenReady = () => whenReadyPromise;
|
|
110
|
+
globalThis.__playwright_run = async () => {
|
|
111
|
+
const event = await originalWhenReady;
|
|
112
|
+
isReady = true;
|
|
113
|
+
whenReadyCallback(event);
|
|
114
|
+
originalEmit("ready", ...readyEventArgs);
|
|
115
|
+
};
|