@zohodesk/testinglibrary 3.2.13 → 3.2.14
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/.gitlab-ci.yml +13 -13
- package/build/common/data-generator/steps/DataGeneratorStepsHelper.js +3 -1
- package/build/core/dataGenerator/DataGenerator.js +0 -9
- package/build/core/playwright/helpers/auth/getUsers.js +2 -1
- package/build/test/Test.js +13 -0
- package/npm-shrinkwrap.json +140 -220
- package/package.json +1 -3
- package/playwright-mcp-test/node_modules/.package-lock.json +0 -54
- package/playwright-mcp-test/node_modules/@playwright/mcp/LICENSE +0 -202
- package/playwright-mcp-test/node_modules/@playwright/mcp/README.md +0 -907
- package/playwright-mcp-test/node_modules/@playwright/mcp/cli.js +0 -24
- package/playwright-mcp-test/node_modules/@playwright/mcp/config.d.ts +0 -174
- package/playwright-mcp-test/node_modules/@playwright/mcp/index.d.ts +0 -23
- package/playwright-mcp-test/node_modules/@playwright/mcp/index.js +0 -19
- package/playwright-mcp-test/node_modules/@playwright/mcp/package.json +0 -52
- package/playwright-mcp-test/node_modules/playwright/LICENSE +0 -202
- package/playwright-mcp-test/node_modules/playwright/NOTICE +0 -5
- package/playwright-mcp-test/node_modules/playwright/README.md +0 -168
- package/playwright-mcp-test/node_modules/playwright/ThirdPartyNotices.txt +0 -6277
- package/playwright-mcp-test/node_modules/playwright/cli.js +0 -19
- package/playwright-mcp-test/node_modules/playwright/index.d.ts +0 -17
- package/playwright-mcp-test/node_modules/playwright/index.js +0 -17
- package/playwright-mcp-test/node_modules/playwright/index.mjs +0 -18
- package/playwright-mcp-test/node_modules/playwright/jsx-runtime.js +0 -42
- package/playwright-mcp-test/node_modules/playwright/jsx-runtime.mjs +0 -21
- package/playwright-mcp-test/node_modules/playwright/lib/agents/generateAgents.js +0 -368
- package/playwright-mcp-test/node_modules/playwright/lib/agents/generator.agent.md +0 -101
- package/playwright-mcp-test/node_modules/playwright/lib/agents/healer.agent.md +0 -77
- package/playwright-mcp-test/node_modules/playwright/lib/agents/planner.agent.md +0 -138
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-coverage.prompt.md +0 -31
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-generate.prompt.md +0 -8
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-heal.prompt.md +0 -6
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-plan.prompt.md +0 -9
- package/playwright-mcp-test/node_modules/playwright/lib/common/config.js +0 -280
- package/playwright-mcp-test/node_modules/playwright/lib/common/configLoader.js +0 -344
- package/playwright-mcp-test/node_modules/playwright/lib/common/esmLoaderHost.js +0 -102
- package/playwright-mcp-test/node_modules/playwright/lib/common/expectBundle.js +0 -52
- package/playwright-mcp-test/node_modules/playwright/lib/common/expectBundleImpl.js +0 -389
- package/playwright-mcp-test/node_modules/playwright/lib/common/fixtures.js +0 -302
- package/playwright-mcp-test/node_modules/playwright/lib/common/globals.js +0 -58
- package/playwright-mcp-test/node_modules/playwright/lib/common/ipc.js +0 -60
- package/playwright-mcp-test/node_modules/playwright/lib/common/poolBuilder.js +0 -85
- package/playwright-mcp-test/node_modules/playwright/lib/common/process.js +0 -104
- package/playwright-mcp-test/node_modules/playwright/lib/common/suiteUtils.js +0 -140
- package/playwright-mcp-test/node_modules/playwright/lib/common/test.js +0 -321
- package/playwright-mcp-test/node_modules/playwright/lib/common/testLoader.js +0 -101
- package/playwright-mcp-test/node_modules/playwright/lib/common/testType.js +0 -298
- package/playwright-mcp-test/node_modules/playwright/lib/common/validators.js +0 -68
- package/playwright-mcp-test/node_modules/playwright/lib/fsWatcher.js +0 -67
- package/playwright-mcp-test/node_modules/playwright/lib/index.js +0 -682
- package/playwright-mcp-test/node_modules/playwright/lib/internalsForTest.js +0 -42
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/events.js +0 -77
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/folders.js +0 -30
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/stringInternPool.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/teleReceiver.js +0 -508
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +0 -137
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testServerConnection.js +0 -211
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testServerInterface.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testTree.js +0 -334
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/types.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/loader/loaderMain.js +0 -59
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/expect.js +0 -325
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/matcherHint.js +0 -87
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/matchers.js +0 -366
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toBeTruthy.js +0 -73
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toEqual.js +0 -99
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toHaveURL.js +0 -102
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +0 -159
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchSnapshot.js +0 -341
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchText.js +0 -99
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/actions.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +0 -296
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +0 -76
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/codegen.js +0 -66
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/config.js +0 -385
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/context.js +0 -287
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/response.js +0 -228
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/sessionLog.js +0 -160
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tab.js +0 -280
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/common.js +0 -63
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/console.js +0 -44
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +0 -60
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/files.js +0 -58
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/form.js +0 -73
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/install.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +0 -84
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/mouse.js +0 -107
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/navigate.js +0 -62
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/network.js +0 -54
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/pdf.js +0 -59
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +0 -106
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +0 -181
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tabs.js +0 -67
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tool.js +0 -49
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tracing.js +0 -74
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/utils.js +0 -89
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/verify.js +0 -153
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/wait.js +0 -63
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools.js +0 -80
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/watchdog.js +0 -44
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/config.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/cdpRelay.js +0 -351
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +0 -75
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/protocol.js +0 -28
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/index.js +0 -61
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/log.js +0 -35
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/program.js +0 -96
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/bundle.js +0 -81
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/exports.js +0 -32
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/http.js +0 -187
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +0 -71
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/mdb.js +0 -206
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/proxyBackend.js +0 -128
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/server.js +0 -189
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/tool.js +0 -51
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/browserBackend.js +0 -98
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/generatorTools.js +0 -122
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/plannerTools.js +0 -46
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/seed.js +0 -82
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/streams.js +0 -39
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testBackend.js +0 -97
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testContext.js +0 -176
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testTool.js +0 -30
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testTools.js +0 -115
- package/playwright-mcp-test/node_modules/playwright/lib/mcpBundleImpl.js +0 -41
- package/playwright-mcp-test/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +0 -198
- package/playwright-mcp-test/node_modules/playwright/lib/plugins/index.js +0 -28
- package/playwright-mcp-test/node_modules/playwright/lib/plugins/webServerPlugin.js +0 -209
- package/playwright-mcp-test/node_modules/playwright/lib/program.js +0 -411
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/base.js +0 -609
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/blob.js +0 -135
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/dot.js +0 -82
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/empty.js +0 -32
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/github.js +0 -128
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/html.js +0 -623
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/internalReporter.js +0 -130
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/json.js +0 -254
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/junit.js +0 -232
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/line.js +0 -113
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/list.js +0 -235
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/listModeReporter.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/markdown.js +0 -144
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/merge.js +0 -541
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/multiplexer.js +0 -104
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/reporterV2.js +0 -102
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/teleEmitter.js +0 -298
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/versions/blobV1.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/runner/dispatcher.js +0 -491
- package/playwright-mcp-test/node_modules/playwright/lib/runner/failureTracker.js +0 -72
- package/playwright-mcp-test/node_modules/playwright/lib/runner/lastRun.js +0 -77
- package/playwright-mcp-test/node_modules/playwright/lib/runner/loadUtils.js +0 -334
- package/playwright-mcp-test/node_modules/playwright/lib/runner/loaderHost.js +0 -89
- package/playwright-mcp-test/node_modules/playwright/lib/runner/processHost.js +0 -161
- package/playwright-mcp-test/node_modules/playwright/lib/runner/projectUtils.js +0 -241
- package/playwright-mcp-test/node_modules/playwright/lib/runner/rebase.js +0 -189
- package/playwright-mcp-test/node_modules/playwright/lib/runner/reporters.js +0 -139
- package/playwright-mcp-test/node_modules/playwright/lib/runner/sigIntWatcher.js +0 -96
- package/playwright-mcp-test/node_modules/playwright/lib/runner/taskRunner.js +0 -127
- package/playwright-mcp-test/node_modules/playwright/lib/runner/tasks.js +0 -410
- package/playwright-mcp-test/node_modules/playwright/lib/runner/testGroups.js +0 -117
- package/playwright-mcp-test/node_modules/playwright/lib/runner/testRunner.js +0 -390
- package/playwright-mcp-test/node_modules/playwright/lib/runner/testServer.js +0 -264
- package/playwright-mcp-test/node_modules/playwright/lib/runner/uiModeReporter.js +0 -30
- package/playwright-mcp-test/node_modules/playwright/lib/runner/vcs.js +0 -72
- package/playwright-mcp-test/node_modules/playwright/lib/runner/watchMode.js +0 -395
- package/playwright-mcp-test/node_modules/playwright/lib/runner/workerHost.js +0 -95
- package/playwright-mcp-test/node_modules/playwright/lib/third_party/pirates.js +0 -62
- package/playwright-mcp-test/node_modules/playwright/lib/third_party/tsconfig-loader.js +0 -103
- package/playwright-mcp-test/node_modules/playwright/lib/transform/babelBundle.js +0 -43
- package/playwright-mcp-test/node_modules/playwright/lib/transform/babelBundleImpl.js +0 -461
- package/playwright-mcp-test/node_modules/playwright/lib/transform/compilationCache.js +0 -272
- package/playwright-mcp-test/node_modules/playwright/lib/transform/esmLoader.js +0 -104
- package/playwright-mcp-test/node_modules/playwright/lib/transform/portTransport.js +0 -67
- package/playwright-mcp-test/node_modules/playwright/lib/transform/transform.js +0 -293
- package/playwright-mcp-test/node_modules/playwright/lib/util.js +0 -403
- package/playwright-mcp-test/node_modules/playwright/lib/utilsBundle.js +0 -43
- package/playwright-mcp-test/node_modules/playwright/lib/utilsBundleImpl.js +0 -100
- package/playwright-mcp-test/node_modules/playwright/lib/worker/fixtureRunner.js +0 -258
- package/playwright-mcp-test/node_modules/playwright/lib/worker/testInfo.js +0 -514
- package/playwright-mcp-test/node_modules/playwright/lib/worker/testTracing.js +0 -344
- package/playwright-mcp-test/node_modules/playwright/lib/worker/timeoutManager.js +0 -174
- package/playwright-mcp-test/node_modules/playwright/lib/worker/util.js +0 -31
- package/playwright-mcp-test/node_modules/playwright/lib/worker/workerMain.js +0 -520
- package/playwright-mcp-test/node_modules/playwright/package.json +0 -72
- package/playwright-mcp-test/node_modules/playwright/test.d.ts +0 -18
- package/playwright-mcp-test/node_modules/playwright/test.js +0 -24
- package/playwright-mcp-test/node_modules/playwright/test.mjs +0 -33
- package/playwright-mcp-test/node_modules/playwright/types/test.d.ts +0 -10185
- package/playwright-mcp-test/node_modules/playwright/types/testReporter.d.ts +0 -821
- package/playwright-mcp-test/node_modules/playwright-core/LICENSE +0 -202
- package/playwright-mcp-test/node_modules/playwright-core/NOTICE +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/README.md +0 -3
- package/playwright-mcp-test/node_modules/playwright-core/ThirdPartyNotices.txt +0 -1161
- package/playwright-mcp-test/node_modules/playwright-core/bin/install_media_pack.ps1 +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +0 -35
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -13
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -12
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -48
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -11
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +0 -23
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -48
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -11
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +0 -23
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -48
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -11
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/browsers.json +0 -80
- package/playwright-mcp-test/node_modules/playwright-core/cli.js +0 -18
- package/playwright-mcp-test/node_modules/playwright-core/index.d.ts +0 -17
- package/playwright-mcp-test/node_modules/playwright-core/index.js +0 -32
- package/playwright-mcp-test/node_modules/playwright-core/index.mjs +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/androidServerImpl.js +0 -65
- package/playwright-mcp-test/node_modules/playwright-core/lib/browserServerImpl.js +0 -120
- package/playwright-mcp-test/node_modules/playwright-core/lib/cli/driver.js +0 -97
- package/playwright-mcp-test/node_modules/playwright-core/lib/cli/program.js +0 -634
- package/playwright-mcp-test/node_modules/playwright-core/lib/cli/programWithTestStub.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/accessibility.js +0 -49
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/android.js +0 -361
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/api.js +0 -137
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/artifact.js +0 -79
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/browser.js +0 -163
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/browserContext.js +0 -529
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/browserType.js +0 -184
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/cdpSession.js +0 -51
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/channelOwner.js +0 -194
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientHelper.js +0 -64
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientInstrumentation.js +0 -55
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientStackTrace.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clock.js +0 -68
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/connection.js +0 -314
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/consoleMessage.js +0 -54
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/coverage.js +0 -44
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/dialog.js +0 -56
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/download.js +0 -62
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/electron.js +0 -138
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/elementHandle.js +0 -281
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/errors.js +0 -77
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/eventEmitter.js +0 -314
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/events.js +0 -99
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/fetch.js +0 -369
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/fileChooser.js +0 -46
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/fileUtils.js +0 -34
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/frame.js +0 -408
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/harRouter.js +0 -87
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/input.js +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/jsHandle.js +0 -109
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/jsonPipe.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/localUtils.js +0 -60
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/locator.js +0 -369
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/network.js +0 -747
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/page.js +0 -721
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/platform.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/playwright.js +0 -71
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/selectors.js +0 -55
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/stream.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/timeoutSettings.js +0 -79
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/tracing.js +0 -117
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/types.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/video.js +0 -59
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/waiter.js +0 -142
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/webError.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/webSocket.js +0 -93
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/worker.js +0 -63
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/writableStream.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/clockSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/injectedScriptSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/storageScriptSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/utilityScriptSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/webSocketMockSource.js +0 -336
- package/playwright-mcp-test/node_modules/playwright-core/lib/inProcessFactory.js +0 -60
- package/playwright-mcp-test/node_modules/playwright-core/lib/inprocess.js +0 -3
- package/playwright-mcp-test/node_modules/playwright-core/lib/outofprocess.js +0 -76
- package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/serializers.js +0 -192
- package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/validator.js +0 -2912
- package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +0 -193
- package/playwright-mcp-test/node_modules/playwright-core/lib/remote/playwrightConnection.js +0 -129
- package/playwright-mcp-test/node_modules/playwright-core/lib/remote/playwrightServer.js +0 -335
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/accessibility.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/android/android.js +0 -465
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/android/backendAdb.js +0 -177
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/artifact.js +0 -127
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +0 -490
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +0 -153
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +0 -212
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +0 -221
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +0 -130
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiInput.js +0 -146
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +0 -383
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +0 -102
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiPage.js +0 -554
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +0 -106
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiDeserializer.js +0 -98
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +0 -179
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +0 -148
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +0 -259
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/browser.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/browserContext.js +0 -695
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/browserType.js +0 -328
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/callLog.js +0 -82
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/chromium.js +0 -402
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +0 -95
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crAccessibility.js +0 -263
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crBrowser.js +0 -502
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crConnection.js +0 -202
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crCoverage.js +0 -235
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crDevTools.js +0 -113
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +0 -131
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +0 -146
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crInput.js +0 -187
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +0 -666
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crPage.js +0 -1069
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crPdf.js +0 -121
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +0 -145
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +0 -123
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +0 -162
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/protocol.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/videoRecorder.js +0 -113
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/clock.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/csharp.js +0 -327
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/java.js +0 -274
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/javascript.js +0 -270
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/jsonl.js +0 -52
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/language.js +0 -132
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/languages.js +0 -68
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/python.js +0 -279
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/types.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/console.js +0 -53
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/cookieStore.js +0 -206
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/debugController.js +0 -191
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/debugger.js +0 -119
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/deviceDescriptors.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +0 -1779
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dialog.js +0 -116
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +0 -325
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +0 -118
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +0 -364
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +0 -118
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +0 -64
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +0 -44
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +0 -47
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +0 -371
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +0 -89
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +0 -227
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +0 -213
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +0 -401
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +0 -108
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +0 -67
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +0 -68
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -165
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dom.js +0 -806
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/download.js +0 -70
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/electron/electron.js +0 -270
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/electron/loader.js +0 -29
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/errors.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/fetch.js +0 -621
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/fileChooser.js +0 -43
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/fileUploadUtils.js +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffAccessibility.js +0 -238
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +0 -428
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffConnection.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +0 -150
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffInput.js +0 -159
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +0 -256
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffPage.js +0 -503
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/firefox.js +0 -116
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/protocol.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/formData.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/frameSelectors.js +0 -154
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/frames.js +0 -1455
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/har/harRecorder.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/har/harTracer.js +0 -607
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/harBackend.js +0 -157
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/helper.js +0 -96
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/index.js +0 -58
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/input.js +0 -273
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/instrumentation.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/javascript.js +0 -291
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/launchApp.js +0 -128
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/localUtils.js +0 -214
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/macEditingCommands.js +0 -143
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/network.js +0 -629
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/page.js +0 -867
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/pipeTransport.js +0 -89
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/playwright.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/progress.js +0 -112
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/protocolError.js +0 -52
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/chat.js +0 -161
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderApp.js +0 -387
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +0 -138
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +0 -83
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +0 -157
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/throttledFile.js +0 -57
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder.js +0 -499
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/browserFetcher.js +0 -175
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/dependencies.js +0 -371
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/index.js +0 -1361
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/nativeDeps.js +0 -1280
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +0 -124
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/screenshotter.js +0 -333
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/selectors.js +0 -112
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +0 -383
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/socksInterceptor.js +0 -95
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +0 -541
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +0 -602
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/test/inMemorySnapshotter.js +0 -87
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +0 -230
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/transport.js +0 -181
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/types.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/usKeyboardLayout.js +0 -145
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/ascii.js +0 -44
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/comparators.js +0 -139
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/crypto.js +0 -216
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/debug.js +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/debugLogger.js +0 -122
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/env.js +0 -73
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/eventsHelper.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/expectUtils.js +0 -38
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/fileUtils.js +0 -191
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +0 -207
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/hostPlatform.js +0 -123
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/httpServer.js +0 -218
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/imageUtils.js +0 -146
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +0 -89
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +0 -109
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +0 -78
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +0 -102
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/linuxUtils.js +0 -71
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/network.js +0 -233
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/nodePlatform.js +0 -148
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/pipeTransport.js +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/processLauncher.js +0 -241
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/profiler.js +0 -65
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/socksProxy.js +0 -511
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/spawnAsync.js +0 -41
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/task.js +0 -51
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/userAgent.js +0 -98
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/wsServer.js +0 -121
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/zipFile.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/zones.js +0 -57
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/protocol.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/webkit.js +0 -119
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkAccessibility.js +0 -237
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +0 -339
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkConnection.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +0 -154
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkInput.js +0 -181
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +0 -169
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkPage.js +0 -1134
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +0 -83
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +0 -104
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wsl/webkit-wsl-transport-client.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wsl/webkit-wsl-transport-server.js +0 -113
- package/playwright-mcp-test/node_modules/playwright-core/lib/third_party/pixelmatch.js +0 -255
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +0 -392
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/assert.js +0 -31
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/colors.js +0 -72
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +0 -245
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +0 -1051
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/headers.js +0 -53
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +0 -689
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +0 -176
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +0 -81
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +0 -114
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +0 -459
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +0 -80
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +0 -81
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +0 -321
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +0 -43
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +0 -386
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +0 -54
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +0 -158
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +0 -155
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/time.js +0 -49
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +0 -66
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +0 -58
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/types.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +0 -179
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +0 -251
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils.js +0 -109
- package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundle.js +0 -112
- package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundleImpl/index.js +0 -218
- package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +0 -1066
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/htmlReport/index.html +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DX585GyR.js +0 -25
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/index-DjadjNw5.js +0 -193
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/index-Ri0uHF7I.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/index.html +0 -29
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +0 -9
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-Cw-6jrKz.js +0 -25
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BZIhX7gh.js +0 -266
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +0 -9
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BEjzWGz-.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.Dk_obRs3.js +0 -2
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.I8N9v4jT.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.html +0 -43
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +0 -9
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +0 -21
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +0 -3
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Bai-qGIw.js +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +0 -17
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +0 -32
- package/playwright-mcp-test/node_modules/playwright-core/lib/zipBundle.js +0 -34
- package/playwright-mcp-test/node_modules/playwright-core/lib/zipBundleImpl.js +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/package.json +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/types/protocol.d.ts +0 -23130
- package/playwright-mcp-test/node_modules/playwright-core/types/structs.d.ts +0 -45
- package/playwright-mcp-test/node_modules/playwright-core/types/types.d.ts +0 -22872
- package/playwright-mcp-test/package-lock.json +0 -76
|
@@ -1,383 +0,0 @@
|
|
|
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 socksClientCertificatesInterceptor_exports = {};
|
|
30
|
-
__export(socksClientCertificatesInterceptor_exports, {
|
|
31
|
-
ClientCertificatesProxy: () => ClientCertificatesProxy,
|
|
32
|
-
getMatchingTLSOptionsForOrigin: () => getMatchingTLSOptionsForOrigin,
|
|
33
|
-
rewriteOpenSSLErrorIfNeeded: () => rewriteOpenSSLErrorIfNeeded
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(socksClientCertificatesInterceptor_exports);
|
|
36
|
-
var import_events = require("events");
|
|
37
|
-
var import_http2 = __toESM(require("http2"));
|
|
38
|
-
var import_net = __toESM(require("net"));
|
|
39
|
-
var import_stream = __toESM(require("stream"));
|
|
40
|
-
var import_tls = __toESM(require("tls"));
|
|
41
|
-
var import_socksProxy = require("./utils/socksProxy");
|
|
42
|
-
var import_utils = require("../utils");
|
|
43
|
-
var import_browserContext = require("./browserContext");
|
|
44
|
-
var import_network = require("./utils/network");
|
|
45
|
-
var import_debugLogger = require("./utils/debugLogger");
|
|
46
|
-
var import_happyEyeballs = require("./utils/happyEyeballs");
|
|
47
|
-
var import_utilsBundle = require("../utilsBundle");
|
|
48
|
-
let dummyServerTlsOptions = void 0;
|
|
49
|
-
function loadDummyServerCertsIfNeeded() {
|
|
50
|
-
if (dummyServerTlsOptions)
|
|
51
|
-
return;
|
|
52
|
-
const { cert, key } = (0, import_utils.generateSelfSignedCertificate)();
|
|
53
|
-
dummyServerTlsOptions = { key, cert };
|
|
54
|
-
}
|
|
55
|
-
class SocksProxyConnection {
|
|
56
|
-
constructor(socksProxy, uid, host, port) {
|
|
57
|
-
this._firstPackageReceived = false;
|
|
58
|
-
this._closed = false;
|
|
59
|
-
this.socksProxy = socksProxy;
|
|
60
|
-
this.uid = uid;
|
|
61
|
-
this.host = host;
|
|
62
|
-
this.port = port;
|
|
63
|
-
this._serverCloseEventListener = () => {
|
|
64
|
-
this._browserEncrypted.destroy();
|
|
65
|
-
};
|
|
66
|
-
this._browserEncrypted = new import_stream.default.Duplex({
|
|
67
|
-
read: () => {
|
|
68
|
-
},
|
|
69
|
-
write: (data, encoding, callback) => {
|
|
70
|
-
this.socksProxy._socksProxy.sendSocketData({ uid: this.uid, data });
|
|
71
|
-
callback();
|
|
72
|
-
},
|
|
73
|
-
destroy: (error, callback) => {
|
|
74
|
-
if (error)
|
|
75
|
-
socksProxy._socksProxy.sendSocketError({ uid: this.uid, error: error.message });
|
|
76
|
-
else
|
|
77
|
-
socksProxy._socksProxy.sendSocketEnd({ uid: this.uid });
|
|
78
|
-
callback();
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
async connect() {
|
|
83
|
-
const proxyAgent = this.socksProxy.getProxyAgent(this.host, this.port);
|
|
84
|
-
if (proxyAgent)
|
|
85
|
-
this._serverEncrypted = await proxyAgent.connect(new import_events.EventEmitter(), { host: rewriteToLocalhostIfNeeded(this.host), port: this.port, secureEndpoint: false });
|
|
86
|
-
else
|
|
87
|
-
this._serverEncrypted = await (0, import_happyEyeballs.createSocket)(rewriteToLocalhostIfNeeded(this.host), this.port);
|
|
88
|
-
this._serverEncrypted.once("close", this._serverCloseEventListener);
|
|
89
|
-
this._serverEncrypted.once("error", (error) => this._browserEncrypted.destroy(error));
|
|
90
|
-
if (this._closed) {
|
|
91
|
-
this._serverEncrypted.destroy();
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
this.socksProxy._socksProxy.socketConnected({
|
|
95
|
-
uid: this.uid,
|
|
96
|
-
host: this._serverEncrypted.localAddress,
|
|
97
|
-
port: this._serverEncrypted.localPort
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
onClose() {
|
|
101
|
-
this._serverEncrypted.destroy();
|
|
102
|
-
this._browserEncrypted.destroy();
|
|
103
|
-
this._closed = true;
|
|
104
|
-
}
|
|
105
|
-
onData(data) {
|
|
106
|
-
if (!this._firstPackageReceived) {
|
|
107
|
-
this._firstPackageReceived = true;
|
|
108
|
-
if (data[0] === 22)
|
|
109
|
-
this._establishTlsTunnel(this._browserEncrypted, data);
|
|
110
|
-
else
|
|
111
|
-
this._establishPlaintextTunnel(this._browserEncrypted);
|
|
112
|
-
}
|
|
113
|
-
this._browserEncrypted.push(data);
|
|
114
|
-
}
|
|
115
|
-
_establishPlaintextTunnel(browserEncrypted) {
|
|
116
|
-
browserEncrypted.pipe(this._serverEncrypted);
|
|
117
|
-
this._serverEncrypted.pipe(browserEncrypted);
|
|
118
|
-
}
|
|
119
|
-
_establishTlsTunnel(browserEncrypted, clientHello) {
|
|
120
|
-
const browserALPNProtocols = parseALPNFromClientHello(clientHello) || ["http/1.1"];
|
|
121
|
-
import_debugLogger.debugLogger.log("client-certificates", `Browser->Proxy ${this.host}:${this.port} offers ALPN ${browserALPNProtocols}`);
|
|
122
|
-
const serverDecrypted = import_tls.default.connect({
|
|
123
|
-
socket: this._serverEncrypted,
|
|
124
|
-
host: this.host,
|
|
125
|
-
port: this.port,
|
|
126
|
-
rejectUnauthorized: !this.socksProxy.ignoreHTTPSErrors,
|
|
127
|
-
ALPNProtocols: browserALPNProtocols,
|
|
128
|
-
servername: !import_net.default.isIP(this.host) ? this.host : void 0,
|
|
129
|
-
secureContext: this.socksProxy.secureContextMap.get(new URL(`https://${this.host}:${this.port}`).origin)
|
|
130
|
-
}, async () => {
|
|
131
|
-
const browserDecrypted = await this._upgradeToTLSIfNeeded(browserEncrypted, serverDecrypted.alpnProtocol);
|
|
132
|
-
import_debugLogger.debugLogger.log("client-certificates", `Proxy->Server ${this.host}:${this.port} chooses ALPN ${browserDecrypted.alpnProtocol}`);
|
|
133
|
-
browserDecrypted.pipe(serverDecrypted);
|
|
134
|
-
serverDecrypted.pipe(browserDecrypted);
|
|
135
|
-
const cleanup = (error) => this._serverEncrypted.destroy(error);
|
|
136
|
-
browserDecrypted.once("error", cleanup);
|
|
137
|
-
serverDecrypted.once("error", cleanup);
|
|
138
|
-
browserDecrypted.once("close", cleanup);
|
|
139
|
-
serverDecrypted.once("close", cleanup);
|
|
140
|
-
if (this._closed)
|
|
141
|
-
serverDecrypted.destroy();
|
|
142
|
-
});
|
|
143
|
-
serverDecrypted.once("error", async (error) => {
|
|
144
|
-
import_debugLogger.debugLogger.log("client-certificates", `error when connecting to server: ${error.message.replaceAll("\n", " ")}`);
|
|
145
|
-
this._serverEncrypted.removeListener("close", this._serverCloseEventListener);
|
|
146
|
-
this._serverEncrypted.destroy();
|
|
147
|
-
const browserDecrypted = await this._upgradeToTLSIfNeeded(this._browserEncrypted, serverDecrypted.alpnProtocol);
|
|
148
|
-
const responseBody = (0, import_utils.escapeHTML)("Playwright client-certificate error: " + error.message).replaceAll("\n", " <br>");
|
|
149
|
-
if (browserDecrypted.alpnProtocol === "h2") {
|
|
150
|
-
if ("performServerHandshake" in import_http2.default) {
|
|
151
|
-
const session = import_http2.default.performServerHandshake(browserDecrypted);
|
|
152
|
-
session.on("error", (error2) => {
|
|
153
|
-
this._browserEncrypted.destroy(error2);
|
|
154
|
-
});
|
|
155
|
-
session.once("stream", (stream2) => {
|
|
156
|
-
const cleanup = (error2) => {
|
|
157
|
-
session.close();
|
|
158
|
-
this._browserEncrypted.destroy(error2);
|
|
159
|
-
};
|
|
160
|
-
stream2.once("end", cleanup);
|
|
161
|
-
stream2.once("error", cleanup);
|
|
162
|
-
stream2.respond({
|
|
163
|
-
[import_http2.default.constants.HTTP2_HEADER_CONTENT_TYPE]: "text/html",
|
|
164
|
-
[import_http2.default.constants.HTTP2_HEADER_STATUS]: 503
|
|
165
|
-
});
|
|
166
|
-
stream2.end(responseBody);
|
|
167
|
-
});
|
|
168
|
-
} else {
|
|
169
|
-
this._browserEncrypted.destroy(error);
|
|
170
|
-
}
|
|
171
|
-
} else {
|
|
172
|
-
browserDecrypted.end([
|
|
173
|
-
"HTTP/1.1 503 Internal Server Error",
|
|
174
|
-
"Content-Type: text/html; charset=utf-8",
|
|
175
|
-
"Content-Length: " + Buffer.byteLength(responseBody),
|
|
176
|
-
"",
|
|
177
|
-
responseBody
|
|
178
|
-
].join("\r\n"));
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
async _upgradeToTLSIfNeeded(socket, alpnProtocol) {
|
|
183
|
-
this._brorwserDecrypted ??= new Promise((resolve, reject) => {
|
|
184
|
-
const dummyServer = import_tls.default.createServer({
|
|
185
|
-
...dummyServerTlsOptions,
|
|
186
|
-
ALPNProtocols: [alpnProtocol || "http/1.1"]
|
|
187
|
-
});
|
|
188
|
-
dummyServer.emit("connection", socket);
|
|
189
|
-
dummyServer.once("secureConnection", (tlsSocket) => {
|
|
190
|
-
dummyServer.close();
|
|
191
|
-
resolve(tlsSocket);
|
|
192
|
-
});
|
|
193
|
-
dummyServer.once("error", (error) => {
|
|
194
|
-
dummyServer.close();
|
|
195
|
-
reject(error);
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
return this._brorwserDecrypted;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
class ClientCertificatesProxy {
|
|
202
|
-
constructor(contextOptions) {
|
|
203
|
-
this._connections = /* @__PURE__ */ new Map();
|
|
204
|
-
this.secureContextMap = /* @__PURE__ */ new Map();
|
|
205
|
-
(0, import_browserContext.verifyClientCertificates)(contextOptions.clientCertificates);
|
|
206
|
-
this.ignoreHTTPSErrors = contextOptions.ignoreHTTPSErrors;
|
|
207
|
-
this._proxy = contextOptions.proxy;
|
|
208
|
-
this._initSecureContexts(contextOptions.clientCertificates);
|
|
209
|
-
this._socksProxy = new import_socksProxy.SocksProxy();
|
|
210
|
-
this._socksProxy.setPattern("*");
|
|
211
|
-
this._socksProxy.addListener(import_socksProxy.SocksProxy.Events.SocksRequested, async (payload) => {
|
|
212
|
-
try {
|
|
213
|
-
const connection = new SocksProxyConnection(this, payload.uid, payload.host, payload.port);
|
|
214
|
-
await connection.connect();
|
|
215
|
-
this._connections.set(payload.uid, connection);
|
|
216
|
-
} catch (error) {
|
|
217
|
-
import_debugLogger.debugLogger.log("client-certificates", `Failed to connect to ${payload.host}:${payload.port}: ${error.message}`);
|
|
218
|
-
this._socksProxy.socketFailed({ uid: payload.uid, errorCode: error.code });
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
this._socksProxy.addListener(import_socksProxy.SocksProxy.Events.SocksData, (payload) => {
|
|
222
|
-
this._connections.get(payload.uid)?.onData(payload.data);
|
|
223
|
-
});
|
|
224
|
-
this._socksProxy.addListener(import_socksProxy.SocksProxy.Events.SocksClosed, (payload) => {
|
|
225
|
-
this._connections.get(payload.uid)?.onClose();
|
|
226
|
-
this._connections.delete(payload.uid);
|
|
227
|
-
});
|
|
228
|
-
loadDummyServerCertsIfNeeded();
|
|
229
|
-
}
|
|
230
|
-
getProxyAgent(host, port) {
|
|
231
|
-
const proxyFromOptions = (0, import_network.createProxyAgent)(this._proxy);
|
|
232
|
-
if (proxyFromOptions)
|
|
233
|
-
return proxyFromOptions;
|
|
234
|
-
const proxyFromEnv = (0, import_utilsBundle.getProxyForUrl)(`https://${host}:${port}`);
|
|
235
|
-
if (proxyFromEnv)
|
|
236
|
-
return (0, import_network.createProxyAgent)({ server: proxyFromEnv });
|
|
237
|
-
}
|
|
238
|
-
_initSecureContexts(clientCertificates) {
|
|
239
|
-
const origin2certs = /* @__PURE__ */ new Map();
|
|
240
|
-
for (const cert of clientCertificates || []) {
|
|
241
|
-
const origin = normalizeOrigin(cert.origin);
|
|
242
|
-
const certs = origin2certs.get(origin) || [];
|
|
243
|
-
certs.push(cert);
|
|
244
|
-
origin2certs.set(origin, certs);
|
|
245
|
-
}
|
|
246
|
-
for (const [origin, certs] of origin2certs) {
|
|
247
|
-
try {
|
|
248
|
-
this.secureContextMap.set(origin, import_tls.default.createSecureContext(convertClientCertificatesToTLSOptions(certs)));
|
|
249
|
-
} catch (error) {
|
|
250
|
-
error = rewriteOpenSSLErrorIfNeeded(error);
|
|
251
|
-
throw (0, import_utils.rewriteErrorMessage)(error, `Failed to load client certificate: ${error.message}`);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
static async create(progress, contextOptions) {
|
|
256
|
-
const proxy = new ClientCertificatesProxy(contextOptions);
|
|
257
|
-
try {
|
|
258
|
-
await progress.race(proxy._socksProxy.listen(0, "127.0.0.1"));
|
|
259
|
-
return proxy;
|
|
260
|
-
} catch (error) {
|
|
261
|
-
await proxy.close();
|
|
262
|
-
throw error;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
proxySettings() {
|
|
266
|
-
return { server: `socks5://127.0.0.1:${this._socksProxy.port()}` };
|
|
267
|
-
}
|
|
268
|
-
async close() {
|
|
269
|
-
await this._socksProxy.close();
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
function normalizeOrigin(origin) {
|
|
273
|
-
try {
|
|
274
|
-
return new URL(origin).origin;
|
|
275
|
-
} catch (error) {
|
|
276
|
-
return origin;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
function convertClientCertificatesToTLSOptions(clientCertificates) {
|
|
280
|
-
if (!clientCertificates || !clientCertificates.length)
|
|
281
|
-
return;
|
|
282
|
-
const tlsOptions = {
|
|
283
|
-
pfx: [],
|
|
284
|
-
key: [],
|
|
285
|
-
cert: []
|
|
286
|
-
};
|
|
287
|
-
for (const cert of clientCertificates) {
|
|
288
|
-
if (cert.cert)
|
|
289
|
-
tlsOptions.cert.push(cert.cert);
|
|
290
|
-
if (cert.key)
|
|
291
|
-
tlsOptions.key.push({ pem: cert.key, passphrase: cert.passphrase });
|
|
292
|
-
if (cert.pfx)
|
|
293
|
-
tlsOptions.pfx.push({ buf: cert.pfx, passphrase: cert.passphrase });
|
|
294
|
-
}
|
|
295
|
-
return tlsOptions;
|
|
296
|
-
}
|
|
297
|
-
function getMatchingTLSOptionsForOrigin(clientCertificates, origin) {
|
|
298
|
-
const matchingCerts = clientCertificates?.filter(
|
|
299
|
-
(c) => normalizeOrigin(c.origin) === origin
|
|
300
|
-
);
|
|
301
|
-
return convertClientCertificatesToTLSOptions(matchingCerts);
|
|
302
|
-
}
|
|
303
|
-
function rewriteToLocalhostIfNeeded(host) {
|
|
304
|
-
return host === "local.playwright" ? "localhost" : host;
|
|
305
|
-
}
|
|
306
|
-
function rewriteOpenSSLErrorIfNeeded(error) {
|
|
307
|
-
if (error.message !== "unsupported" && error.code !== "ERR_CRYPTO_UNSUPPORTED_OPERATION")
|
|
308
|
-
return error;
|
|
309
|
-
return (0, import_utils.rewriteErrorMessage)(error, [
|
|
310
|
-
"Unsupported TLS certificate.",
|
|
311
|
-
"Most likely, the security algorithm of the given certificate was deprecated by OpenSSL.",
|
|
312
|
-
"For more details, see https://github.com/openssl/openssl/blob/master/README-PROVIDERS.md#the-legacy-provider",
|
|
313
|
-
"You could probably modernize the certificate by following the steps at https://github.com/nodejs/node/issues/40672#issuecomment-1243648223"
|
|
314
|
-
].join("\n"));
|
|
315
|
-
}
|
|
316
|
-
function parseALPNFromClientHello(buffer) {
|
|
317
|
-
if (buffer.length < 6)
|
|
318
|
-
return null;
|
|
319
|
-
if (buffer[0] !== 22)
|
|
320
|
-
return null;
|
|
321
|
-
let offset = 5;
|
|
322
|
-
if (buffer[offset] !== 1)
|
|
323
|
-
return null;
|
|
324
|
-
offset += 4;
|
|
325
|
-
offset += 2;
|
|
326
|
-
offset += 32;
|
|
327
|
-
if (offset >= buffer.length)
|
|
328
|
-
return null;
|
|
329
|
-
const sessionIdLength = buffer[offset];
|
|
330
|
-
offset += 1 + sessionIdLength;
|
|
331
|
-
if (offset + 2 > buffer.length)
|
|
332
|
-
return null;
|
|
333
|
-
const cipherSuitesLength = buffer.readUInt16BE(offset);
|
|
334
|
-
offset += 2 + cipherSuitesLength;
|
|
335
|
-
if (offset >= buffer.length)
|
|
336
|
-
return null;
|
|
337
|
-
const compressionMethodsLength = buffer[offset];
|
|
338
|
-
offset += 1 + compressionMethodsLength;
|
|
339
|
-
if (offset + 2 > buffer.length)
|
|
340
|
-
return null;
|
|
341
|
-
const extensionsLength = buffer.readUInt16BE(offset);
|
|
342
|
-
offset += 2;
|
|
343
|
-
const extensionsEnd = offset + extensionsLength;
|
|
344
|
-
if (extensionsEnd > buffer.length)
|
|
345
|
-
return null;
|
|
346
|
-
while (offset + 4 <= extensionsEnd) {
|
|
347
|
-
const extensionType = buffer.readUInt16BE(offset);
|
|
348
|
-
offset += 2;
|
|
349
|
-
const extensionLength = buffer.readUInt16BE(offset);
|
|
350
|
-
offset += 2;
|
|
351
|
-
if (offset + extensionLength > extensionsEnd)
|
|
352
|
-
return null;
|
|
353
|
-
if (extensionType === 16)
|
|
354
|
-
return parseALPNExtension(buffer.subarray(offset, offset + extensionLength));
|
|
355
|
-
offset += extensionLength;
|
|
356
|
-
}
|
|
357
|
-
return null;
|
|
358
|
-
}
|
|
359
|
-
function parseALPNExtension(buffer) {
|
|
360
|
-
if (buffer.length < 2)
|
|
361
|
-
return null;
|
|
362
|
-
const listLength = buffer.readUInt16BE(0);
|
|
363
|
-
if (listLength !== buffer.length - 2)
|
|
364
|
-
return null;
|
|
365
|
-
const protocols = [];
|
|
366
|
-
let offset = 2;
|
|
367
|
-
while (offset < buffer.length) {
|
|
368
|
-
const protocolLength = buffer[offset];
|
|
369
|
-
offset += 1;
|
|
370
|
-
if (offset + protocolLength > buffer.length)
|
|
371
|
-
break;
|
|
372
|
-
const protocol = buffer.subarray(offset, offset + protocolLength).toString("utf8");
|
|
373
|
-
protocols.push(protocol);
|
|
374
|
-
offset += protocolLength;
|
|
375
|
-
}
|
|
376
|
-
return protocols.length > 0 ? protocols : null;
|
|
377
|
-
}
|
|
378
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
379
|
-
0 && (module.exports = {
|
|
380
|
-
ClientCertificatesProxy,
|
|
381
|
-
getMatchingTLSOptionsForOrigin,
|
|
382
|
-
rewriteOpenSSLErrorIfNeeded
|
|
383
|
-
});
|
|
@@ -1,95 +0,0 @@
|
|
|
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 socksInterceptor_exports = {};
|
|
30
|
-
__export(socksInterceptor_exports, {
|
|
31
|
-
SocksInterceptor: () => SocksInterceptor
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(socksInterceptor_exports);
|
|
34
|
-
var import_events = __toESM(require("events"));
|
|
35
|
-
var socks = __toESM(require("./utils/socksProxy"));
|
|
36
|
-
var import_validator = require("../protocol/validator");
|
|
37
|
-
var import_debug = require("./utils/debug");
|
|
38
|
-
class SocksInterceptor {
|
|
39
|
-
constructor(transport, pattern, redirectPortForTest) {
|
|
40
|
-
this._ids = /* @__PURE__ */ new Set();
|
|
41
|
-
this._handler = new socks.SocksProxyHandler(pattern, redirectPortForTest);
|
|
42
|
-
let lastId = -1;
|
|
43
|
-
this._channel = new Proxy(new import_events.default(), {
|
|
44
|
-
get: (obj, prop) => {
|
|
45
|
-
if (prop in obj || obj[prop] !== void 0 || typeof prop !== "string")
|
|
46
|
-
return obj[prop];
|
|
47
|
-
return (params) => {
|
|
48
|
-
try {
|
|
49
|
-
const id = --lastId;
|
|
50
|
-
this._ids.add(id);
|
|
51
|
-
const validator = (0, import_validator.findValidator)("SocksSupport", prop, "Params");
|
|
52
|
-
params = validator(params, "", { tChannelImpl: tChannelForSocks, binary: "toBase64", isUnderTest: import_debug.isUnderTest });
|
|
53
|
-
transport.send({ id, guid: this._socksSupportObjectGuid, method: prop, params, metadata: { stack: [], apiName: "", internal: true } });
|
|
54
|
-
} catch (e) {
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
this._handler.on(socks.SocksProxyHandler.Events.SocksConnected, (payload) => this._channel.socksConnected(payload));
|
|
60
|
-
this._handler.on(socks.SocksProxyHandler.Events.SocksData, (payload) => this._channel.socksData(payload));
|
|
61
|
-
this._handler.on(socks.SocksProxyHandler.Events.SocksError, (payload) => this._channel.socksError(payload));
|
|
62
|
-
this._handler.on(socks.SocksProxyHandler.Events.SocksFailed, (payload) => this._channel.socksFailed(payload));
|
|
63
|
-
this._handler.on(socks.SocksProxyHandler.Events.SocksEnd, (payload) => this._channel.socksEnd(payload));
|
|
64
|
-
this._channel.on("socksRequested", (payload) => this._handler.socketRequested(payload));
|
|
65
|
-
this._channel.on("socksClosed", (payload) => this._handler.socketClosed(payload));
|
|
66
|
-
this._channel.on("socksData", (payload) => this._handler.sendSocketData(payload));
|
|
67
|
-
}
|
|
68
|
-
cleanup() {
|
|
69
|
-
this._handler.cleanup();
|
|
70
|
-
}
|
|
71
|
-
interceptMessage(message) {
|
|
72
|
-
if (this._ids.has(message.id)) {
|
|
73
|
-
this._ids.delete(message.id);
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
if (message.method === "__create__" && message.params.type === "SocksSupport") {
|
|
77
|
-
this._socksSupportObjectGuid = message.params.guid;
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
if (this._socksSupportObjectGuid && message.guid === this._socksSupportObjectGuid) {
|
|
81
|
-
const validator = (0, import_validator.findValidator)("SocksSupport", message.method, "Event");
|
|
82
|
-
const params = validator(message.params, "", { tChannelImpl: tChannelForSocks, binary: "fromBase64", isUnderTest: import_debug.isUnderTest });
|
|
83
|
-
this._channel.emit(message.method, params);
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function tChannelForSocks(names, arg, path, context) {
|
|
90
|
-
throw new import_validator.ValidationError(`${path}: channels are not expected in SocksSupport`);
|
|
91
|
-
}
|
|
92
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
-
0 && (module.exports = {
|
|
94
|
-
SocksInterceptor
|
|
95
|
-
});
|
package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
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 snapshotter_exports = {};
|
|
20
|
-
__export(snapshotter_exports, {
|
|
21
|
-
Snapshotter: () => Snapshotter
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(snapshotter_exports);
|
|
24
|
-
var import_snapshotterInjected = require("./snapshotterInjected");
|
|
25
|
-
var import_time = require("../../../utils/isomorphic/time");
|
|
26
|
-
var import_crypto = require("../../utils/crypto");
|
|
27
|
-
var import_debugLogger = require("../../utils/debugLogger");
|
|
28
|
-
var import_eventsHelper = require("../../utils/eventsHelper");
|
|
29
|
-
var import_utilsBundle = require("../../../utilsBundle");
|
|
30
|
-
var import_browserContext = require("../../browserContext");
|
|
31
|
-
var import_page = require("../../page");
|
|
32
|
-
class Snapshotter {
|
|
33
|
-
constructor(context, delegate) {
|
|
34
|
-
this._eventListeners = [];
|
|
35
|
-
this._started = false;
|
|
36
|
-
this._context = context;
|
|
37
|
-
this._delegate = delegate;
|
|
38
|
-
const guid = (0, import_crypto.createGuid)();
|
|
39
|
-
this._snapshotStreamer = "__playwright_snapshot_streamer_" + guid;
|
|
40
|
-
}
|
|
41
|
-
started() {
|
|
42
|
-
return this._started;
|
|
43
|
-
}
|
|
44
|
-
async start() {
|
|
45
|
-
this._started = true;
|
|
46
|
-
if (!this._initScript)
|
|
47
|
-
await this._initialize();
|
|
48
|
-
await this.reset();
|
|
49
|
-
}
|
|
50
|
-
async reset() {
|
|
51
|
-
if (this._started)
|
|
52
|
-
await this._context.safeNonStallingEvaluateInAllFrames(`window["${this._snapshotStreamer}"].reset()`, "main");
|
|
53
|
-
}
|
|
54
|
-
stop() {
|
|
55
|
-
this._started = false;
|
|
56
|
-
}
|
|
57
|
-
async resetForReuse() {
|
|
58
|
-
if (this._initScript) {
|
|
59
|
-
import_eventsHelper.eventsHelper.removeEventListeners(this._eventListeners);
|
|
60
|
-
await this._context.removeInitScripts([this._initScript]);
|
|
61
|
-
this._initScript = void 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
async _initialize() {
|
|
65
|
-
for (const page of this._context.pages())
|
|
66
|
-
this._onPage(page);
|
|
67
|
-
this._eventListeners = [
|
|
68
|
-
import_eventsHelper.eventsHelper.addEventListener(this._context, import_browserContext.BrowserContext.Events.Page, this._onPage.bind(this))
|
|
69
|
-
];
|
|
70
|
-
const { javaScriptEnabled } = this._context._options;
|
|
71
|
-
const initScriptSource = `(${import_snapshotterInjected.frameSnapshotStreamer})("${this._snapshotStreamer}", ${javaScriptEnabled || javaScriptEnabled === void 0})`;
|
|
72
|
-
this._initScript = await this._context.addInitScript(void 0, initScriptSource);
|
|
73
|
-
await this._context.safeNonStallingEvaluateInAllFrames(initScriptSource, "main");
|
|
74
|
-
}
|
|
75
|
-
dispose() {
|
|
76
|
-
import_eventsHelper.eventsHelper.removeEventListeners(this._eventListeners);
|
|
77
|
-
}
|
|
78
|
-
async _captureFrameSnapshot(frame) {
|
|
79
|
-
const needsReset = !!frame[kNeedsResetSymbol];
|
|
80
|
-
frame[kNeedsResetSymbol] = false;
|
|
81
|
-
const expression = `window["${this._snapshotStreamer}"].captureSnapshot(${needsReset ? "true" : "false"})`;
|
|
82
|
-
try {
|
|
83
|
-
return await frame.nonStallingRawEvaluateInExistingMainContext(expression);
|
|
84
|
-
} catch (e) {
|
|
85
|
-
frame[kNeedsResetSymbol] = true;
|
|
86
|
-
import_debugLogger.debugLogger.log("error", e);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async captureSnapshot(page, callId, snapshotName) {
|
|
90
|
-
const snapshots = page.frames().map(async (frame) => {
|
|
91
|
-
const data = await this._captureFrameSnapshot(frame);
|
|
92
|
-
if (!data || !this._started)
|
|
93
|
-
return;
|
|
94
|
-
const snapshot = {
|
|
95
|
-
callId,
|
|
96
|
-
snapshotName,
|
|
97
|
-
pageId: page.guid,
|
|
98
|
-
frameId: frame.guid,
|
|
99
|
-
frameUrl: data.url,
|
|
100
|
-
doctype: data.doctype,
|
|
101
|
-
html: data.html,
|
|
102
|
-
viewport: data.viewport,
|
|
103
|
-
timestamp: (0, import_time.monotonicTime)(),
|
|
104
|
-
wallTime: data.wallTime,
|
|
105
|
-
collectionTime: data.collectionTime,
|
|
106
|
-
resourceOverrides: [],
|
|
107
|
-
isMainFrame: page.mainFrame() === frame
|
|
108
|
-
};
|
|
109
|
-
for (const { url, content, contentType } of data.resourceOverrides) {
|
|
110
|
-
if (typeof content === "string") {
|
|
111
|
-
const buffer = Buffer.from(content);
|
|
112
|
-
const sha1 = (0, import_crypto.calculateSha1)(buffer) + "." + (import_utilsBundle.mime.getExtension(contentType) || "dat");
|
|
113
|
-
this._delegate.onSnapshotterBlob({ sha1, buffer });
|
|
114
|
-
snapshot.resourceOverrides.push({ url, sha1 });
|
|
115
|
-
} else {
|
|
116
|
-
snapshot.resourceOverrides.push({ url, ref: content });
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
this._delegate.onFrameSnapshot(snapshot);
|
|
120
|
-
});
|
|
121
|
-
await Promise.all(snapshots);
|
|
122
|
-
}
|
|
123
|
-
_onPage(page) {
|
|
124
|
-
for (const frame of page.frames())
|
|
125
|
-
this._annotateFrameHierarchy(frame);
|
|
126
|
-
this._eventListeners.push(import_eventsHelper.eventsHelper.addEventListener(page, import_page.Page.Events.FrameAttached, (frame) => this._annotateFrameHierarchy(frame)));
|
|
127
|
-
}
|
|
128
|
-
async _annotateFrameHierarchy(frame) {
|
|
129
|
-
try {
|
|
130
|
-
const frameElement = await frame.frameElement();
|
|
131
|
-
const parent = frame.parentFrame();
|
|
132
|
-
if (!parent)
|
|
133
|
-
return;
|
|
134
|
-
const context = await parent._mainContext();
|
|
135
|
-
await context?.evaluate(({ snapshotStreamer, frameElement: frameElement2, frameId }) => {
|
|
136
|
-
window[snapshotStreamer].markIframe(frameElement2, frameId);
|
|
137
|
-
}, { snapshotStreamer: this._snapshotStreamer, frameElement, frameId: frame.guid });
|
|
138
|
-
frameElement.dispose();
|
|
139
|
-
} catch (e) {
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
const kNeedsResetSymbol = Symbol("kNeedsReset");
|
|
144
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
145
|
-
0 && (module.exports = {
|
|
146
|
-
Snapshotter
|
|
147
|
-
});
|