stably 4.12.1 → 4.12.2
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.
- package/dist/index.mjs +1 -1
- package/dist/node_modules/minimist/.eslintrc +29 -0
- package/dist/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/dist/node_modules/minimist/.nycrc +14 -0
- package/dist/node_modules/minimist/CHANGELOG.md +298 -0
- package/dist/node_modules/minimist/LICENSE +18 -0
- package/dist/node_modules/minimist/README.md +121 -0
- package/dist/node_modules/minimist/example/parse.js +4 -0
- package/dist/node_modules/minimist/index.js +263 -0
- package/dist/node_modules/minimist/package.json +75 -0
- package/dist/node_modules/minimist/test/all_bool.js +34 -0
- package/dist/node_modules/minimist/test/bool.js +177 -0
- package/dist/node_modules/minimist/test/dash.js +43 -0
- package/dist/node_modules/minimist/test/default_bool.js +37 -0
- package/dist/node_modules/minimist/test/dotted.js +24 -0
- package/dist/node_modules/minimist/test/kv_short.js +32 -0
- package/dist/node_modules/minimist/test/long.js +33 -0
- package/dist/node_modules/minimist/test/num.js +38 -0
- package/dist/node_modules/minimist/test/parse.js +209 -0
- package/dist/node_modules/minimist/test/parse_modified.js +11 -0
- package/dist/node_modules/minimist/test/proto.js +64 -0
- package/dist/node_modules/minimist/test/short.js +69 -0
- package/dist/node_modules/minimist/test/stop_early.js +17 -0
- package/dist/node_modules/minimist/test/unknown.js +104 -0
- package/dist/node_modules/minimist/test/whitespace.js +10 -0
- package/dist/node_modules/playwright/LICENSE +202 -0
- package/dist/node_modules/playwright/NOTICE +5 -0
- package/dist/node_modules/playwright/README.md +170 -0
- package/dist/node_modules/playwright/ThirdPartyNotices.txt +5042 -0
- package/dist/node_modules/playwright/cli.js +19 -0
- package/dist/node_modules/playwright/index.d.ts +17 -0
- package/dist/node_modules/playwright/index.js +17 -0
- package/dist/node_modules/playwright/index.mjs +18 -0
- package/dist/node_modules/playwright/jsx-runtime.js +42 -0
- package/dist/node_modules/playwright/jsx-runtime.mjs +21 -0
- package/dist/node_modules/playwright/lib/agents/agentParser.js +89 -0
- package/dist/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
- package/dist/node_modules/playwright/lib/agents/generateAgents.js +348 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +55 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +73 -0
- package/dist/node_modules/playwright/lib/cli/client/appIcon.png +0 -0
- package/dist/node_modules/playwright/lib/cli/client/devtoolsApp.js +246 -0
- package/dist/node_modules/playwright/lib/cli/client/help.json +89 -0
- package/dist/node_modules/playwright/lib/cli/client/program.js +364 -0
- package/dist/node_modules/playwright/lib/cli/client/registry.js +146 -0
- package/dist/node_modules/playwright/lib/cli/client/session.js +309 -0
- package/dist/node_modules/playwright/lib/cli/client/socketConnection.js +99 -0
- package/dist/node_modules/playwright/lib/cli/daemon/command.js +73 -0
- package/dist/node_modules/playwright/lib/cli/daemon/commands.js +859 -0
- package/dist/node_modules/playwright/lib/cli/daemon/daemon.js +151 -0
- package/dist/node_modules/playwright/lib/cli/daemon/helpGenerator.js +173 -0
- package/dist/node_modules/playwright/lib/cli/daemon/program.js +109 -0
- package/dist/node_modules/playwright/lib/common/config.js +281 -0
- package/dist/node_modules/playwright/lib/common/configLoader.js +344 -0
- package/dist/node_modules/playwright/lib/common/esmLoaderHost.js +104 -0
- package/dist/node_modules/playwright/lib/common/expectBundle.js +28 -0
- package/dist/node_modules/playwright/lib/common/expectBundleImpl.js +407 -0
- package/dist/node_modules/playwright/lib/common/fixtures.js +302 -0
- package/dist/node_modules/playwright/lib/common/globals.js +58 -0
- package/dist/node_modules/playwright/lib/common/ipc.js +60 -0
- package/dist/node_modules/playwright/lib/common/poolBuilder.js +85 -0
- package/dist/node_modules/playwright/lib/common/process.js +132 -0
- package/dist/node_modules/playwright/lib/common/suiteUtils.js +140 -0
- package/dist/node_modules/playwright/lib/common/test.js +330 -0
- package/dist/node_modules/playwright/lib/common/testLoader.js +101 -0
- package/dist/node_modules/playwright/lib/common/testType.js +298 -0
- package/dist/node_modules/playwright/lib/common/validators.js +68 -0
- package/dist/node_modules/playwright/lib/fsWatcher.js +67 -0
- package/dist/node_modules/playwright/lib/index.js +726 -0
- package/dist/node_modules/playwright/lib/internalsForTest.js +42 -0
- package/dist/node_modules/playwright/lib/isomorphic/events.js +77 -0
- package/dist/node_modules/playwright/lib/isomorphic/folders.js +30 -0
- package/dist/node_modules/playwright/lib/isomorphic/stringInternPool.js +69 -0
- package/dist/node_modules/playwright/lib/isomorphic/teleReceiver.js +539 -0
- package/dist/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +157 -0
- package/dist/node_modules/playwright/lib/isomorphic/testServerConnection.js +225 -0
- package/dist/node_modules/playwright/lib/isomorphic/testServerInterface.js +16 -0
- package/dist/node_modules/playwright/lib/isomorphic/testTree.js +329 -0
- package/dist/node_modules/playwright/lib/isomorphic/types.d.js +16 -0
- package/dist/node_modules/playwright/lib/loader/loaderMain.js +59 -0
- package/dist/node_modules/playwright/lib/matchers/expect.js +311 -0
- package/dist/node_modules/playwright/lib/matchers/matcherHint.js +44 -0
- package/dist/node_modules/playwright/lib/matchers/matchers.js +395 -0
- package/dist/node_modules/playwright/lib/matchers/toBeTruthy.js +75 -0
- package/dist/node_modules/playwright/lib/matchers/toEqual.js +100 -0
- package/dist/node_modules/playwright/lib/matchers/toHaveURL.js +101 -0
- package/dist/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +159 -0
- package/dist/node_modules/playwright/lib/matchers/toMatchSnapshot.js +342 -0
- package/dist/node_modules/playwright/lib/matchers/toMatchText.js +99 -0
- package/dist/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +332 -0
- package/dist/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +85 -0
- package/dist/node_modules/playwright/lib/mcp/browser/config.js +467 -0
- package/dist/node_modules/playwright/lib/mcp/browser/configIni.js +190 -0
- package/dist/node_modules/playwright/lib/mcp/browser/context.js +302 -0
- package/dist/node_modules/playwright/lib/mcp/browser/logFile.js +96 -0
- package/dist/node_modules/playwright/lib/mcp/browser/response.js +270 -0
- package/dist/node_modules/playwright/lib/mcp/browser/sessionLog.js +75 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tab.js +421 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/common.js +63 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/config.js +41 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/console.js +65 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/cookies.js +152 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/devtools.js +42 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +59 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +61 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/files.js +58 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/form.js +63 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/install.js +73 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +151 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/mouse.js +159 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/navigate.js +105 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/network.js +92 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/pdf.js +48 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/route.js +140 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/runCode.js +76 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +86 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +207 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/storage.js +67 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/tabs.js +67 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/tool.js +47 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/tracing.js +75 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/utils.js +88 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/verify.js +143 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/video.js +89 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/wait.js +63 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/webstorage.js +223 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools.js +96 -0
- package/dist/node_modules/playwright/lib/mcp/browser/watchdog.js +44 -0
- package/dist/node_modules/playwright/lib/mcp/config.d.js +16 -0
- package/dist/node_modules/playwright/lib/mcp/extension/cdpRelay.js +354 -0
- package/dist/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +77 -0
- package/dist/node_modules/playwright/lib/mcp/extension/protocol.js +28 -0
- package/dist/node_modules/playwright/lib/mcp/index.js +61 -0
- package/dist/node_modules/playwright/lib/mcp/log.js +35 -0
- package/dist/node_modules/playwright/lib/mcp/program.js +76 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/exports.js +28 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/http.js +152 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +71 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/server.js +223 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/tool.js +47 -0
- package/dist/node_modules/playwright/lib/mcp/test/browserBackend.js +98 -0
- package/dist/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
- package/dist/node_modules/playwright/lib/mcp/test/plannerTools.js +145 -0
- package/dist/node_modules/playwright/lib/mcp/test/seed.js +82 -0
- package/dist/node_modules/playwright/lib/mcp/test/streams.js +44 -0
- package/dist/node_modules/playwright/lib/mcp/test/testBackend.js +99 -0
- package/dist/node_modules/playwright/lib/mcp/test/testContext.js +285 -0
- package/dist/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
- package/dist/node_modules/playwright/lib/mcp/test/testTools.js +108 -0
- package/dist/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +198 -0
- package/dist/node_modules/playwright/lib/plugins/index.js +28 -0
- package/dist/node_modules/playwright/lib/plugins/webServerPlugin.js +237 -0
- package/dist/node_modules/playwright/lib/program.js +425 -0
- package/dist/node_modules/playwright/lib/reporters/base.js +634 -0
- package/dist/node_modules/playwright/lib/reporters/blob.js +138 -0
- package/dist/node_modules/playwright/lib/reporters/dot.js +99 -0
- package/dist/node_modules/playwright/lib/reporters/empty.js +32 -0
- package/dist/node_modules/playwright/lib/reporters/github.js +128 -0
- package/dist/node_modules/playwright/lib/reporters/html.js +644 -0
- package/dist/node_modules/playwright/lib/reporters/internalReporter.js +138 -0
- package/dist/node_modules/playwright/lib/reporters/json.js +254 -0
- package/dist/node_modules/playwright/lib/reporters/junit.js +232 -0
- package/dist/node_modules/playwright/lib/reporters/line.js +131 -0
- package/dist/node_modules/playwright/lib/reporters/list.js +253 -0
- package/dist/node_modules/playwright/lib/reporters/listModeReporter.js +69 -0
- package/dist/node_modules/playwright/lib/reporters/markdown.js +144 -0
- package/dist/node_modules/playwright/lib/reporters/merge.js +579 -0
- package/dist/node_modules/playwright/lib/reporters/multiplexer.js +116 -0
- package/dist/node_modules/playwright/lib/reporters/reporterV2.js +102 -0
- package/dist/node_modules/playwright/lib/reporters/teleEmitter.js +319 -0
- package/dist/node_modules/playwright/lib/reporters/versions/blobV1.js +16 -0
- package/dist/node_modules/playwright/lib/runner/dispatcher.js +530 -0
- package/dist/node_modules/playwright/lib/runner/failureTracker.js +72 -0
- package/dist/node_modules/playwright/lib/runner/lastRun.js +77 -0
- package/dist/node_modules/playwright/lib/runner/loadUtils.js +334 -0
- package/dist/node_modules/playwright/lib/runner/loaderHost.js +89 -0
- package/dist/node_modules/playwright/lib/runner/processHost.js +180 -0
- package/dist/node_modules/playwright/lib/runner/projectUtils.js +241 -0
- package/dist/node_modules/playwright/lib/runner/rebase.js +189 -0
- package/dist/node_modules/playwright/lib/runner/reporters.js +143 -0
- package/dist/node_modules/playwright/lib/runner/sigIntWatcher.js +96 -0
- package/dist/node_modules/playwright/lib/runner/storage.js +91 -0
- package/dist/node_modules/playwright/lib/runner/taskRunner.js +127 -0
- package/dist/node_modules/playwright/lib/runner/tasks.js +410 -0
- package/dist/node_modules/playwright/lib/runner/testGroups.js +125 -0
- package/dist/node_modules/playwright/lib/runner/testRunner.js +398 -0
- package/dist/node_modules/playwright/lib/runner/testServer.js +269 -0
- package/dist/node_modules/playwright/lib/runner/uiModeReporter.js +30 -0
- package/dist/node_modules/playwright/lib/runner/vcs.js +72 -0
- package/dist/node_modules/playwright/lib/runner/watchMode.js +396 -0
- package/dist/node_modules/playwright/lib/runner/workerHost.js +104 -0
- package/dist/node_modules/playwright/lib/skill/SKILL.md +278 -0
- package/dist/node_modules/playwright/lib/skill/references/request-mocking.md +87 -0
- package/dist/node_modules/playwright/lib/skill/references/running-code.md +232 -0
- package/dist/node_modules/playwright/lib/skill/references/session-management.md +169 -0
- package/dist/node_modules/playwright/lib/skill/references/storage-state.md +275 -0
- package/dist/node_modules/playwright/lib/skill/references/test-generation.md +88 -0
- package/dist/node_modules/playwright/lib/skill/references/tracing.md +139 -0
- package/dist/node_modules/playwright/lib/skill/references/video-recording.md +43 -0
- package/dist/node_modules/playwright/lib/third_party/pirates.js +62 -0
- package/dist/node_modules/playwright/lib/third_party/tsconfig-loader.js +103 -0
- package/dist/node_modules/playwright/lib/transform/babelBundle.js +46 -0
- package/dist/node_modules/playwright/lib/transform/babelBundleImpl.js +461 -0
- package/dist/node_modules/playwright/lib/transform/compilationCache.js +274 -0
- package/dist/node_modules/playwright/lib/transform/esmLoader.js +103 -0
- package/dist/node_modules/playwright/lib/transform/md.js +221 -0
- package/dist/node_modules/playwright/lib/transform/portTransport.js +67 -0
- package/dist/node_modules/playwright/lib/transform/transform.js +303 -0
- package/dist/node_modules/playwright/lib/util.js +400 -0
- package/dist/node_modules/playwright/lib/utilsBundle.js +50 -0
- package/dist/node_modules/playwright/lib/utilsBundleImpl.js +103 -0
- package/dist/node_modules/playwright/lib/worker/fixtureRunner.js +262 -0
- package/dist/node_modules/playwright/lib/worker/testInfo.js +536 -0
- package/dist/node_modules/playwright/lib/worker/testTracing.js +345 -0
- package/dist/node_modules/playwright/lib/worker/timeoutManager.js +174 -0
- package/dist/node_modules/playwright/lib/worker/util.js +31 -0
- package/dist/node_modules/playwright/lib/worker/workerMain.js +532 -0
- package/dist/node_modules/playwright/node_modules/.bin/playwright-core +21 -0
- package/dist/node_modules/playwright/package.json +73 -0
- package/dist/node_modules/playwright/test.d.ts +18 -0
- package/dist/node_modules/playwright/test.js +24 -0
- package/dist/node_modules/playwright/test.mjs +34 -0
- package/dist/node_modules/playwright/types/test.d.ts +10326 -0
- package/dist/node_modules/playwright/types/testReporter.d.ts +822 -0
- package/dist/node_modules/playwright-core/LICENSE +202 -0
- package/dist/node_modules/playwright-core/NOTICE +5 -0
- package/dist/node_modules/playwright-core/README.md +3 -0
- package/dist/node_modules/playwright-core/ThirdPartyNotices.txt +4095 -0
- package/dist/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/dist/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/dist/node_modules/playwright-core/browsers.json +81 -0
- package/dist/node_modules/playwright-core/cli.js +18 -0
- package/dist/node_modules/playwright-core/index.d.ts +17 -0
- package/dist/node_modules/playwright-core/index.js +32 -0
- package/dist/node_modules/playwright-core/index.mjs +28 -0
- package/dist/node_modules/playwright-core/lib/androidServerImpl.js +65 -0
- package/dist/node_modules/playwright-core/lib/browserServerImpl.js +120 -0
- package/dist/node_modules/playwright-core/lib/cli/driver.js +97 -0
- package/dist/node_modules/playwright-core/lib/cli/program.js +589 -0
- package/dist/node_modules/playwright-core/lib/cli/programWithTestStub.js +74 -0
- package/dist/node_modules/playwright-core/lib/client/android.js +361 -0
- package/dist/node_modules/playwright-core/lib/client/api.js +137 -0
- package/dist/node_modules/playwright-core/lib/client/artifact.js +79 -0
- package/dist/node_modules/playwright-core/lib/client/browser.js +161 -0
- package/dist/node_modules/playwright-core/lib/client/browserContext.js +589 -0
- package/dist/node_modules/playwright-core/lib/client/browserType.js +195 -0
- package/dist/node_modules/playwright-core/lib/client/cdpSession.js +51 -0
- package/dist/node_modules/playwright-core/lib/client/channelOwner.js +194 -0
- package/dist/node_modules/playwright-core/lib/client/clientHelper.js +64 -0
- package/dist/node_modules/playwright-core/lib/client/clientInstrumentation.js +55 -0
- package/dist/node_modules/playwright-core/lib/client/clientStackTrace.js +69 -0
- package/dist/node_modules/playwright-core/lib/client/clock.js +68 -0
- package/dist/node_modules/playwright-core/lib/client/connection.js +318 -0
- package/dist/node_modules/playwright-core/lib/client/consoleMessage.js +61 -0
- package/dist/node_modules/playwright-core/lib/client/coverage.js +44 -0
- package/dist/node_modules/playwright-core/lib/client/dialog.js +56 -0
- package/dist/node_modules/playwright-core/lib/client/download.js +62 -0
- package/dist/node_modules/playwright-core/lib/client/electron.js +138 -0
- package/dist/node_modules/playwright-core/lib/client/elementHandle.js +284 -0
- package/dist/node_modules/playwright-core/lib/client/errors.js +77 -0
- package/dist/node_modules/playwright-core/lib/client/eventEmitter.js +314 -0
- package/dist/node_modules/playwright-core/lib/client/events.js +103 -0
- package/dist/node_modules/playwright-core/lib/client/fetch.js +368 -0
- package/dist/node_modules/playwright-core/lib/client/fileChooser.js +46 -0
- package/dist/node_modules/playwright-core/lib/client/fileUtils.js +34 -0
- package/dist/node_modules/playwright-core/lib/client/frame.js +409 -0
- package/dist/node_modules/playwright-core/lib/client/harRouter.js +99 -0
- package/dist/node_modules/playwright-core/lib/client/input.js +84 -0
- package/dist/node_modules/playwright-core/lib/client/jsHandle.js +109 -0
- package/dist/node_modules/playwright-core/lib/client/jsonPipe.js +39 -0
- package/dist/node_modules/playwright-core/lib/client/localUtils.js +60 -0
- package/dist/node_modules/playwright-core/lib/client/locator.js +369 -0
- package/dist/node_modules/playwright-core/lib/client/network.js +747 -0
- package/dist/node_modules/playwright-core/lib/client/page.js +741 -0
- package/dist/node_modules/playwright-core/lib/client/pageAgent.js +64 -0
- package/dist/node_modules/playwright-core/lib/client/platform.js +77 -0
- package/dist/node_modules/playwright-core/lib/client/playwright.js +71 -0
- package/dist/node_modules/playwright-core/lib/client/selectors.js +55 -0
- package/dist/node_modules/playwright-core/lib/client/stream.js +39 -0
- package/dist/node_modules/playwright-core/lib/client/timeoutSettings.js +79 -0
- package/dist/node_modules/playwright-core/lib/client/tracing.js +119 -0
- package/dist/node_modules/playwright-core/lib/client/types.js +28 -0
- package/dist/node_modules/playwright-core/lib/client/video.js +63 -0
- package/dist/node_modules/playwright-core/lib/client/waiter.js +142 -0
- package/dist/node_modules/playwright-core/lib/client/webError.js +39 -0
- package/dist/node_modules/playwright-core/lib/client/webSocket.js +93 -0
- package/dist/node_modules/playwright-core/lib/client/worker.js +85 -0
- package/dist/node_modules/playwright-core/lib/client/writableStream.js +39 -0
- package/dist/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/clockSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/injectedScriptSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/storageScriptSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/utilityScriptSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/webSocketMockSource.js +336 -0
- package/dist/node_modules/playwright-core/lib/inProcessFactory.js +60 -0
- package/dist/node_modules/playwright-core/lib/inprocess.js +3 -0
- package/dist/node_modules/playwright-core/lib/mcpBundle.js +84 -0
- package/dist/node_modules/playwright-core/lib/mcpBundleImpl/index.js +147 -0
- package/dist/node_modules/playwright-core/lib/outofprocess.js +76 -0
- package/dist/node_modules/playwright-core/lib/protocol/serializers.js +197 -0
- package/dist/node_modules/playwright-core/lib/protocol/validator.js +3017 -0
- package/dist/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +193 -0
- package/dist/node_modules/playwright-core/lib/remote/playwrightConnection.js +129 -0
- package/dist/node_modules/playwright-core/lib/remote/playwrightServer.js +334 -0
- package/dist/node_modules/playwright-core/lib/server/agent/actionRunner.js +341 -0
- package/dist/node_modules/playwright-core/lib/server/agent/actions.js +128 -0
- package/dist/node_modules/playwright-core/lib/server/agent/codegen.js +111 -0
- package/dist/node_modules/playwright-core/lib/server/agent/context.js +161 -0
- package/dist/node_modules/playwright-core/lib/server/agent/expectTools.js +156 -0
- package/dist/node_modules/playwright-core/lib/server/agent/pageAgent.js +204 -0
- package/dist/node_modules/playwright-core/lib/server/agent/performTools.js +262 -0
- package/dist/node_modules/playwright-core/lib/server/agent/tool.js +109 -0
- package/dist/node_modules/playwright-core/lib/server/android/android.js +465 -0
- package/dist/node_modules/playwright-core/lib/server/android/backendAdb.js +177 -0
- package/dist/node_modules/playwright-core/lib/server/artifact.js +127 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +549 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +164 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +213 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +116 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +267 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +128 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiInput.js +146 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +410 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +102 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiPage.js +598 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +106 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +24 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +148 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +261 -0
- package/dist/node_modules/playwright-core/lib/server/browser.js +143 -0
- package/dist/node_modules/playwright-core/lib/server/browserContext.js +712 -0
- package/dist/node_modules/playwright-core/lib/server/browserType.js +332 -0
- package/dist/node_modules/playwright-core/lib/server/callLog.js +82 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/chromium.js +403 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +104 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crBrowser.js +523 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crConnection.js +197 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crCoverage.js +235 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crDevTools.js +111 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +131 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +146 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crInput.js +187 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +707 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crPage.js +1004 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crPdf.js +121 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +145 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +136 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +162 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/protocol.d.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/clock.js +149 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/csharp.js +327 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/java.js +274 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/javascript.js +247 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/jsonl.js +52 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/language.js +132 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/languages.js +68 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/python.js +279 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/types.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/console.js +61 -0
- package/dist/node_modules/playwright-core/lib/server/cookieStore.js +206 -0
- package/dist/node_modules/playwright-core/lib/server/debugController.js +191 -0
- package/dist/node_modules/playwright-core/lib/server/debugger.js +119 -0
- package/dist/node_modules/playwright-core/lib/server/deviceDescriptors.js +39 -0
- package/dist/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +1779 -0
- package/dist/node_modules/playwright-core/lib/server/devtoolsController.js +365 -0
- package/dist/node_modules/playwright-core/lib/server/dialog.js +116 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +325 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +118 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +383 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +118 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +71 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +47 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +364 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +90 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +227 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +211 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/pageAgentDispatcher.js +106 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +410 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +108 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +67 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +68 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +164 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
- package/dist/node_modules/playwright-core/lib/server/dom.js +815 -0
- package/dist/node_modules/playwright-core/lib/server/download.js +70 -0
- package/dist/node_modules/playwright-core/lib/server/electron/electron.js +272 -0
- package/dist/node_modules/playwright-core/lib/server/electron/loader.js +30 -0
- package/dist/node_modules/playwright-core/lib/server/errors.js +69 -0
- package/dist/node_modules/playwright-core/lib/server/fetch.js +621 -0
- package/dist/node_modules/playwright-core/lib/server/fileChooser.js +43 -0
- package/dist/node_modules/playwright-core/lib/server/fileUploadUtils.js +84 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +415 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffConnection.js +142 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +150 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffInput.js +159 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +256 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffPage.js +495 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/firefox.js +114 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/protocol.d.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/formData.js +147 -0
- package/dist/node_modules/playwright-core/lib/server/frameSelectors.js +160 -0
- package/dist/node_modules/playwright-core/lib/server/frames.js +1476 -0
- package/dist/node_modules/playwright-core/lib/server/har/harRecorder.js +147 -0
- package/dist/node_modules/playwright-core/lib/server/har/harTracer.js +607 -0
- package/dist/node_modules/playwright-core/lib/server/harBackend.js +157 -0
- package/dist/node_modules/playwright-core/lib/server/helper.js +96 -0
- package/dist/node_modules/playwright-core/lib/server/index.js +56 -0
- package/dist/node_modules/playwright-core/lib/server/input.js +277 -0
- package/dist/node_modules/playwright-core/lib/server/instrumentation.js +72 -0
- package/dist/node_modules/playwright-core/lib/server/javascript.js +291 -0
- package/dist/node_modules/playwright-core/lib/server/launchApp.js +128 -0
- package/dist/node_modules/playwright-core/lib/server/localUtils.js +214 -0
- package/dist/node_modules/playwright-core/lib/server/macEditingCommands.js +143 -0
- package/dist/node_modules/playwright-core/lib/server/network.js +667 -0
- package/dist/node_modules/playwright-core/lib/server/page.js +839 -0
- package/dist/node_modules/playwright-core/lib/server/pipeTransport.js +89 -0
- package/dist/node_modules/playwright-core/lib/server/playwright.js +69 -0
- package/dist/node_modules/playwright-core/lib/server/progress.js +136 -0
- package/dist/node_modules/playwright-core/lib/server/protocolError.js +52 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/chat.js +161 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderApp.js +366 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +138 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +83 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +157 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/throttledFile.js +57 -0
- package/dist/node_modules/playwright-core/lib/server/recorder.js +527 -0
- package/dist/node_modules/playwright-core/lib/server/registry/browserFetcher.js +177 -0
- package/dist/node_modules/playwright-core/lib/server/registry/dependencies.js +371 -0
- package/dist/node_modules/playwright-core/lib/server/registry/index.js +1391 -0
- package/dist/node_modules/playwright-core/lib/server/registry/nativeDeps.js +1281 -0
- package/dist/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +127 -0
- package/dist/node_modules/playwright-core/lib/server/screencast.js +204 -0
- package/dist/node_modules/playwright-core/lib/server/screenshotter.js +333 -0
- package/dist/node_modules/playwright-core/lib/server/selectors.js +112 -0
- package/dist/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +383 -0
- package/dist/node_modules/playwright-core/lib/server/socksInterceptor.js +95 -0
- package/dist/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +147 -0
- package/dist/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +561 -0
- package/dist/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +604 -0
- package/dist/node_modules/playwright-core/lib/server/trace/viewer/traceParser.js +72 -0
- package/dist/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +245 -0
- package/dist/node_modules/playwright-core/lib/server/transport.js +181 -0
- package/dist/node_modules/playwright-core/lib/server/types.js +28 -0
- package/dist/node_modules/playwright-core/lib/server/usKeyboardLayout.js +145 -0
- package/dist/node_modules/playwright-core/lib/server/utils/ascii.js +44 -0
- package/dist/node_modules/playwright-core/lib/server/utils/comparators.js +139 -0
- package/dist/node_modules/playwright-core/lib/server/utils/crypto.js +216 -0
- package/dist/node_modules/playwright-core/lib/server/utils/debug.js +42 -0
- package/dist/node_modules/playwright-core/lib/server/utils/debugLogger.js +122 -0
- package/dist/node_modules/playwright-core/lib/server/utils/env.js +73 -0
- package/dist/node_modules/playwright-core/lib/server/utils/eventsHelper.js +39 -0
- package/dist/node_modules/playwright-core/lib/server/utils/expectUtils.js +123 -0
- package/dist/node_modules/playwright-core/lib/server/utils/fileUtils.js +191 -0
- package/dist/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +207 -0
- package/dist/node_modules/playwright-core/lib/server/utils/hostPlatform.js +138 -0
- package/dist/node_modules/playwright-core/lib/server/utils/httpServer.js +205 -0
- package/dist/node_modules/playwright-core/lib/server/utils/imageUtils.js +141 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +89 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +109 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +78 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +102 -0
- package/dist/node_modules/playwright-core/lib/server/utils/linuxUtils.js +71 -0
- package/dist/node_modules/playwright-core/lib/server/utils/network.js +242 -0
- package/dist/node_modules/playwright-core/lib/server/utils/nodePlatform.js +154 -0
- package/dist/node_modules/playwright-core/lib/server/utils/pipeTransport.js +84 -0
- package/dist/node_modules/playwright-core/lib/server/utils/processLauncher.js +242 -0
- package/dist/node_modules/playwright-core/lib/server/utils/profiler.js +65 -0
- package/dist/node_modules/playwright-core/lib/server/utils/socksProxy.js +511 -0
- package/dist/node_modules/playwright-core/lib/server/utils/spawnAsync.js +41 -0
- package/dist/node_modules/playwright-core/lib/server/utils/task.js +51 -0
- package/dist/node_modules/playwright-core/lib/server/utils/userAgent.js +98 -0
- package/dist/node_modules/playwright-core/lib/server/utils/wsServer.js +121 -0
- package/dist/node_modules/playwright-core/lib/server/utils/zipFile.js +74 -0
- package/dist/node_modules/playwright-core/lib/server/utils/zones.js +57 -0
- package/dist/node_modules/playwright-core/lib/server/videoRecorder.js +133 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/protocol.d.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/webkit.js +108 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +331 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkConnection.js +144 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +154 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkInput.js +181 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +197 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkPage.js +1163 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +83 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +106 -0
- package/dist/node_modules/playwright-core/lib/third_party/pixelmatch.js +255 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +455 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/assert.js +31 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/colors.js +72 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +245 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +1051 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/headers.js +53 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +689 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +176 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +81 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +51 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +114 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +459 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +80 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +81 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +338 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +43 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +386 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +54 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +158 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +204 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/time.js +49 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +66 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +502 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +131 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +365 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +400 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +58 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/types.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +243 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +262 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +84 -0
- package/dist/node_modules/playwright-core/lib/utils.js +111 -0
- package/dist/node_modules/playwright-core/lib/utilsBundle.js +112 -0
- package/dist/node_modules/playwright-core/lib/utilsBundleImpl/index.js +220 -0
- package/dist/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +1066 -0
- package/dist/node_modules/playwright-core/lib/vite/devtools/assets/index-BlUdtOgD.js +50 -0
- package/dist/node_modules/playwright-core/lib/vite/devtools/assets/index-CcsbAkl3.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/devtools/index.html +28 -0
- package/dist/node_modules/playwright-core/lib/vite/htmlReport/index.html +84 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js +32 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js +193 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-DgOX2t83.js +32 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Dlnhdtv5.js +266 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.Cqh7ej8a.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/index.BVu7tZDe.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/index.DQVmDDrI.js +2 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/index.html +43 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +21 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +5 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/uiMode.D_PBkkZn.js +5 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +17 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- package/dist/node_modules/playwright-core/lib/zipBundle.js +34 -0
- package/dist/node_modules/playwright-core/lib/zipBundleImpl.js +5 -0
- package/dist/node_modules/playwright-core/package.json +43 -0
- package/dist/node_modules/playwright-core/types/protocol.d.ts +24365 -0
- package/dist/node_modules/playwright-core/types/structs.d.ts +45 -0
- package/dist/node_modules/playwright-core/types/types.d.ts +23332 -0
- package/dist/playwright-cli.js +7 -1
- package/dist/stably-plugin-cli/skills/ai-to-programmatic-migration/SKILL.md +95 -0
- package/dist/stably-plugin-cli/skills/browser-interaction-guide/SKILL.md +67 -1
- package/dist/stably-plugin-cli/skills/bulk-test-handling/SKILL.md +4 -0
- package/dist/stably-plugin-cli/skills/debugging-test-failures/SKILL.md +73 -8
- package/dist/stably-plugin-cli/skills/playwright-cli/SKILL.md +32 -0
- package/dist/stably-plugin-cli/skills/stably-cli/SKILL.md +34 -16
- package/package.json +2 -2
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var mouse_exports = {};
|
|
20
|
+
__export(mouse_exports, {
|
|
21
|
+
default: () => mouse_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(mouse_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
const mouseMove = (0, import_tool.defineTabTool)({
|
|
27
|
+
capability: "vision",
|
|
28
|
+
schema: {
|
|
29
|
+
name: "browser_mouse_move_xy",
|
|
30
|
+
title: "Move mouse",
|
|
31
|
+
description: "Move mouse to a given position",
|
|
32
|
+
inputSchema: import_mcpBundle.z.object({
|
|
33
|
+
x: import_mcpBundle.z.number().describe("X coordinate"),
|
|
34
|
+
y: import_mcpBundle.z.number().describe("Y coordinate")
|
|
35
|
+
}),
|
|
36
|
+
type: "input"
|
|
37
|
+
},
|
|
38
|
+
handle: async (tab, params, response) => {
|
|
39
|
+
response.addCode(`// Move mouse to (${params.x}, ${params.y})`);
|
|
40
|
+
response.addCode(`await page.mouse.move(${params.x}, ${params.y});`);
|
|
41
|
+
await tab.waitForCompletion(async () => {
|
|
42
|
+
await tab.page.mouse.move(params.x, params.y);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const mouseDown = (0, import_tool.defineTabTool)({
|
|
47
|
+
capability: "vision",
|
|
48
|
+
schema: {
|
|
49
|
+
name: "browser_mouse_down",
|
|
50
|
+
title: "Press mouse down",
|
|
51
|
+
description: "Press mouse down",
|
|
52
|
+
inputSchema: import_mcpBundle.z.object({
|
|
53
|
+
button: import_mcpBundle.z.enum(["left", "right", "middle"]).optional().describe("Button to press, defaults to left")
|
|
54
|
+
}),
|
|
55
|
+
type: "input"
|
|
56
|
+
},
|
|
57
|
+
handle: async (tab, params, response) => {
|
|
58
|
+
response.addCode(`// Press mouse down`);
|
|
59
|
+
response.addCode(`await page.mouse.down({ button: '${params.button}' });`);
|
|
60
|
+
await tab.page.mouse.down({ button: params.button });
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const mouseUp = (0, import_tool.defineTabTool)({
|
|
64
|
+
capability: "vision",
|
|
65
|
+
schema: {
|
|
66
|
+
name: "browser_mouse_up",
|
|
67
|
+
title: "Press mouse up",
|
|
68
|
+
description: "Press mouse up",
|
|
69
|
+
inputSchema: import_mcpBundle.z.object({
|
|
70
|
+
button: import_mcpBundle.z.enum(["left", "right", "middle"]).optional().describe("Button to press, defaults to left")
|
|
71
|
+
}),
|
|
72
|
+
type: "input"
|
|
73
|
+
},
|
|
74
|
+
handle: async (tab, params, response) => {
|
|
75
|
+
response.addCode(`// Press mouse up`);
|
|
76
|
+
response.addCode(`await page.mouse.up({ button: '${params.button}' });`);
|
|
77
|
+
await tab.page.mouse.up({ button: params.button });
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
const mouseWheel = (0, import_tool.defineTabTool)({
|
|
81
|
+
capability: "vision",
|
|
82
|
+
schema: {
|
|
83
|
+
name: "browser_mouse_wheel",
|
|
84
|
+
title: "Scroll mouse wheel",
|
|
85
|
+
description: "Scroll mouse wheel",
|
|
86
|
+
inputSchema: import_mcpBundle.z.object({
|
|
87
|
+
deltaX: import_mcpBundle.z.number().default(0).describe("X delta"),
|
|
88
|
+
deltaY: import_mcpBundle.z.number().default(0).describe("Y delta")
|
|
89
|
+
}),
|
|
90
|
+
type: "input"
|
|
91
|
+
},
|
|
92
|
+
handle: async (tab, params, response) => {
|
|
93
|
+
response.addCode(`// Scroll mouse wheel`);
|
|
94
|
+
response.addCode(`await page.mouse.wheel(${params.deltaX}, ${params.deltaY});`);
|
|
95
|
+
await tab.page.mouse.wheel(params.deltaX, params.deltaY);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
const mouseClick = (0, import_tool.defineTabTool)({
|
|
99
|
+
capability: "vision",
|
|
100
|
+
schema: {
|
|
101
|
+
name: "browser_mouse_click_xy",
|
|
102
|
+
title: "Click",
|
|
103
|
+
description: "Click left mouse button at a given position",
|
|
104
|
+
inputSchema: import_mcpBundle.z.object({
|
|
105
|
+
x: import_mcpBundle.z.number().describe("X coordinate"),
|
|
106
|
+
y: import_mcpBundle.z.number().describe("Y coordinate")
|
|
107
|
+
}),
|
|
108
|
+
type: "input"
|
|
109
|
+
},
|
|
110
|
+
handle: async (tab, params, response) => {
|
|
111
|
+
response.setIncludeSnapshot();
|
|
112
|
+
response.addCode(`// Click mouse at coordinates (${params.x}, ${params.y})`);
|
|
113
|
+
response.addCode(`await page.mouse.move(${params.x}, ${params.y});`);
|
|
114
|
+
response.addCode(`await page.mouse.down();`);
|
|
115
|
+
response.addCode(`await page.mouse.up();`);
|
|
116
|
+
await tab.waitForCompletion(async () => {
|
|
117
|
+
await tab.page.mouse.move(params.x, params.y);
|
|
118
|
+
await tab.page.mouse.down();
|
|
119
|
+
await tab.page.mouse.up();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const mouseDrag = (0, import_tool.defineTabTool)({
|
|
124
|
+
capability: "vision",
|
|
125
|
+
schema: {
|
|
126
|
+
name: "browser_mouse_drag_xy",
|
|
127
|
+
title: "Drag mouse",
|
|
128
|
+
description: "Drag left mouse button to a given position",
|
|
129
|
+
inputSchema: import_mcpBundle.z.object({
|
|
130
|
+
startX: import_mcpBundle.z.number().describe("Start X coordinate"),
|
|
131
|
+
startY: import_mcpBundle.z.number().describe("Start Y coordinate"),
|
|
132
|
+
endX: import_mcpBundle.z.number().describe("End X coordinate"),
|
|
133
|
+
endY: import_mcpBundle.z.number().describe("End Y coordinate")
|
|
134
|
+
}),
|
|
135
|
+
type: "input"
|
|
136
|
+
},
|
|
137
|
+
handle: async (tab, params, response) => {
|
|
138
|
+
response.setIncludeSnapshot();
|
|
139
|
+
response.addCode(`// Drag mouse from (${params.startX}, ${params.startY}) to (${params.endX}, ${params.endY})`);
|
|
140
|
+
response.addCode(`await page.mouse.move(${params.startX}, ${params.startY});`);
|
|
141
|
+
response.addCode(`await page.mouse.down();`);
|
|
142
|
+
response.addCode(`await page.mouse.move(${params.endX}, ${params.endY});`);
|
|
143
|
+
response.addCode(`await page.mouse.up();`);
|
|
144
|
+
await tab.waitForCompletion(async () => {
|
|
145
|
+
await tab.page.mouse.move(params.startX, params.startY);
|
|
146
|
+
await tab.page.mouse.down();
|
|
147
|
+
await tab.page.mouse.move(params.endX, params.endY);
|
|
148
|
+
await tab.page.mouse.up();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
var mouse_default = [
|
|
153
|
+
mouseMove,
|
|
154
|
+
mouseClick,
|
|
155
|
+
mouseDrag,
|
|
156
|
+
mouseDown,
|
|
157
|
+
mouseUp,
|
|
158
|
+
mouseWheel
|
|
159
|
+
];
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var navigate_exports = {};
|
|
20
|
+
__export(navigate_exports, {
|
|
21
|
+
default: () => navigate_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(navigate_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
const navigate = (0, import_tool.defineTool)({
|
|
27
|
+
capability: "core-navigation",
|
|
28
|
+
schema: {
|
|
29
|
+
name: "browser_navigate",
|
|
30
|
+
title: "Navigate to a URL",
|
|
31
|
+
description: "Navigate to a URL",
|
|
32
|
+
inputSchema: import_mcpBundle.z.object({
|
|
33
|
+
url: import_mcpBundle.z.string().describe("The URL to navigate to")
|
|
34
|
+
}),
|
|
35
|
+
type: "action"
|
|
36
|
+
},
|
|
37
|
+
handle: async (context, params, response) => {
|
|
38
|
+
const tab = await context.ensureTab();
|
|
39
|
+
let url = params.url;
|
|
40
|
+
try {
|
|
41
|
+
new URL(url);
|
|
42
|
+
} catch (e) {
|
|
43
|
+
if (url.startsWith("localhost"))
|
|
44
|
+
url = "http://" + url;
|
|
45
|
+
else
|
|
46
|
+
url = "https://" + url;
|
|
47
|
+
}
|
|
48
|
+
await tab.navigate(url);
|
|
49
|
+
response.setIncludeSnapshot();
|
|
50
|
+
response.addCode(`await page.goto('${params.url}');`);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const goBack = (0, import_tool.defineTabTool)({
|
|
54
|
+
capability: "core-navigation",
|
|
55
|
+
schema: {
|
|
56
|
+
name: "browser_navigate_back",
|
|
57
|
+
title: "Go back",
|
|
58
|
+
description: "Go back to the previous page in the history",
|
|
59
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
60
|
+
type: "action"
|
|
61
|
+
},
|
|
62
|
+
handle: async (tab, params, response) => {
|
|
63
|
+
await tab.page.goBack();
|
|
64
|
+
response.setIncludeSnapshot();
|
|
65
|
+
response.addCode(`await page.goBack();`);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const goForward = (0, import_tool.defineTabTool)({
|
|
69
|
+
capability: "core-navigation",
|
|
70
|
+
skillOnly: true,
|
|
71
|
+
schema: {
|
|
72
|
+
name: "browser_navigate_forward",
|
|
73
|
+
title: "Go forward",
|
|
74
|
+
description: "Go forward to the next page in the history",
|
|
75
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
76
|
+
type: "action"
|
|
77
|
+
},
|
|
78
|
+
handle: async (tab, params, response) => {
|
|
79
|
+
await tab.page.goForward();
|
|
80
|
+
response.setIncludeSnapshot();
|
|
81
|
+
response.addCode(`await page.goForward();`);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const reload = (0, import_tool.defineTabTool)({
|
|
85
|
+
capability: "core-navigation",
|
|
86
|
+
skillOnly: true,
|
|
87
|
+
schema: {
|
|
88
|
+
name: "browser_reload",
|
|
89
|
+
title: "Reload the page",
|
|
90
|
+
description: "Reload the current page",
|
|
91
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
92
|
+
type: "action"
|
|
93
|
+
},
|
|
94
|
+
handle: async (tab, params, response) => {
|
|
95
|
+
await tab.page.reload();
|
|
96
|
+
response.setIncludeSnapshot();
|
|
97
|
+
response.addCode(`await page.reload();`);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
var navigate_default = [
|
|
101
|
+
navigate,
|
|
102
|
+
goBack,
|
|
103
|
+
goForward,
|
|
104
|
+
reload
|
|
105
|
+
];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var network_exports = {};
|
|
20
|
+
__export(network_exports, {
|
|
21
|
+
default: () => network_default,
|
|
22
|
+
isFetch: () => isFetch,
|
|
23
|
+
renderRequest: () => renderRequest
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(network_exports);
|
|
26
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
27
|
+
var import_tool = require("./tool");
|
|
28
|
+
const requests = (0, import_tool.defineTabTool)({
|
|
29
|
+
capability: "core",
|
|
30
|
+
schema: {
|
|
31
|
+
name: "browser_network_requests",
|
|
32
|
+
title: "List network requests",
|
|
33
|
+
description: "Returns all network requests since loading the page",
|
|
34
|
+
inputSchema: import_mcpBundle.z.object({
|
|
35
|
+
includeStatic: import_mcpBundle.z.boolean().default(false).describe("Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false."),
|
|
36
|
+
filename: import_mcpBundle.z.string().optional().describe("Filename to save the network requests to. If not provided, requests are returned as text.")
|
|
37
|
+
}),
|
|
38
|
+
type: "readOnly"
|
|
39
|
+
},
|
|
40
|
+
handle: async (tab, params, response) => {
|
|
41
|
+
const requests2 = await tab.requests();
|
|
42
|
+
const text = [];
|
|
43
|
+
for (const request of requests2) {
|
|
44
|
+
if (!params.includeStatic && !isFetch(request) && isSuccessfulResponse(request))
|
|
45
|
+
continue;
|
|
46
|
+
text.push(await renderRequest(request));
|
|
47
|
+
}
|
|
48
|
+
await response.addResult("Network", text.join("\n"), { prefix: "network", ext: "log", suggestedFilename: params.filename });
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const networkClear = (0, import_tool.defineTabTool)({
|
|
52
|
+
capability: "core",
|
|
53
|
+
skillOnly: true,
|
|
54
|
+
schema: {
|
|
55
|
+
name: "browser_network_clear",
|
|
56
|
+
title: "Clear network requests",
|
|
57
|
+
description: "Clear all network requests",
|
|
58
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
59
|
+
type: "readOnly"
|
|
60
|
+
},
|
|
61
|
+
handle: async (tab, params, response) => {
|
|
62
|
+
await tab.clearRequests();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
function isSuccessfulResponse(request) {
|
|
66
|
+
if (request.failure())
|
|
67
|
+
return false;
|
|
68
|
+
const response = request.existingResponse();
|
|
69
|
+
return !!response && response.status() < 400;
|
|
70
|
+
}
|
|
71
|
+
function isFetch(request) {
|
|
72
|
+
return ["fetch", "xhr"].includes(request.resourceType());
|
|
73
|
+
}
|
|
74
|
+
async function renderRequest(request) {
|
|
75
|
+
const response = request.existingResponse();
|
|
76
|
+
const result = [];
|
|
77
|
+
result.push(`[${request.method().toUpperCase()}] ${request.url()}`);
|
|
78
|
+
if (response)
|
|
79
|
+
result.push(`=> [${response.status()}] ${response.statusText()}`);
|
|
80
|
+
else if (request.failure())
|
|
81
|
+
result.push(`=> [FAILED] ${request.failure()?.errorText ?? "Unknown error"}`);
|
|
82
|
+
return result.join(" ");
|
|
83
|
+
}
|
|
84
|
+
var network_default = [
|
|
85
|
+
requests,
|
|
86
|
+
networkClear
|
|
87
|
+
];
|
|
88
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
89
|
+
0 && (module.exports = {
|
|
90
|
+
isFetch,
|
|
91
|
+
renderRequest
|
|
92
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var pdf_exports = {};
|
|
20
|
+
__export(pdf_exports, {
|
|
21
|
+
default: () => pdf_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(pdf_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_utils = require("playwright-core/lib/utils");
|
|
26
|
+
var import_tool = require("./tool");
|
|
27
|
+
const pdfSchema = import_mcpBundle.z.object({
|
|
28
|
+
filename: import_mcpBundle.z.string().optional().describe("File name to save the pdf to. Defaults to `page-{timestamp}.pdf` if not specified. Prefer relative file names to stay within the output directory.")
|
|
29
|
+
});
|
|
30
|
+
const pdf = (0, import_tool.defineTabTool)({
|
|
31
|
+
capability: "pdf",
|
|
32
|
+
schema: {
|
|
33
|
+
name: "browser_pdf_save",
|
|
34
|
+
title: "Save as PDF",
|
|
35
|
+
description: "Save page as PDF",
|
|
36
|
+
inputSchema: pdfSchema,
|
|
37
|
+
type: "readOnly"
|
|
38
|
+
},
|
|
39
|
+
handle: async (tab, params, response) => {
|
|
40
|
+
const data = await tab.page.pdf();
|
|
41
|
+
const result = await response.resolveClientFile({ prefix: "page", ext: "pdf", suggestedFilename: params.filename }, "Page as pdf");
|
|
42
|
+
await response.addFileResult(result, data);
|
|
43
|
+
response.addCode(`await page.pdf(${(0, import_utils.formatObject)({ path: result.relativeName })});`);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
var pdf_default = [
|
|
47
|
+
pdf
|
|
48
|
+
];
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var route_exports = {};
|
|
20
|
+
__export(route_exports, {
|
|
21
|
+
default: () => route_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(route_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
const route = (0, import_tool.defineTool)({
|
|
27
|
+
capability: "network",
|
|
28
|
+
schema: {
|
|
29
|
+
name: "browser_route",
|
|
30
|
+
title: "Mock network requests",
|
|
31
|
+
description: "Set up a route to mock network requests matching a URL pattern",
|
|
32
|
+
inputSchema: import_mcpBundle.z.object({
|
|
33
|
+
pattern: import_mcpBundle.z.string().describe('URL pattern to match (e.g., "**/api/users", "**/*.{png,jpg}")'),
|
|
34
|
+
status: import_mcpBundle.z.number().optional().describe("HTTP status code to return (default: 200)"),
|
|
35
|
+
body: import_mcpBundle.z.string().optional().describe("Response body (text or JSON string)"),
|
|
36
|
+
contentType: import_mcpBundle.z.string().optional().describe('Content-Type header (e.g., "application/json", "text/html")'),
|
|
37
|
+
headers: import_mcpBundle.z.array(import_mcpBundle.z.string()).optional().describe('Headers to add in "Name: Value" format'),
|
|
38
|
+
removeHeaders: import_mcpBundle.z.string().optional().describe("Comma-separated list of header names to remove from request")
|
|
39
|
+
}),
|
|
40
|
+
type: "action"
|
|
41
|
+
},
|
|
42
|
+
handle: async (context, params, response) => {
|
|
43
|
+
const addHeaders = params.headers ? Object.fromEntries(params.headers.map((h) => {
|
|
44
|
+
const colonIndex = h.indexOf(":");
|
|
45
|
+
return [h.substring(0, colonIndex).trim(), h.substring(colonIndex + 1).trim()];
|
|
46
|
+
})) : void 0;
|
|
47
|
+
const removeHeaders = params.removeHeaders ? params.removeHeaders.split(",").map((h) => h.trim()) : void 0;
|
|
48
|
+
const handler = async (route2) => {
|
|
49
|
+
if (params.body !== void 0 || params.status !== void 0) {
|
|
50
|
+
await route2.fulfill({
|
|
51
|
+
status: params.status ?? 200,
|
|
52
|
+
contentType: params.contentType,
|
|
53
|
+
body: params.body
|
|
54
|
+
});
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const headers = { ...route2.request().headers() };
|
|
58
|
+
if (addHeaders) {
|
|
59
|
+
for (const [key, value] of Object.entries(addHeaders))
|
|
60
|
+
headers[key] = value;
|
|
61
|
+
}
|
|
62
|
+
if (removeHeaders) {
|
|
63
|
+
for (const header of removeHeaders)
|
|
64
|
+
delete headers[header.toLowerCase()];
|
|
65
|
+
}
|
|
66
|
+
await route2.continue({ headers });
|
|
67
|
+
};
|
|
68
|
+
const entry = {
|
|
69
|
+
pattern: params.pattern,
|
|
70
|
+
status: params.status,
|
|
71
|
+
body: params.body,
|
|
72
|
+
contentType: params.contentType,
|
|
73
|
+
addHeaders,
|
|
74
|
+
removeHeaders,
|
|
75
|
+
handler
|
|
76
|
+
};
|
|
77
|
+
await context.addRoute(entry);
|
|
78
|
+
response.addTextResult(`Route added for pattern: ${params.pattern}`);
|
|
79
|
+
response.addCode(`await page.context().route('${params.pattern}', async route => { /* route handler */ });`);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const routeList = (0, import_tool.defineTool)({
|
|
83
|
+
capability: "network",
|
|
84
|
+
schema: {
|
|
85
|
+
name: "browser_route_list",
|
|
86
|
+
title: "List network routes",
|
|
87
|
+
description: "List all active network routes",
|
|
88
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
89
|
+
type: "readOnly"
|
|
90
|
+
},
|
|
91
|
+
handle: async (context, params, response) => {
|
|
92
|
+
const routes = context.routes();
|
|
93
|
+
if (routes.length === 0) {
|
|
94
|
+
response.addTextResult("No active routes");
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const lines = [];
|
|
98
|
+
for (let i = 0; i < routes.length; i++) {
|
|
99
|
+
const route2 = routes[i];
|
|
100
|
+
const details = [];
|
|
101
|
+
if (route2.status !== void 0)
|
|
102
|
+
details.push(`status=${route2.status}`);
|
|
103
|
+
if (route2.body !== void 0)
|
|
104
|
+
details.push(`body=${route2.body.length > 50 ? route2.body.substring(0, 50) + "..." : route2.body}`);
|
|
105
|
+
if (route2.contentType)
|
|
106
|
+
details.push(`contentType=${route2.contentType}`);
|
|
107
|
+
if (route2.addHeaders)
|
|
108
|
+
details.push(`addHeaders=${JSON.stringify(route2.addHeaders)}`);
|
|
109
|
+
if (route2.removeHeaders)
|
|
110
|
+
details.push(`removeHeaders=${route2.removeHeaders.join(",")}`);
|
|
111
|
+
const detailsStr = details.length ? ` (${details.join(", ")})` : "";
|
|
112
|
+
lines.push(`${i + 1}. ${route2.pattern}${detailsStr}`);
|
|
113
|
+
}
|
|
114
|
+
response.addTextResult(lines.join("\n"));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const unroute = (0, import_tool.defineTool)({
|
|
118
|
+
capability: "network",
|
|
119
|
+
schema: {
|
|
120
|
+
name: "browser_unroute",
|
|
121
|
+
title: "Remove network routes",
|
|
122
|
+
description: "Remove network routes matching a pattern (or all routes if no pattern specified)",
|
|
123
|
+
inputSchema: import_mcpBundle.z.object({
|
|
124
|
+
pattern: import_mcpBundle.z.string().optional().describe("URL pattern to unroute (omit to remove all routes)")
|
|
125
|
+
}),
|
|
126
|
+
type: "action"
|
|
127
|
+
},
|
|
128
|
+
handle: async (context, params, response) => {
|
|
129
|
+
const removed = await context.removeRoute(params.pattern);
|
|
130
|
+
if (params.pattern)
|
|
131
|
+
response.addTextResult(`Removed ${removed} route(s) for pattern: ${params.pattern}`);
|
|
132
|
+
else
|
|
133
|
+
response.addTextResult(`Removed all ${removed} route(s)`);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
var route_default = [
|
|
137
|
+
route,
|
|
138
|
+
routeList,
|
|
139
|
+
unroute
|
|
140
|
+
];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var runCode_exports = {};
|
|
30
|
+
__export(runCode_exports, {
|
|
31
|
+
default: () => runCode_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(runCode_exports);
|
|
34
|
+
var import_vm = __toESM(require("vm"));
|
|
35
|
+
var import_utils = require("playwright-core/lib/utils");
|
|
36
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
37
|
+
var import_tool = require("./tool");
|
|
38
|
+
const codeSchema = import_mcpBundle.z.object({
|
|
39
|
+
code: import_mcpBundle.z.string().describe(`A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: \`async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }\``)
|
|
40
|
+
});
|
|
41
|
+
const runCode = (0, import_tool.defineTabTool)({
|
|
42
|
+
capability: "core",
|
|
43
|
+
schema: {
|
|
44
|
+
name: "browser_run_code",
|
|
45
|
+
title: "Run Playwright code",
|
|
46
|
+
description: "Run Playwright code snippet",
|
|
47
|
+
inputSchema: codeSchema,
|
|
48
|
+
type: "action"
|
|
49
|
+
},
|
|
50
|
+
handle: async (tab, params, response) => {
|
|
51
|
+
response.addCode(`await (${params.code})(page);`);
|
|
52
|
+
const __end__ = new import_utils.ManualPromise();
|
|
53
|
+
const context = {
|
|
54
|
+
page: tab.page,
|
|
55
|
+
__end__
|
|
56
|
+
};
|
|
57
|
+
import_vm.default.createContext(context);
|
|
58
|
+
await tab.waitForCompletion(async () => {
|
|
59
|
+
const snippet = `(async () => {
|
|
60
|
+
try {
|
|
61
|
+
const result = await (${params.code})(page);
|
|
62
|
+
__end__.resolve(JSON.stringify(result));
|
|
63
|
+
} catch (e) {
|
|
64
|
+
__end__.reject(e);
|
|
65
|
+
}
|
|
66
|
+
})()`;
|
|
67
|
+
await import_vm.default.runInContext(snippet, context);
|
|
68
|
+
const result = await __end__;
|
|
69
|
+
if (typeof result === "string")
|
|
70
|
+
response.addTextResult(result);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
var runCode_default = [
|
|
75
|
+
runCode
|
|
76
|
+
];
|