@zohodesk/testinglibrary 3.2.13 → 3.2.15
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/README.md +18 -0
- package/build/common/data-generator/steps/DataGeneratorStepsHelper.js +3 -1
- package/build/core/dataGenerator/DataGenerator.js +0 -9
- package/build/core/playwright/constants/reporterConstants.js +11 -0
- package/build/core/playwright/helpers/auth/getUsers.js +2 -1
- package/build/core/playwright/reporter/helpers/mergeAbortedTests.js +78 -0
- package/build/core/playwright/setup/custom-reporter.js +3 -0
- package/build/utils/logger.js +1 -1
- package/npm-shrinkwrap.json +59 -204
- package/package.json +1 -3
- package/test-results/.last-run.json +4 -0
- package/unit_reports/unit-report.html +260 -0
- 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,502 +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 crBrowser_exports = {};
|
|
30
|
-
__export(crBrowser_exports, {
|
|
31
|
-
CRBrowser: () => CRBrowser,
|
|
32
|
-
CRBrowserContext: () => CRBrowserContext
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(crBrowser_exports);
|
|
35
|
-
var import_path = __toESM(require("path"));
|
|
36
|
-
var import_assert = require("../../utils/isomorphic/assert");
|
|
37
|
-
var import_crypto = require("../utils/crypto");
|
|
38
|
-
var import_artifact = require("../artifact");
|
|
39
|
-
var import_browser = require("../browser");
|
|
40
|
-
var import_browserContext = require("../browserContext");
|
|
41
|
-
var import_frames = require("../frames");
|
|
42
|
-
var network = __toESM(require("../network"));
|
|
43
|
-
var import_page = require("../page");
|
|
44
|
-
var import_crConnection = require("./crConnection");
|
|
45
|
-
var import_crPage = require("./crPage");
|
|
46
|
-
var import_crProtocolHelper = require("./crProtocolHelper");
|
|
47
|
-
var import_crServiceWorker = require("./crServiceWorker");
|
|
48
|
-
class CRBrowser extends import_browser.Browser {
|
|
49
|
-
constructor(parent, connection, options) {
|
|
50
|
-
super(parent, options);
|
|
51
|
-
this._clientRootSessionPromise = null;
|
|
52
|
-
this._contexts = /* @__PURE__ */ new Map();
|
|
53
|
-
this._crPages = /* @__PURE__ */ new Map();
|
|
54
|
-
this._serviceWorkers = /* @__PURE__ */ new Map();
|
|
55
|
-
this._version = "";
|
|
56
|
-
this._tracingRecording = false;
|
|
57
|
-
this._userAgent = "";
|
|
58
|
-
this._connection = connection;
|
|
59
|
-
this._session = this._connection.rootSession;
|
|
60
|
-
this._connection.on(import_crConnection.ConnectionEvents.Disconnected, () => this._didDisconnect());
|
|
61
|
-
this._session.on("Target.attachedToTarget", this._onAttachedToTarget.bind(this));
|
|
62
|
-
this._session.on("Target.detachedFromTarget", this._onDetachedFromTarget.bind(this));
|
|
63
|
-
this._session.on("Browser.downloadWillBegin", this._onDownloadWillBegin.bind(this));
|
|
64
|
-
this._session.on("Browser.downloadProgress", this._onDownloadProgress.bind(this));
|
|
65
|
-
}
|
|
66
|
-
static async connect(parent, transport, options, devtools) {
|
|
67
|
-
options = { ...options };
|
|
68
|
-
const connection = new import_crConnection.CRConnection(parent, transport, options.protocolLogger, options.browserLogsCollector);
|
|
69
|
-
const browser = new CRBrowser(parent, connection, options);
|
|
70
|
-
browser._devtools = devtools;
|
|
71
|
-
if (browser.isClank())
|
|
72
|
-
browser._isCollocatedWithServer = false;
|
|
73
|
-
const session = connection.rootSession;
|
|
74
|
-
if (options.__testHookOnConnectToBrowser)
|
|
75
|
-
await options.__testHookOnConnectToBrowser();
|
|
76
|
-
const version = await session.send("Browser.getVersion");
|
|
77
|
-
browser._version = version.product.substring(version.product.indexOf("/") + 1);
|
|
78
|
-
browser._userAgent = version.userAgent;
|
|
79
|
-
browser.options.headful = !version.userAgent.includes("Headless");
|
|
80
|
-
if (!options.persistent) {
|
|
81
|
-
await session.send("Target.setAutoAttach", { autoAttach: true, waitForDebuggerOnStart: true, flatten: true });
|
|
82
|
-
return browser;
|
|
83
|
-
}
|
|
84
|
-
browser._defaultContext = new CRBrowserContext(browser, void 0, options.persistent);
|
|
85
|
-
await Promise.all([
|
|
86
|
-
session.send("Target.setAutoAttach", { autoAttach: true, waitForDebuggerOnStart: true, flatten: true }).then(async () => {
|
|
87
|
-
await session.send("Target.getTargetInfo");
|
|
88
|
-
}),
|
|
89
|
-
browser._defaultContext._initialize()
|
|
90
|
-
]);
|
|
91
|
-
await browser._waitForAllPagesToBeInitialized();
|
|
92
|
-
return browser;
|
|
93
|
-
}
|
|
94
|
-
async doCreateNewContext(options) {
|
|
95
|
-
const proxy = options.proxyOverride || options.proxy;
|
|
96
|
-
let proxyBypassList = void 0;
|
|
97
|
-
if (proxy) {
|
|
98
|
-
if (process.env.PLAYWRIGHT_DISABLE_FORCED_CHROMIUM_PROXIED_LOOPBACK)
|
|
99
|
-
proxyBypassList = proxy.bypass;
|
|
100
|
-
else
|
|
101
|
-
proxyBypassList = "<-loopback>" + (proxy.bypass ? `,${proxy.bypass}` : "");
|
|
102
|
-
}
|
|
103
|
-
const { browserContextId } = await this._session.send("Target.createBrowserContext", {
|
|
104
|
-
disposeOnDetach: true,
|
|
105
|
-
proxyServer: proxy ? proxy.server : void 0,
|
|
106
|
-
proxyBypassList
|
|
107
|
-
});
|
|
108
|
-
const context = new CRBrowserContext(this, browserContextId, options);
|
|
109
|
-
await context._initialize();
|
|
110
|
-
this._contexts.set(browserContextId, context);
|
|
111
|
-
return context;
|
|
112
|
-
}
|
|
113
|
-
contexts() {
|
|
114
|
-
return Array.from(this._contexts.values());
|
|
115
|
-
}
|
|
116
|
-
version() {
|
|
117
|
-
return this._version;
|
|
118
|
-
}
|
|
119
|
-
userAgent() {
|
|
120
|
-
return this._userAgent;
|
|
121
|
-
}
|
|
122
|
-
_platform() {
|
|
123
|
-
if (this._userAgent.includes("Windows"))
|
|
124
|
-
return "win";
|
|
125
|
-
if (this._userAgent.includes("Macintosh"))
|
|
126
|
-
return "mac";
|
|
127
|
-
return "linux";
|
|
128
|
-
}
|
|
129
|
-
isClank() {
|
|
130
|
-
return this.options.name === "clank";
|
|
131
|
-
}
|
|
132
|
-
async _waitForAllPagesToBeInitialized() {
|
|
133
|
-
await Promise.all([...this._crPages.values()].map((crPage) => crPage._page.waitForInitializedOrError()));
|
|
134
|
-
}
|
|
135
|
-
_onAttachedToTarget({ targetInfo, sessionId, waitingForDebugger }) {
|
|
136
|
-
if (targetInfo.type === "browser")
|
|
137
|
-
return;
|
|
138
|
-
const session = this._session.createChildSession(sessionId);
|
|
139
|
-
(0, import_assert.assert)(targetInfo.browserContextId, "targetInfo: " + JSON.stringify(targetInfo, null, 2));
|
|
140
|
-
let context = this._contexts.get(targetInfo.browserContextId) || null;
|
|
141
|
-
if (!context) {
|
|
142
|
-
context = this._defaultContext;
|
|
143
|
-
}
|
|
144
|
-
if (targetInfo.type === "other" && targetInfo.url.startsWith("devtools://devtools") && this._devtools) {
|
|
145
|
-
this._devtools.install(session);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const treatOtherAsPage = targetInfo.type === "other" && process.env.PW_CHROMIUM_ATTACH_TO_OTHER;
|
|
149
|
-
if (!context || targetInfo.type === "other" && !treatOtherAsPage) {
|
|
150
|
-
session.detach().catch(() => {
|
|
151
|
-
});
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
(0, import_assert.assert)(!this._crPages.has(targetInfo.targetId), "Duplicate target " + targetInfo.targetId);
|
|
155
|
-
(0, import_assert.assert)(!this._serviceWorkers.has(targetInfo.targetId), "Duplicate target " + targetInfo.targetId);
|
|
156
|
-
if (targetInfo.type === "page" || treatOtherAsPage) {
|
|
157
|
-
const opener = targetInfo.openerId ? this._crPages.get(targetInfo.openerId) || null : null;
|
|
158
|
-
const crPage = new import_crPage.CRPage(session, targetInfo.targetId, context, opener, { hasUIWindow: targetInfo.type === "page" });
|
|
159
|
-
this._crPages.set(targetInfo.targetId, crPage);
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
if (targetInfo.type === "service_worker") {
|
|
163
|
-
const serviceWorker = new import_crServiceWorker.CRServiceWorker(context, session, targetInfo.url);
|
|
164
|
-
this._serviceWorkers.set(targetInfo.targetId, serviceWorker);
|
|
165
|
-
context.emit(CRBrowserContext.CREvents.ServiceWorker, serviceWorker);
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
session.detach().catch(() => {
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
_onDetachedFromTarget(payload) {
|
|
172
|
-
const targetId = payload.targetId;
|
|
173
|
-
const crPage = this._crPages.get(targetId);
|
|
174
|
-
if (crPage) {
|
|
175
|
-
this._crPages.delete(targetId);
|
|
176
|
-
crPage.didClose();
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
const serviceWorker = this._serviceWorkers.get(targetId);
|
|
180
|
-
if (serviceWorker) {
|
|
181
|
-
this._serviceWorkers.delete(targetId);
|
|
182
|
-
serviceWorker.didClose();
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
_didDisconnect() {
|
|
187
|
-
for (const crPage of this._crPages.values())
|
|
188
|
-
crPage.didClose();
|
|
189
|
-
this._crPages.clear();
|
|
190
|
-
for (const serviceWorker of this._serviceWorkers.values())
|
|
191
|
-
serviceWorker.didClose();
|
|
192
|
-
this._serviceWorkers.clear();
|
|
193
|
-
this._didClose();
|
|
194
|
-
}
|
|
195
|
-
_findOwningPage(frameId) {
|
|
196
|
-
for (const crPage of this._crPages.values()) {
|
|
197
|
-
const frame = crPage._page.frameManager.frame(frameId);
|
|
198
|
-
if (frame)
|
|
199
|
-
return crPage;
|
|
200
|
-
}
|
|
201
|
-
return null;
|
|
202
|
-
}
|
|
203
|
-
_onDownloadWillBegin(payload) {
|
|
204
|
-
const page = this._findOwningPage(payload.frameId);
|
|
205
|
-
if (!page) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
page.willBeginDownload();
|
|
209
|
-
let originPage = page._page.initializedOrUndefined();
|
|
210
|
-
if (!originPage && page._opener)
|
|
211
|
-
originPage = page._opener._page.initializedOrUndefined();
|
|
212
|
-
if (!originPage)
|
|
213
|
-
return;
|
|
214
|
-
this._downloadCreated(originPage, payload.guid, payload.url, payload.suggestedFilename);
|
|
215
|
-
}
|
|
216
|
-
_onDownloadProgress(payload) {
|
|
217
|
-
if (payload.state === "completed")
|
|
218
|
-
this._downloadFinished(payload.guid, "");
|
|
219
|
-
if (payload.state === "canceled")
|
|
220
|
-
this._downloadFinished(payload.guid, this._closeReason || "canceled");
|
|
221
|
-
}
|
|
222
|
-
async _closePage(crPage) {
|
|
223
|
-
await this._session.send("Target.closeTarget", { targetId: crPage._targetId });
|
|
224
|
-
}
|
|
225
|
-
async newBrowserCDPSession() {
|
|
226
|
-
return await this._connection.createBrowserSession();
|
|
227
|
-
}
|
|
228
|
-
async startTracing(page, options = {}) {
|
|
229
|
-
(0, import_assert.assert)(!this._tracingRecording, "Cannot start recording trace while already recording trace.");
|
|
230
|
-
this._tracingClient = page ? page.delegate._mainFrameSession._client : this._session;
|
|
231
|
-
const defaultCategories = [
|
|
232
|
-
"-*",
|
|
233
|
-
"devtools.timeline",
|
|
234
|
-
"v8.execute",
|
|
235
|
-
"disabled-by-default-devtools.timeline",
|
|
236
|
-
"disabled-by-default-devtools.timeline.frame",
|
|
237
|
-
"toplevel",
|
|
238
|
-
"blink.console",
|
|
239
|
-
"blink.user_timing",
|
|
240
|
-
"latencyInfo",
|
|
241
|
-
"disabled-by-default-devtools.timeline.stack",
|
|
242
|
-
"disabled-by-default-v8.cpu_profiler",
|
|
243
|
-
"disabled-by-default-v8.cpu_profiler.hires"
|
|
244
|
-
];
|
|
245
|
-
const {
|
|
246
|
-
screenshots = false,
|
|
247
|
-
categories = defaultCategories
|
|
248
|
-
} = options;
|
|
249
|
-
if (screenshots)
|
|
250
|
-
categories.push("disabled-by-default-devtools.screenshot");
|
|
251
|
-
this._tracingRecording = true;
|
|
252
|
-
await this._tracingClient.send("Tracing.start", {
|
|
253
|
-
transferMode: "ReturnAsStream",
|
|
254
|
-
categories: categories.join(",")
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
async stopTracing() {
|
|
258
|
-
(0, import_assert.assert)(this._tracingClient, "Tracing was not started.");
|
|
259
|
-
const [event] = await Promise.all([
|
|
260
|
-
new Promise((f) => this._tracingClient.once("Tracing.tracingComplete", f)),
|
|
261
|
-
this._tracingClient.send("Tracing.end")
|
|
262
|
-
]);
|
|
263
|
-
const tracingPath = import_path.default.join(this.options.artifactsDir, (0, import_crypto.createGuid)() + ".crtrace");
|
|
264
|
-
await (0, import_crProtocolHelper.saveProtocolStream)(this._tracingClient, event.stream, tracingPath);
|
|
265
|
-
this._tracingRecording = false;
|
|
266
|
-
const artifact = new import_artifact.Artifact(this, tracingPath);
|
|
267
|
-
artifact.reportFinished();
|
|
268
|
-
return artifact;
|
|
269
|
-
}
|
|
270
|
-
isConnected() {
|
|
271
|
-
return !this._connection._closed;
|
|
272
|
-
}
|
|
273
|
-
async _clientRootSession() {
|
|
274
|
-
if (!this._clientRootSessionPromise)
|
|
275
|
-
this._clientRootSessionPromise = this._connection.createBrowserSession();
|
|
276
|
-
return this._clientRootSessionPromise;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
class CRBrowserContext extends import_browserContext.BrowserContext {
|
|
280
|
-
static {
|
|
281
|
-
this.CREvents = {
|
|
282
|
-
ServiceWorker: "serviceworker"
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
constructor(browser, browserContextId, options) {
|
|
286
|
-
super(browser, options, browserContextId);
|
|
287
|
-
this._authenticateProxyViaCredentials();
|
|
288
|
-
}
|
|
289
|
-
async _initialize() {
|
|
290
|
-
(0, import_assert.assert)(!Array.from(this._browser._crPages.values()).some((page) => page._browserContext === this));
|
|
291
|
-
const promises = [super._initialize()];
|
|
292
|
-
if (this._browser.options.name !== "clank" && this._options.acceptDownloads !== "internal-browser-default") {
|
|
293
|
-
promises.push(this._browser._session.send("Browser.setDownloadBehavior", {
|
|
294
|
-
behavior: this._options.acceptDownloads === "accept" ? "allowAndName" : "deny",
|
|
295
|
-
browserContextId: this._browserContextId,
|
|
296
|
-
downloadPath: this._browser.options.downloadsPath,
|
|
297
|
-
eventsEnabled: true
|
|
298
|
-
}));
|
|
299
|
-
}
|
|
300
|
-
await Promise.all(promises);
|
|
301
|
-
}
|
|
302
|
-
_crPages() {
|
|
303
|
-
return [...this._browser._crPages.values()].filter((crPage) => crPage._browserContext === this);
|
|
304
|
-
}
|
|
305
|
-
possiblyUninitializedPages() {
|
|
306
|
-
return this._crPages().map((crPage) => crPage._page);
|
|
307
|
-
}
|
|
308
|
-
async doCreateNewPage() {
|
|
309
|
-
const { targetId } = await this._browser._session.send("Target.createTarget", { url: "about:blank", browserContextId: this._browserContextId });
|
|
310
|
-
return this._browser._crPages.get(targetId)._page;
|
|
311
|
-
}
|
|
312
|
-
async doGetCookies(urls) {
|
|
313
|
-
const { cookies } = await this._browser._session.send("Storage.getCookies", { browserContextId: this._browserContextId });
|
|
314
|
-
return network.filterCookies(cookies.map((c) => {
|
|
315
|
-
const { name, value, domain, path: path2, expires, httpOnly, secure, sameSite } = c;
|
|
316
|
-
const copy = {
|
|
317
|
-
name,
|
|
318
|
-
value,
|
|
319
|
-
domain,
|
|
320
|
-
path: path2,
|
|
321
|
-
expires,
|
|
322
|
-
httpOnly,
|
|
323
|
-
secure,
|
|
324
|
-
sameSite: sameSite ?? "Lax"
|
|
325
|
-
};
|
|
326
|
-
if (c.partitionKey) {
|
|
327
|
-
copy._crHasCrossSiteAncestor = c.partitionKey.hasCrossSiteAncestor;
|
|
328
|
-
copy.partitionKey = c.partitionKey.topLevelSite;
|
|
329
|
-
}
|
|
330
|
-
return copy;
|
|
331
|
-
}), urls);
|
|
332
|
-
}
|
|
333
|
-
async addCookies(cookies) {
|
|
334
|
-
function toChromiumCookie(cookie) {
|
|
335
|
-
const { name, value, url, domain, path: path2, expires, httpOnly, secure, sameSite, partitionKey, _crHasCrossSiteAncestor } = cookie;
|
|
336
|
-
const copy = {
|
|
337
|
-
name,
|
|
338
|
-
value,
|
|
339
|
-
url,
|
|
340
|
-
domain,
|
|
341
|
-
path: path2,
|
|
342
|
-
expires,
|
|
343
|
-
httpOnly,
|
|
344
|
-
secure,
|
|
345
|
-
sameSite
|
|
346
|
-
};
|
|
347
|
-
if (partitionKey) {
|
|
348
|
-
copy.partitionKey = {
|
|
349
|
-
topLevelSite: partitionKey,
|
|
350
|
-
// _crHasCrossSiteAncestor is non-standard, set it true by default if the cookie is partitioned.
|
|
351
|
-
hasCrossSiteAncestor: _crHasCrossSiteAncestor ?? true
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
return copy;
|
|
355
|
-
}
|
|
356
|
-
await this._browser._session.send("Storage.setCookies", {
|
|
357
|
-
cookies: network.rewriteCookies(cookies).map(toChromiumCookie),
|
|
358
|
-
browserContextId: this._browserContextId
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
async doClearCookies() {
|
|
362
|
-
await this._browser._session.send("Storage.clearCookies", { browserContextId: this._browserContextId });
|
|
363
|
-
}
|
|
364
|
-
async doGrantPermissions(origin, permissions) {
|
|
365
|
-
const webPermissionToProtocol = /* @__PURE__ */ new Map([
|
|
366
|
-
["geolocation", "geolocation"],
|
|
367
|
-
["midi", "midi"],
|
|
368
|
-
["notifications", "notifications"],
|
|
369
|
-
["camera", "videoCapture"],
|
|
370
|
-
["microphone", "audioCapture"],
|
|
371
|
-
["background-sync", "backgroundSync"],
|
|
372
|
-
["ambient-light-sensor", "sensors"],
|
|
373
|
-
["accelerometer", "sensors"],
|
|
374
|
-
["gyroscope", "sensors"],
|
|
375
|
-
["magnetometer", "sensors"],
|
|
376
|
-
["clipboard-read", "clipboardReadWrite"],
|
|
377
|
-
["clipboard-write", "clipboardSanitizedWrite"],
|
|
378
|
-
["payment-handler", "paymentHandler"],
|
|
379
|
-
// chrome-specific permissions we have.
|
|
380
|
-
["midi-sysex", "midiSysex"],
|
|
381
|
-
["storage-access", "storageAccess"],
|
|
382
|
-
["local-fonts", "localFonts"],
|
|
383
|
-
["local-network-access", "localNetworkAccess"]
|
|
384
|
-
]);
|
|
385
|
-
const filtered = permissions.map((permission) => {
|
|
386
|
-
const protocolPermission = webPermissionToProtocol.get(permission);
|
|
387
|
-
if (!protocolPermission)
|
|
388
|
-
throw new Error("Unknown permission: " + permission);
|
|
389
|
-
return protocolPermission;
|
|
390
|
-
});
|
|
391
|
-
await this._browser._session.send("Browser.grantPermissions", { origin: origin === "*" ? void 0 : origin, browserContextId: this._browserContextId, permissions: filtered });
|
|
392
|
-
}
|
|
393
|
-
async doClearPermissions() {
|
|
394
|
-
await this._browser._session.send("Browser.resetPermissions", { browserContextId: this._browserContextId });
|
|
395
|
-
}
|
|
396
|
-
async setGeolocation(geolocation) {
|
|
397
|
-
(0, import_browserContext.verifyGeolocation)(geolocation);
|
|
398
|
-
this._options.geolocation = geolocation;
|
|
399
|
-
for (const page of this.pages())
|
|
400
|
-
await page.delegate.updateGeolocation();
|
|
401
|
-
}
|
|
402
|
-
async doUpdateExtraHTTPHeaders() {
|
|
403
|
-
for (const page of this.pages())
|
|
404
|
-
await page.delegate.updateExtraHTTPHeaders();
|
|
405
|
-
for (const sw of this.serviceWorkers())
|
|
406
|
-
await sw.updateExtraHTTPHeaders();
|
|
407
|
-
}
|
|
408
|
-
async setUserAgent(userAgent) {
|
|
409
|
-
this._options.userAgent = userAgent;
|
|
410
|
-
for (const page of this.pages())
|
|
411
|
-
await page.delegate.updateUserAgent();
|
|
412
|
-
}
|
|
413
|
-
async doUpdateOffline() {
|
|
414
|
-
for (const page of this.pages())
|
|
415
|
-
await page.delegate.updateOffline();
|
|
416
|
-
for (const sw of this.serviceWorkers())
|
|
417
|
-
await sw.updateOffline();
|
|
418
|
-
}
|
|
419
|
-
async doSetHTTPCredentials(httpCredentials) {
|
|
420
|
-
this._options.httpCredentials = httpCredentials;
|
|
421
|
-
for (const page of this.pages())
|
|
422
|
-
await page.delegate.updateHttpCredentials();
|
|
423
|
-
for (const sw of this.serviceWorkers())
|
|
424
|
-
await sw.updateHttpCredentials();
|
|
425
|
-
}
|
|
426
|
-
async doAddInitScript(initScript) {
|
|
427
|
-
for (const page of this.pages())
|
|
428
|
-
await page.delegate.addInitScript(initScript);
|
|
429
|
-
}
|
|
430
|
-
async doRemoveInitScripts(initScripts) {
|
|
431
|
-
for (const page of this.pages())
|
|
432
|
-
await page.delegate.removeInitScripts(initScripts);
|
|
433
|
-
}
|
|
434
|
-
async doUpdateRequestInterception() {
|
|
435
|
-
for (const page of this.pages())
|
|
436
|
-
await page.delegate.updateRequestInterception();
|
|
437
|
-
for (const sw of this.serviceWorkers())
|
|
438
|
-
await sw.updateRequestInterception();
|
|
439
|
-
}
|
|
440
|
-
async doUpdateDefaultViewport() {
|
|
441
|
-
}
|
|
442
|
-
async doUpdateDefaultEmulatedMedia() {
|
|
443
|
-
}
|
|
444
|
-
async doExposePlaywrightBinding() {
|
|
445
|
-
for (const page of this._crPages())
|
|
446
|
-
await page.exposePlaywrightBinding();
|
|
447
|
-
}
|
|
448
|
-
async doClose(reason) {
|
|
449
|
-
await this.dialogManager.closeBeforeUnloadDialogs();
|
|
450
|
-
if (!this._browserContextId) {
|
|
451
|
-
await this.stopVideoRecording();
|
|
452
|
-
await this._browser.close({ reason });
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
await this._browser._session.send("Target.disposeBrowserContext", { browserContextId: this._browserContextId });
|
|
456
|
-
this._browser._contexts.delete(this._browserContextId);
|
|
457
|
-
for (const [targetId, serviceWorker] of this._browser._serviceWorkers) {
|
|
458
|
-
if (serviceWorker.browserContext !== this)
|
|
459
|
-
continue;
|
|
460
|
-
serviceWorker.didClose();
|
|
461
|
-
this._browser._serviceWorkers.delete(targetId);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
async stopVideoRecording() {
|
|
465
|
-
await Promise.all(this._crPages().map((crPage) => crPage._mainFrameSession._stopVideoRecording()));
|
|
466
|
-
}
|
|
467
|
-
onClosePersistent() {
|
|
468
|
-
}
|
|
469
|
-
async clearCache() {
|
|
470
|
-
for (const page of this._crPages())
|
|
471
|
-
await page._networkManager.clearCache();
|
|
472
|
-
}
|
|
473
|
-
async cancelDownload(guid) {
|
|
474
|
-
await this._browser._session.send("Browser.cancelDownload", {
|
|
475
|
-
guid,
|
|
476
|
-
browserContextId: this._browserContextId
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
serviceWorkers() {
|
|
480
|
-
return Array.from(this._browser._serviceWorkers.values()).filter((serviceWorker) => serviceWorker.browserContext === this);
|
|
481
|
-
}
|
|
482
|
-
async newCDPSession(page) {
|
|
483
|
-
let targetId = null;
|
|
484
|
-
if (page instanceof import_page.Page) {
|
|
485
|
-
targetId = page.delegate._targetId;
|
|
486
|
-
} else if (page instanceof import_frames.Frame) {
|
|
487
|
-
const session = page._page.delegate._sessions.get(page._id);
|
|
488
|
-
if (!session)
|
|
489
|
-
throw new Error(`This frame does not have a separate CDP session, it is a part of the parent frame's session`);
|
|
490
|
-
targetId = session._targetId;
|
|
491
|
-
} else {
|
|
492
|
-
throw new Error("page: expected Page or Frame");
|
|
493
|
-
}
|
|
494
|
-
const rootSession = await this._browser._clientRootSession();
|
|
495
|
-
return rootSession.attachToTarget(targetId);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
499
|
-
0 && (module.exports = {
|
|
500
|
-
CRBrowser,
|
|
501
|
-
CRBrowserContext
|
|
502
|
-
});
|
package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crConnection.js
DELETED
|
@@ -1,202 +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 crConnection_exports = {};
|
|
20
|
-
__export(crConnection_exports, {
|
|
21
|
-
CDPSession: () => CDPSession,
|
|
22
|
-
CRConnection: () => CRConnection,
|
|
23
|
-
CRSession: () => CRSession,
|
|
24
|
-
ConnectionEvents: () => ConnectionEvents,
|
|
25
|
-
kBrowserCloseMessageId: () => kBrowserCloseMessageId
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(crConnection_exports);
|
|
28
|
-
var import_utils = require("../../utils");
|
|
29
|
-
var import_debugLogger = require("../utils/debugLogger");
|
|
30
|
-
var import_helper = require("../helper");
|
|
31
|
-
var import_protocolError = require("../protocolError");
|
|
32
|
-
var import_instrumentation = require("../instrumentation");
|
|
33
|
-
const ConnectionEvents = {
|
|
34
|
-
Disconnected: Symbol("ConnectionEvents.Disconnected")
|
|
35
|
-
};
|
|
36
|
-
const kBrowserCloseMessageId = -9999;
|
|
37
|
-
class CRConnection extends import_instrumentation.SdkObject {
|
|
38
|
-
constructor(parent, transport, protocolLogger, browserLogsCollector) {
|
|
39
|
-
super(parent, "cr-connection");
|
|
40
|
-
this._lastId = 0;
|
|
41
|
-
this._sessions = /* @__PURE__ */ new Map();
|
|
42
|
-
this._closed = false;
|
|
43
|
-
this.setMaxListeners(0);
|
|
44
|
-
this._transport = transport;
|
|
45
|
-
this._protocolLogger = protocolLogger;
|
|
46
|
-
this._browserLogsCollector = browserLogsCollector;
|
|
47
|
-
this.rootSession = new CRSession(this, null, "");
|
|
48
|
-
this._sessions.set("", this.rootSession);
|
|
49
|
-
this._transport.onmessage = this._onMessage.bind(this);
|
|
50
|
-
this._transport.onclose = this._onClose.bind(this);
|
|
51
|
-
}
|
|
52
|
-
_rawSend(sessionId, method, params) {
|
|
53
|
-
const id = ++this._lastId;
|
|
54
|
-
const message = { id, method, params };
|
|
55
|
-
if (sessionId)
|
|
56
|
-
message.sessionId = sessionId;
|
|
57
|
-
this._protocolLogger("send", message);
|
|
58
|
-
this._transport.send(message);
|
|
59
|
-
return id;
|
|
60
|
-
}
|
|
61
|
-
async _onMessage(message) {
|
|
62
|
-
this._protocolLogger("receive", message);
|
|
63
|
-
if (message.id === kBrowserCloseMessageId)
|
|
64
|
-
return;
|
|
65
|
-
const session = this._sessions.get(message.sessionId || "");
|
|
66
|
-
if (session)
|
|
67
|
-
session._onMessage(message);
|
|
68
|
-
}
|
|
69
|
-
_onClose(reason) {
|
|
70
|
-
this._closed = true;
|
|
71
|
-
this._transport.onmessage = void 0;
|
|
72
|
-
this._transport.onclose = void 0;
|
|
73
|
-
this._browserDisconnectedLogs = import_helper.helper.formatBrowserLogs(this._browserLogsCollector.recentLogs(), reason);
|
|
74
|
-
this.rootSession.dispose();
|
|
75
|
-
Promise.resolve().then(() => this.emit(ConnectionEvents.Disconnected));
|
|
76
|
-
}
|
|
77
|
-
close() {
|
|
78
|
-
if (!this._closed)
|
|
79
|
-
this._transport.close();
|
|
80
|
-
}
|
|
81
|
-
async createBrowserSession() {
|
|
82
|
-
const { sessionId } = await this.rootSession.send("Target.attachToBrowserTarget");
|
|
83
|
-
return new CDPSession(this.rootSession, sessionId);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
class CRSession extends import_instrumentation.SdkObject {
|
|
87
|
-
constructor(connection, parentSession, sessionId, eventListener) {
|
|
88
|
-
super(connection, "cr-session");
|
|
89
|
-
this._callbacks = /* @__PURE__ */ new Map();
|
|
90
|
-
this._crashed = false;
|
|
91
|
-
this._closed = false;
|
|
92
|
-
this.setMaxListeners(0);
|
|
93
|
-
this._connection = connection;
|
|
94
|
-
this._parentSession = parentSession;
|
|
95
|
-
this._sessionId = sessionId;
|
|
96
|
-
this._eventListener = eventListener;
|
|
97
|
-
this.on = super.on;
|
|
98
|
-
this.addListener = super.addListener;
|
|
99
|
-
this.off = super.removeListener;
|
|
100
|
-
this.removeListener = super.removeListener;
|
|
101
|
-
this.once = super.once;
|
|
102
|
-
}
|
|
103
|
-
_markAsCrashed() {
|
|
104
|
-
this._crashed = true;
|
|
105
|
-
}
|
|
106
|
-
createChildSession(sessionId, eventListener) {
|
|
107
|
-
const session = new CRSession(this._connection, this, sessionId, eventListener);
|
|
108
|
-
this._connection._sessions.set(sessionId, session);
|
|
109
|
-
return session;
|
|
110
|
-
}
|
|
111
|
-
async send(method, params) {
|
|
112
|
-
if (this._crashed || this._closed || this._connection._closed || this._connection._browserDisconnectedLogs)
|
|
113
|
-
throw new import_protocolError.ProtocolError(this._crashed ? "crashed" : "closed", void 0, this._connection._browserDisconnectedLogs);
|
|
114
|
-
const id = this._connection._rawSend(this._sessionId, method, params);
|
|
115
|
-
return new Promise((resolve, reject) => {
|
|
116
|
-
this._callbacks.set(id, { resolve, reject, error: new import_protocolError.ProtocolError("error", method) });
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
_sendMayFail(method, params) {
|
|
120
|
-
return this.send(method, params).catch((error) => import_debugLogger.debugLogger.log("error", error));
|
|
121
|
-
}
|
|
122
|
-
_onMessage(object) {
|
|
123
|
-
if (object.id && this._callbacks.has(object.id)) {
|
|
124
|
-
const callback = this._callbacks.get(object.id);
|
|
125
|
-
this._callbacks.delete(object.id);
|
|
126
|
-
if (object.error) {
|
|
127
|
-
callback.error.setMessage(object.error.message);
|
|
128
|
-
callback.reject(callback.error);
|
|
129
|
-
} else {
|
|
130
|
-
callback.resolve(object.result);
|
|
131
|
-
}
|
|
132
|
-
} else if (object.id && object.error?.code === -32001) {
|
|
133
|
-
} else {
|
|
134
|
-
(0, import_utils.assert)(!object.id, object?.error?.message || void 0);
|
|
135
|
-
Promise.resolve().then(() => {
|
|
136
|
-
if (this._eventListener)
|
|
137
|
-
this._eventListener(object.method, object.params);
|
|
138
|
-
this.emit(object.method, object.params);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
async detach() {
|
|
143
|
-
if (this._closed)
|
|
144
|
-
throw new Error(`Session already detached. Most likely the page has been closed.`);
|
|
145
|
-
if (!this._parentSession)
|
|
146
|
-
throw new Error("Root session cannot be closed");
|
|
147
|
-
await this._sendMayFail("Runtime.runIfWaitingForDebugger");
|
|
148
|
-
await this._parentSession.send("Target.detachFromTarget", { sessionId: this._sessionId });
|
|
149
|
-
this.dispose();
|
|
150
|
-
}
|
|
151
|
-
dispose() {
|
|
152
|
-
this._closed = true;
|
|
153
|
-
this._connection._sessions.delete(this._sessionId);
|
|
154
|
-
for (const callback of this._callbacks.values()) {
|
|
155
|
-
callback.error.setMessage(`Internal server error, session closed.`);
|
|
156
|
-
callback.error.type = this._crashed ? "crashed" : "closed";
|
|
157
|
-
callback.error.logs = this._connection._browserDisconnectedLogs;
|
|
158
|
-
callback.reject(callback.error);
|
|
159
|
-
}
|
|
160
|
-
this._callbacks.clear();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
class CDPSession extends import_instrumentation.SdkObject {
|
|
164
|
-
constructor(parentSession, sessionId) {
|
|
165
|
-
super(parentSession, "cdp-session");
|
|
166
|
-
this._listeners = [];
|
|
167
|
-
this._session = parentSession.createChildSession(sessionId, (method, params) => this.emit(CDPSession.Events.Event, { method, params }));
|
|
168
|
-
this._listeners = [import_utils.eventsHelper.addEventListener(parentSession, "Target.detachedFromTarget", (event) => {
|
|
169
|
-
if (event.sessionId === sessionId)
|
|
170
|
-
this._onClose();
|
|
171
|
-
})];
|
|
172
|
-
}
|
|
173
|
-
static {
|
|
174
|
-
this.Events = {
|
|
175
|
-
Event: "event",
|
|
176
|
-
Closed: "close"
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
async send(method, params) {
|
|
180
|
-
return await this._session.send(method, params);
|
|
181
|
-
}
|
|
182
|
-
async detach() {
|
|
183
|
-
return await this._session.detach();
|
|
184
|
-
}
|
|
185
|
-
async attachToTarget(targetId) {
|
|
186
|
-
const { sessionId } = await this.send("Target.attachToTarget", { targetId, flatten: true });
|
|
187
|
-
return new CDPSession(this._session, sessionId);
|
|
188
|
-
}
|
|
189
|
-
_onClose() {
|
|
190
|
-
import_utils.eventsHelper.removeEventListeners(this._listeners);
|
|
191
|
-
this._session.dispose();
|
|
192
|
-
this.emit(CDPSession.Events.Closed);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
196
|
-
0 && (module.exports = {
|
|
197
|
-
CDPSession,
|
|
198
|
-
CRConnection,
|
|
199
|
-
CRSession,
|
|
200
|
-
ConnectionEvents,
|
|
201
|
-
kBrowserCloseMessageId
|
|
202
|
-
});
|