@pedropaulovc/playwright 1.59.0-alpha-1769214875000
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/LICENSE +202 -0
- package/NOTICE +5 -0
- package/README.md +170 -0
- package/ThirdPartyNotices.txt +5042 -0
- package/cli.js +19 -0
- package/index.d.ts +17 -0
- package/index.js +17 -0
- package/index.mjs +18 -0
- package/jsx-runtime.js +42 -0
- package/jsx-runtime.mjs +21 -0
- package/lib/agents/agentParser.js +89 -0
- package/lib/agents/copilot-setup-steps.yml +34 -0
- package/lib/agents/generateAgents.js +348 -0
- package/lib/agents/playwright-test-coverage.prompt.md +31 -0
- package/lib/agents/playwright-test-generate.prompt.md +8 -0
- package/lib/agents/playwright-test-generator.agent.md +88 -0
- package/lib/agents/playwright-test-heal.prompt.md +6 -0
- package/lib/agents/playwright-test-healer.agent.md +55 -0
- package/lib/agents/playwright-test-plan.prompt.md +9 -0
- package/lib/agents/playwright-test-planner.agent.md +73 -0
- package/lib/common/config.js +281 -0
- package/lib/common/configLoader.js +344 -0
- package/lib/common/esmLoaderHost.js +104 -0
- package/lib/common/expectBundle.js +28 -0
- package/lib/common/expectBundleImpl.js +407 -0
- package/lib/common/fixtures.js +302 -0
- package/lib/common/globals.js +58 -0
- package/lib/common/ipc.js +60 -0
- package/lib/common/poolBuilder.js +85 -0
- package/lib/common/process.js +132 -0
- package/lib/common/suiteUtils.js +140 -0
- package/lib/common/test.js +321 -0
- package/lib/common/testLoader.js +101 -0
- package/lib/common/testType.js +298 -0
- package/lib/common/validators.js +68 -0
- package/lib/fsWatcher.js +67 -0
- package/lib/index.js +726 -0
- package/lib/internalsForTest.js +42 -0
- package/lib/isomorphic/events.js +77 -0
- package/lib/isomorphic/folders.js +30 -0
- package/lib/isomorphic/stringInternPool.js +69 -0
- package/lib/isomorphic/teleReceiver.js +520 -0
- package/lib/isomorphic/teleSuiteUpdater.js +157 -0
- package/lib/isomorphic/testServerConnection.js +225 -0
- package/lib/isomorphic/testServerInterface.js +16 -0
- package/lib/isomorphic/testTree.js +329 -0
- package/lib/isomorphic/types.d.js +16 -0
- package/lib/loader/loaderMain.js +59 -0
- package/lib/matchers/expect.js +311 -0
- package/lib/matchers/matcherHint.js +44 -0
- package/lib/matchers/matchers.js +383 -0
- package/lib/matchers/toBeTruthy.js +75 -0
- package/lib/matchers/toEqual.js +100 -0
- package/lib/matchers/toHaveURL.js +101 -0
- package/lib/matchers/toMatchAriaSnapshot.js +159 -0
- package/lib/matchers/toMatchSnapshot.js +342 -0
- package/lib/matchers/toMatchText.js +99 -0
- package/lib/mcp/browser/browserContextFactory.js +329 -0
- package/lib/mcp/browser/browserServerBackend.js +89 -0
- package/lib/mcp/browser/config.js +421 -0
- package/lib/mcp/browser/context.js +244 -0
- package/lib/mcp/browser/response.js +284 -0
- package/lib/mcp/browser/sessionLog.js +75 -0
- package/lib/mcp/browser/tab.js +351 -0
- package/lib/mcp/browser/tools/common.js +63 -0
- package/lib/mcp/browser/tools/console.js +61 -0
- package/lib/mcp/browser/tools/dialogs.js +59 -0
- package/lib/mcp/browser/tools/evaluate.js +61 -0
- package/lib/mcp/browser/tools/files.js +58 -0
- package/lib/mcp/browser/tools/form.js +63 -0
- package/lib/mcp/browser/tools/install.js +72 -0
- package/lib/mcp/browser/tools/keyboard.js +151 -0
- package/lib/mcp/browser/tools/mouse.js +159 -0
- package/lib/mcp/browser/tools/navigate.js +136 -0
- package/lib/mcp/browser/tools/network.js +78 -0
- package/lib/mcp/browser/tools/pdf.js +49 -0
- package/lib/mcp/browser/tools/runCode.js +76 -0
- package/lib/mcp/browser/tools/screenshot.js +87 -0
- package/lib/mcp/browser/tools/snapshot.js +207 -0
- package/lib/mcp/browser/tools/tabs.js +67 -0
- package/lib/mcp/browser/tools/tool.js +47 -0
- package/lib/mcp/browser/tools/tracing.js +74 -0
- package/lib/mcp/browser/tools/utils.js +94 -0
- package/lib/mcp/browser/tools/verify.js +143 -0
- package/lib/mcp/browser/tools/wait.js +63 -0
- package/lib/mcp/browser/tools.js +82 -0
- package/lib/mcp/browser/watchdog.js +44 -0
- package/lib/mcp/config.d.js +16 -0
- package/lib/mcp/extension/cdpRelay.js +351 -0
- package/lib/mcp/extension/extensionContextFactory.js +76 -0
- package/lib/mcp/extension/protocol.js +28 -0
- package/lib/mcp/index.js +61 -0
- package/lib/mcp/log.js +35 -0
- package/lib/mcp/program.js +109 -0
- package/lib/mcp/sdk/exports.js +28 -0
- package/lib/mcp/sdk/http.js +152 -0
- package/lib/mcp/sdk/inProcessTransport.js +71 -0
- package/lib/mcp/sdk/server.js +223 -0
- package/lib/mcp/sdk/tool.js +47 -0
- package/lib/mcp/terminal/SKILL.md +158 -0
- package/lib/mcp/terminal/cli.js +7 -0
- package/lib/mcp/terminal/command.js +56 -0
- package/lib/mcp/terminal/commands.js +519 -0
- package/lib/mcp/terminal/daemon.js +131 -0
- package/lib/mcp/terminal/help.json +47 -0
- package/lib/mcp/terminal/helpGenerator.js +115 -0
- package/lib/mcp/terminal/program.js +365 -0
- package/lib/mcp/terminal/socketConnection.js +80 -0
- package/lib/mcp/test/browserBackend.js +98 -0
- package/lib/mcp/test/generatorTools.js +122 -0
- package/lib/mcp/test/plannerTools.js +145 -0
- package/lib/mcp/test/seed.js +82 -0
- package/lib/mcp/test/streams.js +44 -0
- package/lib/mcp/test/testBackend.js +99 -0
- package/lib/mcp/test/testContext.js +285 -0
- package/lib/mcp/test/testTool.js +30 -0
- package/lib/mcp/test/testTools.js +108 -0
- package/lib/plugins/gitCommitInfoPlugin.js +198 -0
- package/lib/plugins/index.js +28 -0
- package/lib/plugins/webServerPlugin.js +237 -0
- package/lib/program.js +418 -0
- package/lib/reporters/base.js +638 -0
- package/lib/reporters/blob.js +138 -0
- package/lib/reporters/dot.js +99 -0
- package/lib/reporters/empty.js +32 -0
- package/lib/reporters/github.js +128 -0
- package/lib/reporters/html.js +633 -0
- package/lib/reporters/internalReporter.js +138 -0
- package/lib/reporters/json.js +254 -0
- package/lib/reporters/junit.js +232 -0
- package/lib/reporters/line.js +131 -0
- package/lib/reporters/list.js +253 -0
- package/lib/reporters/listModeReporter.js +69 -0
- package/lib/reporters/markdown.js +144 -0
- package/lib/reporters/merge.js +558 -0
- package/lib/reporters/multiplexer.js +112 -0
- package/lib/reporters/reporterV2.js +102 -0
- package/lib/reporters/teleEmitter.js +317 -0
- package/lib/reporters/versions/blobV1.js +16 -0
- package/lib/runner/dispatcher.js +530 -0
- package/lib/runner/failureTracker.js +72 -0
- package/lib/runner/lastRun.js +77 -0
- package/lib/runner/loadUtils.js +334 -0
- package/lib/runner/loaderHost.js +89 -0
- package/lib/runner/processHost.js +180 -0
- package/lib/runner/projectUtils.js +241 -0
- package/lib/runner/rebase.js +189 -0
- package/lib/runner/reporters.js +138 -0
- package/lib/runner/sigIntWatcher.js +96 -0
- package/lib/runner/storage.js +91 -0
- package/lib/runner/taskRunner.js +127 -0
- package/lib/runner/tasks.js +410 -0
- package/lib/runner/testGroups.js +125 -0
- package/lib/runner/testRunner.js +398 -0
- package/lib/runner/testServer.js +269 -0
- package/lib/runner/uiModeReporter.js +30 -0
- package/lib/runner/vcs.js +72 -0
- package/lib/runner/watchMode.js +396 -0
- package/lib/runner/workerHost.js +104 -0
- package/lib/third_party/pirates.js +62 -0
- package/lib/third_party/tsconfig-loader.js +103 -0
- package/lib/transform/babelBundle.js +46 -0
- package/lib/transform/babelBundleImpl.js +461 -0
- package/lib/transform/compilationCache.js +274 -0
- package/lib/transform/esmLoader.js +103 -0
- package/lib/transform/md.js +221 -0
- package/lib/transform/portTransport.js +67 -0
- package/lib/transform/transform.js +303 -0
- package/lib/util.js +400 -0
- package/lib/utilsBundle.js +50 -0
- package/lib/utilsBundleImpl.js +103 -0
- package/lib/worker/fixtureRunner.js +262 -0
- package/lib/worker/testInfo.js +536 -0
- package/lib/worker/testTracing.js +345 -0
- package/lib/worker/timeoutManager.js +174 -0
- package/lib/worker/util.js +31 -0
- package/lib/worker/workerMain.js +530 -0
- package/package.json +73 -0
- package/test.d.ts +18 -0
- package/test.js +24 -0
- package/test.mjs +34 -0
- package/types/test.d.ts +10287 -0
- package/types/testReporter.d.ts +822 -0
|
@@ -0,0 +1,63 @@
|
|
|
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 form_exports = {};
|
|
20
|
+
__export(form_exports, {
|
|
21
|
+
default: () => form_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(form_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_utils = require("playwright-core/lib/utils");
|
|
26
|
+
var import_tool = require("./tool");
|
|
27
|
+
const fillForm = (0, import_tool.defineTabTool)({
|
|
28
|
+
capability: "core",
|
|
29
|
+
schema: {
|
|
30
|
+
name: "browser_fill_form",
|
|
31
|
+
title: "Fill form",
|
|
32
|
+
description: "Fill multiple form fields",
|
|
33
|
+
inputSchema: import_mcpBundle.z.object({
|
|
34
|
+
fields: import_mcpBundle.z.array(import_mcpBundle.z.object({
|
|
35
|
+
name: import_mcpBundle.z.string().describe("Human-readable field name"),
|
|
36
|
+
type: import_mcpBundle.z.enum(["textbox", "checkbox", "radio", "combobox", "slider"]).describe("Type of the field"),
|
|
37
|
+
ref: import_mcpBundle.z.string().describe("Exact target field reference from the page snapshot"),
|
|
38
|
+
value: import_mcpBundle.z.string().describe("Value to fill in the field. If the field is a checkbox, the value should be `true` or `false`. If the field is a combobox, the value should be the text of the option.")
|
|
39
|
+
})).describe("Fields to fill in")
|
|
40
|
+
}),
|
|
41
|
+
type: "input"
|
|
42
|
+
},
|
|
43
|
+
handle: async (tab, params, response) => {
|
|
44
|
+
for (const field of params.fields) {
|
|
45
|
+
const { locator, resolved } = await tab.refLocator({ element: field.name, ref: field.ref });
|
|
46
|
+
const locatorSource = `await page.${resolved}`;
|
|
47
|
+
if (field.type === "textbox" || field.type === "slider") {
|
|
48
|
+
const secret = tab.context.lookupSecret(field.value);
|
|
49
|
+
await locator.fill(secret.value);
|
|
50
|
+
response.addCode(`${locatorSource}.fill(${secret.code});`);
|
|
51
|
+
} else if (field.type === "checkbox" || field.type === "radio") {
|
|
52
|
+
await locator.setChecked(field.value === "true");
|
|
53
|
+
response.addCode(`${locatorSource}.setChecked(${field.value});`);
|
|
54
|
+
} else if (field.type === "combobox") {
|
|
55
|
+
await locator.selectOption({ label: field.value });
|
|
56
|
+
response.addCode(`${locatorSource}.selectOption(${(0, import_utils.escapeWithQuotes)(field.value)});`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var form_default = [
|
|
62
|
+
fillForm
|
|
63
|
+
];
|
|
@@ -0,0 +1,72 @@
|
|
|
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 install_exports = {};
|
|
30
|
+
__export(install_exports, {
|
|
31
|
+
default: () => install_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(install_exports);
|
|
34
|
+
var import_child_process = require("child_process");
|
|
35
|
+
var import_path = __toESM(require("path"));
|
|
36
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
37
|
+
var import_tool = require("./tool");
|
|
38
|
+
var import_response = require("../response");
|
|
39
|
+
const install = (0, import_tool.defineTool)({
|
|
40
|
+
capability: "core-install",
|
|
41
|
+
schema: {
|
|
42
|
+
name: "browser_install",
|
|
43
|
+
title: "Install the browser specified in the config",
|
|
44
|
+
description: "Install the browser specified in the config. Call this if you get an error about the browser not being installed.",
|
|
45
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
46
|
+
type: "action"
|
|
47
|
+
},
|
|
48
|
+
handle: async (context, params, response) => {
|
|
49
|
+
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.browserName ?? "chrome";
|
|
50
|
+
const cliPath = import_path.default.join(require.resolve("playwright/package.json"), "../cli.js");
|
|
51
|
+
const child = (0, import_child_process.fork)(cliPath, ["install", channel], {
|
|
52
|
+
stdio: "pipe"
|
|
53
|
+
});
|
|
54
|
+
const output = [];
|
|
55
|
+
child.stdout?.on("data", (data) => output.push(data.toString()));
|
|
56
|
+
child.stderr?.on("data", (data) => output.push(data.toString()));
|
|
57
|
+
await new Promise((resolve, reject) => {
|
|
58
|
+
child.on("close", (code) => {
|
|
59
|
+
if (code === 0)
|
|
60
|
+
resolve();
|
|
61
|
+
else
|
|
62
|
+
reject(new Error(`Failed to install browser: ${output.join("")}`));
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
const tabHeaders = await Promise.all(context.tabs().map((tab) => tab.headerSnapshot()));
|
|
66
|
+
const result = (0, import_response.renderTabsMarkdown)(tabHeaders);
|
|
67
|
+
response.addTextResult(result.join("\n"));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
var install_default = [
|
|
71
|
+
install
|
|
72
|
+
];
|
|
@@ -0,0 +1,151 @@
|
|
|
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 keyboard_exports = {};
|
|
20
|
+
__export(keyboard_exports, {
|
|
21
|
+
default: () => keyboard_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(keyboard_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
var import_snapshot = require("./snapshot");
|
|
27
|
+
const press = (0, import_tool.defineTabTool)({
|
|
28
|
+
capability: "core-input",
|
|
29
|
+
schema: {
|
|
30
|
+
name: "browser_press_key",
|
|
31
|
+
title: "Press a key",
|
|
32
|
+
description: "Press a key on the keyboard",
|
|
33
|
+
inputSchema: import_mcpBundle.z.object({
|
|
34
|
+
key: import_mcpBundle.z.string().describe("Name of the key to press or a character to generate, such as `ArrowLeft` or `a`")
|
|
35
|
+
}),
|
|
36
|
+
type: "input"
|
|
37
|
+
},
|
|
38
|
+
handle: async (tab, params, response) => {
|
|
39
|
+
response.addCode(`// Press ${params.key}`);
|
|
40
|
+
response.addCode(`await page.keyboard.press('${params.key}');`);
|
|
41
|
+
if (params.key === "Enter") {
|
|
42
|
+
response.setIncludeSnapshot();
|
|
43
|
+
await tab.waitForCompletion(async () => {
|
|
44
|
+
await tab.page.keyboard.press("Enter");
|
|
45
|
+
});
|
|
46
|
+
} else {
|
|
47
|
+
await tab.page.keyboard.press(params.key);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const pressSequentially = (0, import_tool.defineTabTool)({
|
|
52
|
+
capability: "core-input",
|
|
53
|
+
skillOnly: true,
|
|
54
|
+
schema: {
|
|
55
|
+
name: "browser_press_sequentially",
|
|
56
|
+
title: "Type text key by key",
|
|
57
|
+
description: "Type text key by key on the keyboard",
|
|
58
|
+
inputSchema: import_mcpBundle.z.object({
|
|
59
|
+
text: import_mcpBundle.z.string().describe("Text to type"),
|
|
60
|
+
submit: import_mcpBundle.z.boolean().optional().describe("Whether to submit entered text (press Enter after)")
|
|
61
|
+
}),
|
|
62
|
+
type: "input"
|
|
63
|
+
},
|
|
64
|
+
handle: async (tab, params, response) => {
|
|
65
|
+
response.addCode(`// Press ${params.text}`);
|
|
66
|
+
response.addCode(`await page.keyboard.type('${params.text}');`);
|
|
67
|
+
await tab.page.keyboard.type(params.text);
|
|
68
|
+
if (params.submit) {
|
|
69
|
+
response.addCode(`await page.keyboard.press('Enter');`);
|
|
70
|
+
response.setIncludeSnapshot();
|
|
71
|
+
await tab.waitForCompletion(async () => {
|
|
72
|
+
await tab.page.keyboard.press("Enter");
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const typeSchema = import_snapshot.elementSchema.extend({
|
|
78
|
+
text: import_mcpBundle.z.string().describe("Text to type into the element"),
|
|
79
|
+
submit: import_mcpBundle.z.boolean().optional().describe("Whether to submit entered text (press Enter after)"),
|
|
80
|
+
slowly: import_mcpBundle.z.boolean().optional().describe("Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.")
|
|
81
|
+
});
|
|
82
|
+
const type = (0, import_tool.defineTabTool)({
|
|
83
|
+
capability: "core-input",
|
|
84
|
+
schema: {
|
|
85
|
+
name: "browser_type",
|
|
86
|
+
title: "Type text",
|
|
87
|
+
description: "Type text into editable element",
|
|
88
|
+
inputSchema: typeSchema,
|
|
89
|
+
type: "input"
|
|
90
|
+
},
|
|
91
|
+
handle: async (tab, params, response) => {
|
|
92
|
+
const { locator, resolved } = await tab.refLocator(params);
|
|
93
|
+
const secret = tab.context.lookupSecret(params.text);
|
|
94
|
+
await tab.waitForCompletion(async () => {
|
|
95
|
+
if (params.slowly) {
|
|
96
|
+
response.setIncludeSnapshot();
|
|
97
|
+
response.addCode(`await page.${resolved}.pressSequentially(${secret.code});`);
|
|
98
|
+
await locator.pressSequentially(secret.value);
|
|
99
|
+
} else {
|
|
100
|
+
response.addCode(`await page.${resolved}.fill(${secret.code});`);
|
|
101
|
+
await locator.fill(secret.value);
|
|
102
|
+
}
|
|
103
|
+
if (params.submit) {
|
|
104
|
+
response.setIncludeSnapshot();
|
|
105
|
+
response.addCode(`await page.${resolved}.press('Enter');`);
|
|
106
|
+
await locator.press("Enter");
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
const keydown = (0, import_tool.defineTabTool)({
|
|
112
|
+
capability: "core-input",
|
|
113
|
+
skillOnly: true,
|
|
114
|
+
schema: {
|
|
115
|
+
name: "browser_keydown",
|
|
116
|
+
title: "Press a key down",
|
|
117
|
+
description: "Press a key down on the keyboard",
|
|
118
|
+
inputSchema: import_mcpBundle.z.object({
|
|
119
|
+
key: import_mcpBundle.z.string().describe("Name of the key to press or a character to generate, such as `ArrowLeft` or `a`")
|
|
120
|
+
}),
|
|
121
|
+
type: "input"
|
|
122
|
+
},
|
|
123
|
+
handle: async (tab, params, response) => {
|
|
124
|
+
response.addCode(`await page.keyboard.down('${params.key}');`);
|
|
125
|
+
await tab.page.keyboard.down(params.key);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
const keyup = (0, import_tool.defineTabTool)({
|
|
129
|
+
capability: "core-input",
|
|
130
|
+
skillOnly: true,
|
|
131
|
+
schema: {
|
|
132
|
+
name: "browser_keyup",
|
|
133
|
+
title: "Press a key up",
|
|
134
|
+
description: "Press a key up on the keyboard",
|
|
135
|
+
inputSchema: import_mcpBundle.z.object({
|
|
136
|
+
key: import_mcpBundle.z.string().describe("Name of the key to press or a character to generate, such as `ArrowLeft` or `a`")
|
|
137
|
+
}),
|
|
138
|
+
type: "input"
|
|
139
|
+
},
|
|
140
|
+
handle: async (tab, params, response) => {
|
|
141
|
+
response.addCode(`await page.keyboard.up('${params.key}');`);
|
|
142
|
+
await tab.page.keyboard.up(params.key);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
var keyboard_default = [
|
|
146
|
+
press,
|
|
147
|
+
type,
|
|
148
|
+
pressSequentially,
|
|
149
|
+
keydown,
|
|
150
|
+
keyup
|
|
151
|
+
];
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var mouse_exports = {};
|
|
20
|
+
__export(mouse_exports, {
|
|
21
|
+
default: () => mouse_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(mouse_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
const mouseMove = (0, import_tool.defineTabTool)({
|
|
27
|
+
capability: "vision",
|
|
28
|
+
schema: {
|
|
29
|
+
name: "browser_mouse_move_xy",
|
|
30
|
+
title: "Move mouse",
|
|
31
|
+
description: "Move mouse to a given position",
|
|
32
|
+
inputSchema: import_mcpBundle.z.object({
|
|
33
|
+
x: import_mcpBundle.z.number().describe("X coordinate"),
|
|
34
|
+
y: import_mcpBundle.z.number().describe("Y coordinate")
|
|
35
|
+
}),
|
|
36
|
+
type: "input"
|
|
37
|
+
},
|
|
38
|
+
handle: async (tab, params, response) => {
|
|
39
|
+
response.addCode(`// Move mouse to (${params.x}, ${params.y})`);
|
|
40
|
+
response.addCode(`await page.mouse.move(${params.x}, ${params.y});`);
|
|
41
|
+
await tab.waitForCompletion(async () => {
|
|
42
|
+
await tab.page.mouse.move(params.x, params.y);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const mouseDown = (0, import_tool.defineTabTool)({
|
|
47
|
+
capability: "vision",
|
|
48
|
+
schema: {
|
|
49
|
+
name: "browser_mouse_down",
|
|
50
|
+
title: "Press mouse down",
|
|
51
|
+
description: "Press mouse down",
|
|
52
|
+
inputSchema: import_mcpBundle.z.object({
|
|
53
|
+
button: import_mcpBundle.z.enum(["left", "right", "middle"]).optional().describe("Button to press, defaults to left")
|
|
54
|
+
}),
|
|
55
|
+
type: "input"
|
|
56
|
+
},
|
|
57
|
+
handle: async (tab, params, response) => {
|
|
58
|
+
response.addCode(`// Press mouse down`);
|
|
59
|
+
response.addCode(`await page.mouse.down({ button: '${params.button}' });`);
|
|
60
|
+
await tab.page.mouse.down({ button: params.button });
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const mouseUp = (0, import_tool.defineTabTool)({
|
|
64
|
+
capability: "vision",
|
|
65
|
+
schema: {
|
|
66
|
+
name: "browser_mouse_up",
|
|
67
|
+
title: "Press mouse up",
|
|
68
|
+
description: "Press mouse up",
|
|
69
|
+
inputSchema: import_mcpBundle.z.object({
|
|
70
|
+
button: import_mcpBundle.z.enum(["left", "right", "middle"]).optional().describe("Button to press, defaults to left")
|
|
71
|
+
}),
|
|
72
|
+
type: "input"
|
|
73
|
+
},
|
|
74
|
+
handle: async (tab, params, response) => {
|
|
75
|
+
response.addCode(`// Press mouse up`);
|
|
76
|
+
response.addCode(`await page.mouse.up({ button: '${params.button}' });`);
|
|
77
|
+
await tab.page.mouse.up({ button: params.button });
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
const mouseWheel = (0, import_tool.defineTabTool)({
|
|
81
|
+
capability: "vision",
|
|
82
|
+
schema: {
|
|
83
|
+
name: "browser_mouse_wheel",
|
|
84
|
+
title: "Scroll mouse wheel",
|
|
85
|
+
description: "Scroll mouse wheel",
|
|
86
|
+
inputSchema: import_mcpBundle.z.object({
|
|
87
|
+
deltaX: import_mcpBundle.z.number().default(0).describe("X delta"),
|
|
88
|
+
deltaY: import_mcpBundle.z.number().default(0).describe("Y delta")
|
|
89
|
+
}),
|
|
90
|
+
type: "input"
|
|
91
|
+
},
|
|
92
|
+
handle: async (tab, params, response) => {
|
|
93
|
+
response.addCode(`// Scroll mouse wheel`);
|
|
94
|
+
response.addCode(`await page.mouse.wheel(${params.deltaX}, ${params.deltaY});`);
|
|
95
|
+
await tab.page.mouse.wheel(params.deltaX, params.deltaY);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
const mouseClick = (0, import_tool.defineTabTool)({
|
|
99
|
+
capability: "vision",
|
|
100
|
+
schema: {
|
|
101
|
+
name: "browser_mouse_click_xy",
|
|
102
|
+
title: "Click",
|
|
103
|
+
description: "Click left mouse button at a given position",
|
|
104
|
+
inputSchema: import_mcpBundle.z.object({
|
|
105
|
+
x: import_mcpBundle.z.number().describe("X coordinate"),
|
|
106
|
+
y: import_mcpBundle.z.number().describe("Y coordinate")
|
|
107
|
+
}),
|
|
108
|
+
type: "input"
|
|
109
|
+
},
|
|
110
|
+
handle: async (tab, params, response) => {
|
|
111
|
+
response.setIncludeSnapshot();
|
|
112
|
+
response.addCode(`// Click mouse at coordinates (${params.x}, ${params.y})`);
|
|
113
|
+
response.addCode(`await page.mouse.move(${params.x}, ${params.y});`);
|
|
114
|
+
response.addCode(`await page.mouse.down();`);
|
|
115
|
+
response.addCode(`await page.mouse.up();`);
|
|
116
|
+
await tab.waitForCompletion(async () => {
|
|
117
|
+
await tab.page.mouse.move(params.x, params.y);
|
|
118
|
+
await tab.page.mouse.down();
|
|
119
|
+
await tab.page.mouse.up();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const mouseDrag = (0, import_tool.defineTabTool)({
|
|
124
|
+
capability: "vision",
|
|
125
|
+
schema: {
|
|
126
|
+
name: "browser_mouse_drag_xy",
|
|
127
|
+
title: "Drag mouse",
|
|
128
|
+
description: "Drag left mouse button to a given position",
|
|
129
|
+
inputSchema: import_mcpBundle.z.object({
|
|
130
|
+
startX: import_mcpBundle.z.number().describe("Start X coordinate"),
|
|
131
|
+
startY: import_mcpBundle.z.number().describe("Start Y coordinate"),
|
|
132
|
+
endX: import_mcpBundle.z.number().describe("End X coordinate"),
|
|
133
|
+
endY: import_mcpBundle.z.number().describe("End Y coordinate")
|
|
134
|
+
}),
|
|
135
|
+
type: "input"
|
|
136
|
+
},
|
|
137
|
+
handle: async (tab, params, response) => {
|
|
138
|
+
response.setIncludeSnapshot();
|
|
139
|
+
response.addCode(`// Drag mouse from (${params.startX}, ${params.startY}) to (${params.endX}, ${params.endY})`);
|
|
140
|
+
response.addCode(`await page.mouse.move(${params.startX}, ${params.startY});`);
|
|
141
|
+
response.addCode(`await page.mouse.down();`);
|
|
142
|
+
response.addCode(`await page.mouse.move(${params.endX}, ${params.endY});`);
|
|
143
|
+
response.addCode(`await page.mouse.up();`);
|
|
144
|
+
await tab.waitForCompletion(async () => {
|
|
145
|
+
await tab.page.mouse.move(params.startX, params.startY);
|
|
146
|
+
await tab.page.mouse.down();
|
|
147
|
+
await tab.page.mouse.move(params.endX, params.endY);
|
|
148
|
+
await tab.page.mouse.up();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
var mouse_default = [
|
|
153
|
+
mouseMove,
|
|
154
|
+
mouseClick,
|
|
155
|
+
mouseDrag,
|
|
156
|
+
mouseDown,
|
|
157
|
+
mouseUp,
|
|
158
|
+
mouseWheel
|
|
159
|
+
];
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var navigate_exports = {};
|
|
20
|
+
__export(navigate_exports, {
|
|
21
|
+
default: () => navigate_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(navigate_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
const navigate = (0, import_tool.defineTool)({
|
|
27
|
+
capability: "core-navigation",
|
|
28
|
+
schema: {
|
|
29
|
+
name: "browser_navigate",
|
|
30
|
+
title: "Navigate to a URL",
|
|
31
|
+
description: "Navigate to a URL",
|
|
32
|
+
inputSchema: import_mcpBundle.z.object({
|
|
33
|
+
url: import_mcpBundle.z.string().describe("The URL to navigate to")
|
|
34
|
+
}),
|
|
35
|
+
type: "action"
|
|
36
|
+
},
|
|
37
|
+
handle: async (context, params, response) => {
|
|
38
|
+
const tab = await context.ensureTab();
|
|
39
|
+
let url = params.url;
|
|
40
|
+
try {
|
|
41
|
+
new URL(url);
|
|
42
|
+
} catch (e) {
|
|
43
|
+
if (url.startsWith("localhost"))
|
|
44
|
+
url = "http://" + url;
|
|
45
|
+
else
|
|
46
|
+
url = "https://" + url;
|
|
47
|
+
}
|
|
48
|
+
await tab.navigate(url);
|
|
49
|
+
response.setIncludeSnapshot();
|
|
50
|
+
response.addCode(`await page.goto('${params.url}');`);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const open = (0, import_tool.defineTool)({
|
|
54
|
+
capability: "core-navigation",
|
|
55
|
+
skillOnly: true,
|
|
56
|
+
schema: {
|
|
57
|
+
name: "browser_open",
|
|
58
|
+
title: "Open URL",
|
|
59
|
+
description: "Open a URL in the browser",
|
|
60
|
+
inputSchema: import_mcpBundle.z.object({
|
|
61
|
+
url: import_mcpBundle.z.string().describe("The URL to open"),
|
|
62
|
+
headed: import_mcpBundle.z.boolean().optional().describe("Run browser in headed mode")
|
|
63
|
+
}),
|
|
64
|
+
type: "action"
|
|
65
|
+
},
|
|
66
|
+
handle: async (context, params, response) => {
|
|
67
|
+
const forceHeadless = params.headed ? "headed" : "headless";
|
|
68
|
+
const tab = await context.ensureTab({ forceHeadless });
|
|
69
|
+
let url = params.url;
|
|
70
|
+
try {
|
|
71
|
+
new URL(url);
|
|
72
|
+
} catch (e) {
|
|
73
|
+
if (url.startsWith("localhost"))
|
|
74
|
+
url = "http://" + url;
|
|
75
|
+
else
|
|
76
|
+
url = "https://" + url;
|
|
77
|
+
}
|
|
78
|
+
await tab.navigate(url);
|
|
79
|
+
response.setIncludeSnapshot();
|
|
80
|
+
response.addCode(`await page.goto('${params.url}');`);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const goBack = (0, import_tool.defineTabTool)({
|
|
84
|
+
capability: "core-navigation",
|
|
85
|
+
schema: {
|
|
86
|
+
name: "browser_navigate_back",
|
|
87
|
+
title: "Go back",
|
|
88
|
+
description: "Go back to the previous page in the history",
|
|
89
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
90
|
+
type: "action"
|
|
91
|
+
},
|
|
92
|
+
handle: async (tab, params, response) => {
|
|
93
|
+
await tab.page.goBack();
|
|
94
|
+
response.setIncludeSnapshot();
|
|
95
|
+
response.addCode(`await page.goBack();`);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
const goForward = (0, import_tool.defineTabTool)({
|
|
99
|
+
capability: "core-navigation",
|
|
100
|
+
skillOnly: true,
|
|
101
|
+
schema: {
|
|
102
|
+
name: "browser_navigate_forward",
|
|
103
|
+
title: "Go forward",
|
|
104
|
+
description: "Go forward to the next page in the history",
|
|
105
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
106
|
+
type: "action"
|
|
107
|
+
},
|
|
108
|
+
handle: async (tab, params, response) => {
|
|
109
|
+
await tab.page.goForward();
|
|
110
|
+
response.setIncludeSnapshot();
|
|
111
|
+
response.addCode(`await page.goForward();`);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
const reload = (0, import_tool.defineTabTool)({
|
|
115
|
+
capability: "core-navigation",
|
|
116
|
+
skillOnly: true,
|
|
117
|
+
schema: {
|
|
118
|
+
name: "browser_reload",
|
|
119
|
+
title: "Reload the page",
|
|
120
|
+
description: "Reload the current page",
|
|
121
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
122
|
+
type: "action"
|
|
123
|
+
},
|
|
124
|
+
handle: async (tab, params, response) => {
|
|
125
|
+
await tab.page.reload();
|
|
126
|
+
response.setIncludeSnapshot();
|
|
127
|
+
response.addCode(`await page.reload();`);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
var navigate_default = [
|
|
131
|
+
navigate,
|
|
132
|
+
open,
|
|
133
|
+
goBack,
|
|
134
|
+
goForward,
|
|
135
|
+
reload
|
|
136
|
+
];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var network_exports = {};
|
|
20
|
+
__export(network_exports, {
|
|
21
|
+
default: () => network_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(network_exports);
|
|
24
|
+
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
|
25
|
+
var import_tool = require("./tool");
|
|
26
|
+
const requests = (0, import_tool.defineTabTool)({
|
|
27
|
+
capability: "core",
|
|
28
|
+
schema: {
|
|
29
|
+
name: "browser_network_requests",
|
|
30
|
+
title: "List network requests",
|
|
31
|
+
description: "Returns all network requests since loading the page",
|
|
32
|
+
inputSchema: import_mcpBundle.z.object({
|
|
33
|
+
includeStatic: import_mcpBundle.z.boolean().default(false).describe("Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false."),
|
|
34
|
+
filename: import_mcpBundle.z.string().optional().describe("Filename to save the network requests to. If not provided, requests are returned as text.")
|
|
35
|
+
}),
|
|
36
|
+
type: "readOnly"
|
|
37
|
+
},
|
|
38
|
+
handle: async (tab, params, response) => {
|
|
39
|
+
const requests2 = await tab.requests();
|
|
40
|
+
const text = [];
|
|
41
|
+
for (const request of requests2) {
|
|
42
|
+
const rendered = await renderRequest(request, params.includeStatic);
|
|
43
|
+
if (rendered)
|
|
44
|
+
text.push(rendered);
|
|
45
|
+
}
|
|
46
|
+
await response.addResult("Network", text.join("\n"), { prefix: "network", ext: "log", suggestedFilename: params.filename });
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const networkClear = (0, import_tool.defineTabTool)({
|
|
50
|
+
capability: "core",
|
|
51
|
+
skillOnly: true,
|
|
52
|
+
schema: {
|
|
53
|
+
name: "browser_network_clear",
|
|
54
|
+
title: "Clear network requests",
|
|
55
|
+
description: "Clear all network requests",
|
|
56
|
+
inputSchema: import_mcpBundle.z.object({}),
|
|
57
|
+
type: "readOnly"
|
|
58
|
+
},
|
|
59
|
+
handle: async (tab, params, response) => {
|
|
60
|
+
await tab.clearRequests();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
async function renderRequest(request, includeStatic) {
|
|
64
|
+
const response = request._hasResponse ? await request.response() : void 0;
|
|
65
|
+
const isStaticRequest = ["document", "stylesheet", "image", "media", "font", "script", "manifest"].includes(request.resourceType());
|
|
66
|
+
const isSuccessfulRequest = !response || response.status() < 400;
|
|
67
|
+
if (isStaticRequest && isSuccessfulRequest && !includeStatic)
|
|
68
|
+
return void 0;
|
|
69
|
+
const result = [];
|
|
70
|
+
result.push(`[${request.method().toUpperCase()}] ${request.url()}`);
|
|
71
|
+
if (response)
|
|
72
|
+
result.push(`=> [${response.status()}] ${response.statusText()}`);
|
|
73
|
+
return result.join(" ");
|
|
74
|
+
}
|
|
75
|
+
var network_default = [
|
|
76
|
+
requests,
|
|
77
|
+
networkClear
|
|
78
|
+
];
|