@unotest/web 0.43.1 → 0.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -3
- package/dist/config/schema.d.ts +16 -0
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +2 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +8 -2
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +23 -6
- package/dist/inspection/page-inject.js +57 -26
- package/dist/{interfaces-7nMNCr2h.d.ts → interfaces-ClW2IRgY.d.ts} +23 -5
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +22 -5
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.43.2] - 2026-09-30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1547ae7: `abort_runtime` now takes a run that is still waiting in the queue out of it. It used to answer ok for such a run while its place in line stayed, and the run started later all the same. It now removes the run from the queue and answers `{ok: true, state: "withdrawn"}`; nothing is run. A run that was taken out of the queue, here or in the viewer's Active panel, no longer ends its `unotest-web e2e` process with a stack trace: it prints that it was taken out and that nothing was run, and exits with 130, as Ctrl-C does.
|
|
8
|
+
|
|
9
|
+
What changes for you: `abort_runtime` on a runtime id with no run behind
|
|
10
|
+
it at all now answers `no-runner`, marked as an error, as `take_wheel` and
|
|
11
|
+
`release_wheel` already do, instead of `ok`. A finished run still answers
|
|
12
|
+
`ok`. A queued run taken out of the queue exits with 130 instead of 1.
|
|
13
|
+
|
|
14
|
+
- c04cf8b: When a person answered a request is now shown outside the cabinet too. The
|
|
15
|
+
cloud API adds `decidedAt` to an approved, declined or failed request. The
|
|
16
|
+
`cloud_approval_wait` MCP tool returns it, and the CLI prints it — "approved
|
|
17
|
+
in the cabinet at 2026-09-27 09:14 UTC" — in `approvals <id>` and while
|
|
18
|
+
`box create`, `box destroy` and `box picker on` wait; with `--json` it is an
|
|
19
|
+
`approval` field in the object the command already prints. A request that
|
|
20
|
+
expired shows the deadline it was last given, marked as such, since the
|
|
21
|
+
cloud's answer for an expired request carries no time. A service that does
|
|
22
|
+
not send the field yet is read as before, without a time.
|
|
23
|
+
- 2e70ce0: The times the CLI and the MCP tools show for an approval request (when a person answered it, when it expires) are now only taken from the service when they are a real date and time. Anything else is treated as if the service had sent no time: nothing is printed for it, and an expired request names no deadline it cannot vouch for.
|
|
24
|
+
- 665da8f: `box runs` and the other box read commands now say when the token is of the wrong kind (a project push token instead of a read token) and how to get the right one, instead of reporting that the box did not list its environments.
|
|
25
|
+
- 3639067: Text the cloud or a box sends can no longer send instructions to your terminal. The `login`, `logout`, `whoami`, `approvals`, `box`, `picker`, `bundle` and `env` commands used to print box names, request ids, error messages and other text from the service as they came, so control characters in them, from a service with a bug or a `UNOTEST_CLOUD_URL` pointed elsewhere, could clear your screen or retitle the window. They are now shown escaped (`\x1b`), and line breaks stay line breaks.
|
|
26
|
+
- 0b29243: `explore_run_flow` now says where a failed replay broke. The reply used to carry the error message alone, so a flow that failed inside a helper gave no file and no line, and the agent had to work out the cause from a screenshot. A failed replay now answers JSON: `error` (the same text as before), `flow`, `at` with the file, line and column of the statement that failed (the helper's file when it failed inside one, project-relative), its step label and the call chain from the flow down, and `artifacts` with a capture of the page as the flow left it.
|
|
27
|
+
|
|
28
|
+
What changes for you: a failed `explore_run_flow` answers JSON instead of
|
|
29
|
+
plain text, with the old text under `error`. Helpers now load the way
|
|
30
|
+
`run_test` loads them, so a function defined in two helper files is refused,
|
|
31
|
+
naming both files, in `explore_run_flow` as it already was in `run_test`.
|
|
32
|
+
|
|
33
|
+
- 7a0671e: An agent without a grounder is now told how to get one. When intent locators have no grounder (ollama not running, grounding off), `explore_start`'s `grounder` and a failed intent step carry `{state: "no-grounder", next, orElse?, why}`: `next` is the Picker command (`box picker on` for a project with a box, `login && picker on` without one), `orElse` is `ollama serve` in local mode, and `why` says the MCP server needs a reconnect after the Picker is turned on. A remote grounder that is configured but down gets the reason only, since turning a Picker on would not fix it. With `UNOTEST_SNAPSHOT=0`, `explore_start` now says the page snapshot tools are not served, how to bring them back, and how to locate elements in the meantime. The server instructions describe the new state.
|
|
34
|
+
|
|
35
|
+
What changes for you: an intent step that fails for want of a grounder now
|
|
36
|
+
answers `{status: "failed", error, grounder}` like other steps that fail
|
|
37
|
+
before they act, instead of an error reply carrying the text alone; the
|
|
38
|
+
`error` text is unchanged.
|
|
39
|
+
|
|
40
|
+
- ebcfbe0: A `run_test` that waits in the queue now says who holds the machine. The `queued` reply used to say only that the machine was busy, so an agent could not tell whether to wait or to stop a run of its own it no longer needed. It now carries `heldBy`: each run holding the machine with its run id, kind, scenario or collection name, how long it has been running (left out while that is not known yet) and, for a scenario run, the `abort_runtime` call that stops it. A blocking `run_test` (the default) used to wait for its turn for up to three minutes, longer than an MCP client waits for any answer, so the agent was told only that the request timed out. It now waits up to 30 seconds for a place and then answers `queued` with `heldBy`, the same as `wait: false`; the run stays in the queue and starts on its own. `abort_runtime` takes a queued run back out.
|
|
41
|
+
|
|
42
|
+
What changes for you: a blocking `run_test` behind a busy machine may now
|
|
43
|
+
answer `status: "queued"` after about 30 seconds instead of waiting for the
|
|
44
|
+
run to start; call `inspect_runtime` on its `runtimeId` to follow it.
|
|
45
|
+
|
|
46
|
+
- 6e4d598: A tool that throws something other than an `Error`, such as a plain string,
|
|
47
|
+
now has registered secrets masked in the message the agent reads, as an
|
|
48
|
+
`Error` already did.
|
|
49
|
+
- 56c899c: `resume` and `step` now answer with the stop that comes after the command, not the pause the run was already in.
|
|
50
|
+
|
|
51
|
+
A paused run keeps refreshing its runtime file, and the tools took a fresh timestamp on a paused state for the next pause. An agent could be told the run had moved on while it still sat at the old breakpoint, and take the wheel there. The runner now counts its pauses in `runtime.json` (`pauseSeq`, one more on every pause, the same line again included), and `resume` / `step` wait for that count to grow or for the run to end. A run from an older runner, without the count, is waited on as before.
|
|
52
|
+
|
|
53
|
+
This ships as a patch: it fixes how the existing `resume` and `step` wait, and adds no new tool, flag or input. `pauseSeq` is an optional field that only ever appears in addition: an older reader ignores it, and a newer reader facing a file without it keeps the previous timestamp check.
|
|
54
|
+
|
|
55
|
+
- 70c37be: Screenshots and saved page HTML leave out what a page keeps secret.
|
|
56
|
+
|
|
57
|
+
- Password and one-time-code fields are painted over on every screenshot: the agent's screenshots, per-step captures, and the screenshot taken when a run fails.
|
|
58
|
+
- The `page.html` saved when a run fails no longer contains the content of `<script>` elements or the values of hidden form fields; each is replaced by a label with its length. The same applies to the element HTML written in debug mode.
|
|
59
|
+
- Text in elements that are not rendered, and in `noembed` and `noframes`, no longer reaches element names.
|
|
60
|
+
|
|
61
|
+
What changes for you: if you read `page.html` for script data or hidden field values, set `failureBundle.pageHtml: "full"` in your config to keep them. Password fields stay hidden either way.
|
|
62
|
+
|
|
63
|
+
- 0e15c53: An element's text, wherever the page is read for it — the locator a ref becomes in a recorded scenario, `check_locator`'s matches and the failure's semantic snapshot — no longer includes the content of `<noscript>`, `<script>`, `<style>` or `<template>`: with JavaScript on, a page could repeat a secret inside `<noscript>` and it went into the customer's scenario (or into the refusal the agent read) in a locator that, since Playwright's own text matching skips `<noscript>`, did not even find the element.
|
|
64
|
+
|
|
65
|
+
The same goes for a failed `assertText` (and `assert_text`): it still compares against the element's full text, as before, but the "got" it quotes — in the MCP reply, the run's output, `runtime.json`, `steps.jsonl` and `failure.json` — leaves those blocks out, and when they alone made the comparison fail it says so. **What changes for you:** a failure message may now read `got "API key"` where it used to show the text of a `<noscript>` as well, followed by a note that the comparison includes hidden text; very long texts are quoted up to 10,000 characters, with a note when cut.
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [665da8f]
|
|
68
|
+
- Updated dependencies [56c899c]
|
|
69
|
+
- Updated dependencies [70c37be]
|
|
70
|
+
- Updated dependencies [0e15c53]
|
|
71
|
+
- @unotest/core@0.43.2
|
|
72
|
+
- @unotest/protocol@0.43.2
|
|
73
|
+
- @unotest/grounder-client@0.43.2
|
|
74
|
+
- @unotest/dsl@0.43.2
|
|
75
|
+
- @unotest/viewer@0.43.2
|
|
76
|
+
|
|
3
77
|
## [0.43.1] - 2026-09-29
|
|
4
78
|
|
|
5
79
|
### Patch Changes
|
|
@@ -1292,7 +1366,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
1292
1366
|
|
|
1293
1367
|
That screen named one command:
|
|
1294
1368
|
|
|
1295
|
-
|
|
1369
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
1296
1370
|
|
|
1297
1371
|
In a project that has just been created, the command refuses with `no box
|
|
1298
1372
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -1301,8 +1375,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
1301
1375
|
|
|
1302
1376
|
The screen now names both steps, in the order they have to happen:
|
|
1303
1377
|
|
|
1304
|
-
|
|
1305
|
-
|
|
1378
|
+
npx @unotest/web box access larch
|
|
1379
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
1306
1380
|
|
|
1307
1381
|
The box's own name is filled in when its licence carries one. `box access`
|
|
1308
1382
|
with no name refuses, and its refusal offers to create a box — to somebody who
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -69,6 +69,11 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
|
69
69
|
days: number;
|
|
70
70
|
}>;
|
|
71
71
|
storageDir: z.ZodString;
|
|
72
|
+
/** What page.html keeps. `redacted`: a script's content and a hidden
|
|
73
|
+
* field's value become a label with their length. `full`: both as the
|
|
74
|
+
* page had them — an app's bootstrap data and request-forgery tokens
|
|
75
|
+
* included. A secret field's value is hidden either way. */
|
|
76
|
+
pageHtml: z.ZodEnum<["redacted", "full"]>;
|
|
72
77
|
}, "strict", z.ZodTypeAny, {
|
|
73
78
|
tier1: true;
|
|
74
79
|
tier2: boolean;
|
|
@@ -81,6 +86,7 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
|
81
86
|
days: number;
|
|
82
87
|
};
|
|
83
88
|
storageDir: string;
|
|
89
|
+
pageHtml: "redacted" | "full";
|
|
84
90
|
}, {
|
|
85
91
|
tier2: boolean;
|
|
86
92
|
tier3: {
|
|
@@ -92,6 +98,7 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
|
92
98
|
days: number;
|
|
93
99
|
};
|
|
94
100
|
storageDir: string;
|
|
101
|
+
pageHtml: "redacted" | "full";
|
|
95
102
|
tier1?: true | undefined;
|
|
96
103
|
}>;
|
|
97
104
|
type FailureBundleConfig = z.infer<typeof FailureBundleConfigSchema>;
|
|
@@ -338,6 +345,11 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
338
345
|
days: number;
|
|
339
346
|
}>;
|
|
340
347
|
storageDir: z.ZodString;
|
|
348
|
+
/** What page.html keeps. `redacted`: a script's content and a hidden
|
|
349
|
+
* field's value become a label with their length. `full`: both as the
|
|
350
|
+
* page had them — an app's bootstrap data and request-forgery tokens
|
|
351
|
+
* included. A secret field's value is hidden either way. */
|
|
352
|
+
pageHtml: z.ZodEnum<["redacted", "full"]>;
|
|
341
353
|
}, "strict", z.ZodTypeAny, {
|
|
342
354
|
tier1: true;
|
|
343
355
|
tier2: boolean;
|
|
@@ -350,6 +362,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
350
362
|
days: number;
|
|
351
363
|
};
|
|
352
364
|
storageDir: string;
|
|
365
|
+
pageHtml: "redacted" | "full";
|
|
353
366
|
}, {
|
|
354
367
|
tier2: boolean;
|
|
355
368
|
tier3: {
|
|
@@ -361,6 +374,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
361
374
|
days: number;
|
|
362
375
|
};
|
|
363
376
|
storageDir: string;
|
|
377
|
+
pageHtml: "redacted" | "full";
|
|
364
378
|
tier1?: true | undefined;
|
|
365
379
|
}>;
|
|
366
380
|
dialogPolicy: z.ZodEnum<["accept", "dismiss", "manual"]>;
|
|
@@ -519,6 +533,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
519
533
|
days: number;
|
|
520
534
|
};
|
|
521
535
|
storageDir: string;
|
|
536
|
+
pageHtml: "redacted" | "full";
|
|
522
537
|
};
|
|
523
538
|
dialogPolicy: "accept" | "dismiss" | "manual";
|
|
524
539
|
testDir: string;
|
|
@@ -587,6 +602,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
587
602
|
days: number;
|
|
588
603
|
};
|
|
589
604
|
storageDir: string;
|
|
605
|
+
pageHtml: "redacted" | "full";
|
|
590
606
|
tier1?: true | undefined;
|
|
591
607
|
};
|
|
592
608
|
dialogPolicy: "accept" | "dismiss" | "manual";
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x52f461=_0x1f4d;(function(_0x33c4f5,_0x38b2ce){var _0x4b2cf7={_0x23896e:0xf9,_0x3aae34:0xb2,_0x42185a:0xfd,_0x20c964:0xb0,_0x4bbeda:0xf2},_0x548de1=_0x1f4d,_0x4eeb90=_0x33c4f5();while(!![]){try{var _0x5c51d5=parseInt(_0x548de1(_0x4b2cf7._0x23896e))/0x1+-parseInt(_0x548de1(_0x4b2cf7._0x3aae34))/0x2*(parseInt(_0x548de1(0xfb))/0x3)+parseInt(_0x548de1(_0x4b2cf7._0x42185a))/0x4+parseInt(_0x548de1(_0x4b2cf7._0x20c964))/0x5*(-parseInt(_0x548de1(0xc1))/0x6)+-parseInt(_0x548de1(0xbe))/0x7*(parseInt(_0x548de1(0xe8))/0x8)+-parseInt(_0x548de1(0xcd))/0x9*(parseInt(_0x548de1(0xb5))/0xa)+parseInt(_0x548de1(_0x4b2cf7._0x4bbeda))/0xb*(parseInt(_0x548de1(0xab))/0xc);if(_0x5c51d5===_0x38b2ce)break;else _0x4eeb90['push'](_0x4eeb90['shift']());}catch(_0x225144){_0x4eeb90['push'](_0x4eeb90['shift']());}}}(_0x1668,0x1f310));function _0x1668(){var _0x48b6e1=['BgLUDdPSzwDHy3KTBgf5B3v0','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','C3rYAw5N','DMfSAwrHDg9YoMzVCI1ZAgfWzq','BgLUDdP4Cgf0Aa','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','zMLYzwzVEa','DMfSAwrHDg9YoMLMlxnOyxbL','nte3uLbtqxPn','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','yxjYyxK','ywnJzxb0','y2HYB21LlwjLDge','BwfW','y29Kzq','nJy3mtbVDK9ID1O','y2XVC2vZDeTLEq','mti2EuLMr0jW','BgLUDdPZy2vUyxjPBY1PBI1YB290','ote0mti0tMHOqLPv','Dg9mB3DLCKnHC2u','Cg9ZAxrPDMu','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','A2v5CW','ndKXodHOqwrkv3K','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','C3rYAwn0','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoM1LDgeTC2HHCgu','mte1nvLAz1vusa','lNvUB3rLC3qVzMfPBhvYzxm','odeYv1zWuvzT','BwfUDwfS','zgvMyxvSDa','ntm1mhbisxPwtW','BwLU','C3rKAw8','Dw5RBM93BKTLEu1LC3nHz2u','BxnLzgDL','iIdIGjqGzgLKihLVDsbTzwfUici','Dw5PB24','zgLZBwLZCW','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','mte5mJmXAgfRDMLR','zgvMAw5LuhjVCgvYDhK','BgLUDdPTDxn0ywnOzs1PBI1KC2W','mJG2oefQA21tuW','DMfSAwrHDg9YoMfYzY1RAw5K','D2fYBG','DhjHBNnMB3jT','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','BMv0D29YAW','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','BNvTyMvY','B2jQzwn0','B2zM','mtG5uNDlzfP0','BMfTzq','DMfSAwrHDg9YoNn0zxaTC2HHCgu','A2v5','y2HYB21L','Aw50','DMfSAwrHDg9YoMXPC3qTyxjN','B3b0Aw9UywW','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DxjS','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','zgvMyxvSDevYCM9Y','zxjYB3jnyxa','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yM9VBgvHBG','Dw5RBM93BIbRzxKGiG','BgLUDdPLy2HVlwfZC2vYDa','BgL0zxjHBa','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','zw51Bq','BgLUDdPKzwvWlwnZCW','y2HYB21PDw0','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BgLUDdPWyxvZzs1LEhbSAwnPDa','zxjYB3i','mta0rfbKEKPh','Dw5YzwnVz25PEMvKx2TLExm'];_0x1668=function(){return _0x48b6e1;};return _0x1668();}var __defProp=Object[_0x52f461(0xbf)],__name=(_0x580433,_0x2d5901)=>__defProp(_0x580433,_0x52f461(0xce),{'value':_0x2d5901,'configurable':!![]});import{z as _0xcb983}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x50551d,_0x5bba8f){var _0x50f220={_0x2ddf0f:0xa7},_0x44567c=_0x52f461;let _0xdb55d7;for(const _0x12b80c of _0x5bba8f){const _0x5f09bd=levenshteinDistance(_0x50551d['toLowerCase'](),_0x12b80c[_0x44567c(_0x50f220._0x2ddf0f)]());if(_0x5f09bd>MAX_EDITS)continue;if(_0xdb55d7===void 0x0||_0x5f09bd<_0xdb55d7['distance'])_0xdb55d7={'key':_0x12b80c,'distance':_0x5f09bd};}return _0xdb55d7?.[_0x44567c(0xd0)];}function _0x1f4d(_0x50dfab,_0x38dcb4){_0x50dfab=_0x50dfab-0xa7;var _0x166846=_0x1668();var _0x1f4d16=_0x166846[_0x50dfab];if(_0x1f4d['QDEXKr']===undefined){var _0x25535b=function(_0x175497){var _0x59a6b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xcb983='',_0x5de189='';for(var _0x580433=0x0,_0x2d5901,_0x50551d,_0x5bba8f=0x0;_0x50551d=_0x175497['charAt'](_0x5bba8f++);~_0x50551d&&(_0x2d5901=_0x580433%0x4?_0x2d5901*0x40+_0x50551d:_0x50551d,_0x580433++%0x4)?_0xcb983+=String['fromCharCode'](0xff&_0x2d5901>>(-0x2*_0x580433&0x6)):0x0){_0x50551d=_0x59a6b7['indexOf'](_0x50551d);}for(var _0xdb55d7=0x0,_0x12b80c=_0xcb983['length'];_0xdb55d7<_0x12b80c;_0xdb55d7++){_0x5de189+='%'+('00'+_0xcb983['charCodeAt'](_0xdb55d7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5de189);};_0x1f4d['NEMnxa']=_0x25535b,_0x1f4d['UpbtOK']={},_0x1f4d['QDEXKr']=!![];}var _0xceb25=_0x166846[0x0],_0x2cc72a=_0x50dfab+_0xceb25,_0x5b836d=_0x1f4d['UpbtOK'][_0x2cc72a];return!_0x5b836d?(_0x1f4d16=_0x1f4d['NEMnxa'](_0x1f4d16),_0x1f4d['UpbtOK'][_0x2cc72a]=_0x1f4d16):_0x1f4d16=_0x5b836d,_0x1f4d16;}__name(closestKey,_0x52f461(0xfa));function unknownKeyMessage(_0x4912b5,_0x3d4b58){var _0xa883dc={_0x5b5cf8:0xf7},_0x33dc56={_0xb09549:0xd6,_0x549a1b:0xba},_0x193138=_0x52f461;return _0x4912b5[_0x193138(_0xa883dc._0x5b5cf8)](_0x43c10a=>{var _0x1a028a=_0x193138;const _0x1f1ec7=closestKey(_0x43c10a,_0x3d4b58);return _0x1f1ec7===void 0x0?_0x1a028a(0xde)+_0x43c10a+_0x1a028a(_0x33dc56._0xb09549):'unknown\x20key\x20\x22'+_0x43c10a+_0x1a028a(_0x33dc56._0x549a1b)+_0x1f1ec7+'\x22?';})['join'](';\x20');}__name(unknownKeyMessage,_0x52f461(0xb8));function strictObject(_0x4b1394){var _0x35a1a0=_0x52f461;const _0x464f7f=Object[_0x35a1a0(0xaa)](_0x4b1394);return z['object'](_0x4b1394,{'errorMap':__name((_0xcb6764,_0x434ac0)=>_0xcb6764[_0x35a1a0(0xf8)]===z['ZodIssueCode'][_0x35a1a0(0xe9)]?{'message':unknownKeyMessage(_0xcb6764[_0x35a1a0(0xaa)],_0x464f7f)}:{'message':_0x434ac0[_0x35a1a0(0xda)]},_0x35a1a0(0xdb))})[_0x35a1a0(0xad)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x5de189}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x5de189[_0x52f461(0xcb)]({'userDataDir':_0x5de189[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)['optional'](),'args':_0x5de189[_0x52f461(0xf4)](_0x5de189[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1))[_0x52f461(0xd4)]()})['strict'](),BrowserSchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xe4),_0x52f461(0xf0),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x52f461(0xd1),_0x52f461(0xb9),_0x52f461(0xf6),_0x52f461(0xe4)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0xcb983[_0x52f461(0xbb)]([_0xcb983['enum'](SYSTEM_BROWSER_CHANNELS),_0xcb983[_0x52f461(0xe0)](BUNDLED_BROWSER_CHANNEL)[_0x52f461(0xc4)](()=>null),_0xcb983['null']()])['optional'](),ViewportSchema=strictObject({'width':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'height':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()}),RetryReasonSchema=_0xcb983['enum'](['transient',_0x52f461(0xc6),'crash']),RetryConfigSchema=strictObject({'count':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xb6)](0x0)['max'](0xa),'on':_0xcb983[_0x52f461(0xf4)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0xcb983['literal'](!![])[_0x52f461(0xb4)](!![]),'tier2':_0xcb983['boolean'](),'tier3':strictObject({'network':_0xcb983[_0x52f461(0xdd)](),'video':_0xcb983[_0x52f461(0xdd)]()}),'retention':strictObject({'runs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'days':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()}),'storageDir':_0xcb983[_0x52f461(0xec)]()['min'](0x1)}),DialogPolicySchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xf5),_0x52f461(0xbc),_0x52f461(0xb3)]),LinterRuleIdSchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xe3),_0x52f461(0xee),_0x52f461(0xef),_0x52f461(0xe6),_0x52f461(0xeb),_0x52f461(0xe5),_0x52f461(0xfc),_0x52f461(0xc0),_0x52f461(0xae),'lint:regex-invalid',_0x52f461(0xdf),'lint:api-call-file-body',_0x52f461(0xa9),_0x52f461(0xd5),_0x52f461(0xea),_0x52f461(0xc5),'lint:env-host-from-base',_0x52f461(0xc9),_0x52f461(0xdc),'validator:arity',_0x52f461(0xc2),_0x52f461(0xf3),_0x52f461(0xcf),_0x52f461(0xaf),_0x52f461(0xac),_0x52f461(0xed),_0x52f461(0xf1),'validator:var-shape',_0x52f461(0xbd),_0x52f461(0xc8),_0x52f461(0xd9),_0x52f461(0xd7),_0x52f461(0xd3),_0x52f461(0xe1)]),LinterSeveritySchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xcc),_0x52f461(0xc3),'error']),LinterConfigSchema=strictObject({'enabled':_0xcb983[_0x52f461(0xdd)](),'rules':_0xcb983['record'](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0xcb983['boolean']()[_0x52f461(0xb4)](!![]),'concurrency':_0xcb983[_0x52f461(0xca)]()['int']()[_0x52f461(0xa8)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0xcb983[_0x52f461(0xec)]()['min'](0x1),'cron':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'env':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)[_0x52f461(0xd4)](),'prepare':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)[_0x52f461(0xd4)]()}),McpConfigSchema=strictObject({'transport':_0xcb983[_0x52f461(0xe0)](_0x52f461(0xb7))}),SandboxConfigSchema=strictObject({'shellCwd':_0xcb983['string']()[_0x52f461(0xd4)](),'shellTimeoutMs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()['positive']()[_0x52f461(0xd4)](),'exportSecrets':_0xcb983[_0x52f461(0xf4)](_0xcb983[_0x52f461(0xec)]())[_0x52f461(0xd4)](),'database':_0xcb983[_0x52f461(0xec)]()['optional'](),'apiBaseUrl':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)]()[_0x52f461(0xd4)](),'uploadDir':_0xcb983['string']()[_0x52f461(0xd4)]()}),WebServerConfigSchema=strictObject({'command':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'url':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)](),'reuseExistingServer':_0xcb983[_0x52f461(0xdd)]()[_0x52f461(0xb4)](!![]),'timeoutMs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()[_0x52f461(0xb4)](0xea60)}),EnvConfigSchema=strictObject({'shared':_0xcb983[_0x52f461(0xf4)](_0xcb983[_0x52f461(0xec)]())[_0x52f461(0xb4)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)]()[_0x52f461(0xd4)](),'webServer':WebServerConfigSchema['optional'](),'browsers':_0xcb983[_0x52f461(0xf4)](BrowserSchema)[_0x52f461(0xb6)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'launch':LaunchConfigSchema[_0x52f461(0xd4)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0xcb983['string']()[_0x52f461(0xd4)](),'testDir':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'helpersDir':_0xcb983[_0x52f461(0xec)]()['min'](0x1),'defaultTimeoutMs':_0xcb983['number']()['int']()[_0x52f461(0xa8)](),'defaultNavigationTimeoutMs':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0xcb983[_0x52f461(0xf4)](ScheduleSchema)[_0x52f461(0xb4)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x52f461(0xe4)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x52f461(0xb1)},'dialogPolicy':_0x52f461(0xf5),'testDir':'unotest/e2e','helpersDir':_0x52f461(0xc7),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':_0x52f461(0xc3),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x52f461(0xc3),'lint:scenario-in-root':_0x52f461(0xe7),'lint:mustache-in-dsl':_0x52f461(0xe7),'lint:goto-concat':_0x52f461(0xc3),'lint:regex-invalid':_0x52f461(0xe7),'lint:echo-assert':_0x52f461(0xc3),'lint:lint-ok-missing-reason':_0x52f461(0xc3),'lint:flow-returns-value':_0x52f461(0xc3),'lint:legacy-layout':_0x52f461(0xc3),'lint:external-variable-undeclared':'error','lint:env-host-from-base':_0x52f461(0xe7),'lint:one-test-per-file':'warn','validator:unknown-function':_0x52f461(0xe7)}},'env':{'shared':[]},'mcp':{'transport':'stdio'},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
|
|
1
|
+
var _0x14f507=_0x26f9;(function(_0x5575a5,_0x2c08b9){var _0x104177={_0x1ddfca:0x131,_0x7410b2:0x10f,_0x3db77c:0x139,_0x5a0e30:0x107,_0x1cada0:0x117,_0x27734c:0x121},_0x1443de=_0x26f9,_0x1a5570=_0x5575a5();while(!![]){try{var _0x14cc5f=parseInt(_0x1443de(0x11f))/0x1*(parseInt(_0x1443de(_0x104177._0x1ddfca))/0x2)+-parseInt(_0x1443de(_0x104177._0x7410b2))/0x3*(-parseInt(_0x1443de(0xf4))/0x4)+-parseInt(_0x1443de(0x10c))/0x5*(-parseInt(_0x1443de(_0x104177._0x3db77c))/0x6)+-parseInt(_0x1443de(0xf2))/0x7*(-parseInt(_0x1443de(0x123))/0x8)+parseInt(_0x1443de(_0x104177._0x5a0e30))/0x9*(parseInt(_0x1443de(_0x104177._0x1cada0))/0xa)+parseInt(_0x1443de(0x133))/0xb+-parseInt(_0x1443de(_0x104177._0x27734c))/0xc;if(_0x14cc5f===_0x2c08b9)break;else _0x1a5570['push'](_0x1a5570['shift']());}catch(_0xa7e7c8){_0x1a5570['push'](_0x1a5570['shift']());}}}(_0x347e,0xe35b6));var __defProp=Object['defineProperty'],__name=(_0x150d5a,_0xc62c67)=>__defProp(_0x150d5a,_0x14f507(0x11b),{'value':_0xc62c67,'configurable':!![]});import{z as _0x3d70ee}from'zod';function _0x347e(){var _0x163dba=['C3rYAwn0','mti0v2jSywXP','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','DMfSAwrHDg9YoMzVCI1ZAgfWzq','DxjS','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','Dw5RBM93BIbRzxKGiG','BNvSBa','DMfSAwrHDg9YoNn0zxaTC2HHCgu','yxjYyxK','zNvSBa','C3rKAw8','zxjYB3jnyxa','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','zgvMyxvSDa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','y2HYB21PDw0','BwLU','AM9PBG','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','ntm1mJngDgnNvxm','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','D2fYBG','DMfSAwrHDg9YoMLMlxnOyxbL','Aw50','ndaWyxbhsLLW','A2v5CW','yM9VBgvHBG','mZmWodfRvhLozKe','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','y3jHC2G','BMv0D29YAW','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','zxjYB3i','BgLUDdPWyxvZzs1LEhbSAwnPDa','Dg9mB3DLCKnHC2u','nZeWzgTpD252','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','BgL0zxjHBa','BgLUDdPKzwvWlwnZCW','BMfTzq','DMfSAwrHDg9YoMfYAxr5','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','mtG1mJa1mwvfuxLLBq','C3rYAwn0t2jQzwn0','nti2nJi5odryB3r1vfC','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','nZi1nNjUDejTrq','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','zgLZBwLZCW','BgLUDdPLy2HVlwfZC2vYDa','BgLUDdPZy2vUyxjPBY1PBI1YB290','CMvJB3jK','zw51Bq','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','C3rYAw5N','B3b0Aw9UywW','BNvTyMvY','ywnJzxb0','BwfW','DMfSAwrHDg9YoMXPC3qTyxjN','mMHPy0PhAq','y29Kzq','mZK5nZK2mxDcBgXnEG','y2HYB21L','DMfSAwrHDg9YoNzHCI1ZAgfWzq','y2HYB21LlwjLDge','B2zM','BgLUDdPTDxn0ywnOzs1PBI1KC2W','mteXntC2wxPJsfrx','zgLZDgfUy2u','zgvMyxvSDevYCM9Y','BgLUDdP4Cgf0Aa','Dw5YzwnVz25PEMvKx2TLExm','y2XVC2vZDeTLEq','B2jQzwn0','Cg9ZAxrPDMu','DhjHBNnPzw50','BgLUDdPNB3rVlwnVBMnHDa','A2v5','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','D2vIA2L0','BxnLzgDL','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','zMLYzwzVEa','Dw5RBM93BKTLEu1LC3nHz2u','nJu4merutM1ksG'];_0x347e=function(){return _0x163dba;};return _0x347e();}import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x100013,_0x405cc3){var _0x1e6e7c={_0x47fc35:0x116},_0xf87393=_0x14f507;let _0x1a132e;for(const _0x5bc5b1 of _0x405cc3){const _0x2a2ede=levenshteinDistance(_0x100013[_0xf87393(0x116)](),_0x5bc5b1[_0xf87393(_0x1e6e7c._0x47fc35)]());if(_0x2a2ede>MAX_EDITS)continue;if(_0x1a132e===void 0x0||_0x2a2ede<_0x1a132e[_0xf87393(0x13a)])_0x1a132e={'key':_0x5bc5b1,'distance':_0x2a2ede};}return _0x1a132e?.[_0xf87393(0xeb)];}__name(closestKey,_0x14f507(0x13e));function unknownKeyMessage(_0x450cf7,_0x157ab7){var _0x4ff0e8={_0xfe46e:0xf9},_0x4c3292=_0x14f507;return _0x450cf7[_0x4c3292(0x12f)](_0x3e5a78=>{var _0x114484=_0x4c3292;const _0x2f4e59=closestKey(_0x3e5a78,_0x157ab7);return _0x2f4e59===void 0x0?_0x114484(0xf9)+_0x3e5a78+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0x114484(_0x4ff0e8._0xfe46e)+_0x3e5a78+'\x22\x20—\x20did\x20you\x20mean\x20\x22'+_0x2f4e59+'\x22?';})[_0x4c3292(0x105)](';\x20');}__name(unknownKeyMessage,_0x14f507(0xf1));function _0x26f9(_0x5d081d,_0x3a0c2e){_0x5d081d=_0x5d081d-0xe7;var _0x347ea3=_0x347e();var _0x26f93e=_0x347ea3[_0x5d081d];if(_0x26f9['lHlPHF']===undefined){var _0x23de78=function(_0x1228a3){var _0x2b022f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3d70ee='',_0x3e4f30='';for(var _0x150d5a=0x0,_0xc62c67,_0x100013,_0x405cc3=0x0;_0x100013=_0x1228a3['charAt'](_0x405cc3++);~_0x100013&&(_0xc62c67=_0x150d5a%0x4?_0xc62c67*0x40+_0x100013:_0x100013,_0x150d5a++%0x4)?_0x3d70ee+=String['fromCharCode'](0xff&_0xc62c67>>(-0x2*_0x150d5a&0x6)):0x0){_0x100013=_0x2b022f['indexOf'](_0x100013);}for(var _0x1a132e=0x0,_0x5bc5b1=_0x3d70ee['length'];_0x1a132e<_0x5bc5b1;_0x1a132e++){_0x3e4f30+='%'+('00'+_0x3d70ee['charCodeAt'](_0x1a132e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e4f30);};_0x26f9['ohjWJT']=_0x23de78,_0x26f9['ASeMoG']={},_0x26f9['lHlPHF']=!![];}var _0x41a637=_0x347ea3[0x0],_0x194252=_0x5d081d+_0x41a637,_0x4343d9=_0x26f9['ASeMoG'][_0x194252];return!_0x4343d9?(_0x26f93e=_0x26f9['ohjWJT'](_0x26f93e),_0x26f9['ASeMoG'][_0x194252]=_0x26f93e):_0x26f93e=_0x4343d9,_0x26f93e;}function strictObject(_0xfeb4d){var _0x107bf1={_0x394081:0x10d,_0x26a0ed:0xff,_0x2b9be8:0xf3},_0x31aedc=_0x14f507;const _0x3c9e92=Object[_0x31aedc(_0x107bf1._0x394081)](_0xfeb4d);return z[_0x31aedc(0xe7)](_0xfeb4d,{'errorMap':__name((_0x1d3557,_0x4dc016)=>_0x1d3557[_0x31aedc(0x132)]===z['ZodIssueCode'][_0x31aedc(0x13d)]?{'message':unknownKeyMessage(_0x1d3557[_0x31aedc(0x10d)],_0x3c9e92)}:{'message':_0x4dc016[_0x31aedc(0x13b)]},_0x31aedc(_0x107bf1._0x26a0ed))})[_0x31aedc(_0x107bf1._0x2b9be8)]();}__name(strictObject,_0x14f507(0x120));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x3e4f30}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x3e4f30[_0x14f507(0xe7)]({'userDataDir':_0x3e4f30[_0x14f507(0x12b)]()[_0x14f507(0x104)](0x1)[_0x14f507(0x12c)](),'args':_0x3e4f30[_0x14f507(0xfc)](_0x3e4f30['string']()[_0x14f507(0x104)](0x1))[_0x14f507(0x12c)]()})[_0x14f507(0xf3)](),BrowserSchema=_0x3d70ee['enum'](['chromium',_0x14f507(0xf0),_0x14f507(0xed)]),SYSTEM_BROWSER_CHANNELS=[_0x14f507(0x134),_0x14f507(0xee),_0x14f507(0x136),_0x14f507(0x103)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x3d70ee['union']([_0x3d70ee[_0x14f507(0x129)](SYSTEM_BROWSER_CHANNELS),_0x3d70ee[_0x14f507(0x119)](BUNDLED_BROWSER_CHANNEL)['transform'](()=>null),_0x3d70ee[_0x14f507(0xfa)]()])[_0x14f507(0x12c)](),ViewportSchema=strictObject({'width':_0x3d70ee[_0x14f507(0x12d)]()['int']()[_0x14f507(0xe8)](),'height':_0x3d70ee[_0x14f507(0x12d)]()[_0x14f507(0x10b)]()[_0x14f507(0xe8)]()}),RetryReasonSchema=_0x3d70ee[_0x14f507(0x129)]([_0x14f507(0xe9),_0x14f507(0x112),_0x14f507(0x111)]),RetryConfigSchema=strictObject({'count':_0x3d70ee[_0x14f507(0x12d)]()[_0x14f507(0x10b)]()[_0x14f507(0x104)](0x0)['max'](0xa),'on':_0x3d70ee[_0x14f507(0xfc)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x3d70ee['literal'](!![])[_0x14f507(0x101)](!![]),'tier2':_0x3d70ee[_0x14f507(0x10e)](),'tier3':strictObject({'network':_0x3d70ee[_0x14f507(0x10e)](),'video':_0x3d70ee[_0x14f507(0x10e)]()}),'retention':strictObject({'runs':_0x3d70ee[_0x14f507(0x12d)]()['int']()[_0x14f507(0xe8)](),'days':_0x3d70ee['number']()[_0x14f507(0x10b)]()['positive']()}),'storageDir':_0x3d70ee['string']()['min'](0x1),'pageHtml':_0x3d70ee[_0x14f507(0x129)](['redacted',_0x14f507(0xfd)])}),DialogPolicySchema=_0x3d70ee[_0x14f507(0x129)]([_0x14f507(0x12e),_0x14f507(0x125),'manual']),LinterRuleIdSchema=_0x3d70ee[_0x14f507(0x129)]([_0x14f507(0x11a),_0x14f507(0x13c),_0x14f507(0xf5),_0x14f507(0x115),_0x14f507(0x110),'lint:evaluate-discouraged',_0x14f507(0x127),_0x14f507(0x138),_0x14f507(0xea),'lint:regex-invalid',_0x14f507(0x126),_0x14f507(0x11d),_0x14f507(0x108),'lint:flow-returns-value','lint:legacy-layout',_0x14f507(0xef),_0x14f507(0xec),_0x14f507(0x113),_0x14f507(0x12a),_0x14f507(0x11c),'validator:arg-kind',_0x14f507(0x122),_0x14f507(0xfb),'validator:meta-shape',_0x14f507(0x118),_0x14f507(0xf6),_0x14f507(0x10a),_0x14f507(0x135),_0x14f507(0x102),_0x14f507(0x11e),_0x14f507(0x100),_0x14f507(0x124),_0x14f507(0x130),_0x14f507(0xf8)]),LinterSeveritySchema=_0x3d70ee[_0x14f507(0x129)]([_0x14f507(0x137),_0x14f507(0x109),_0x14f507(0x114)]),LinterConfigSchema=strictObject({'enabled':_0x3d70ee[_0x14f507(0x10e)](),'rules':_0x3d70ee[_0x14f507(0x128)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x3d70ee['boolean']()[_0x14f507(0x101)](!![]),'concurrency':_0x3d70ee['number']()['int']()[_0x14f507(0xe8)]()[_0x14f507(0x101)](0x1)}),ScheduleSchema=strictObject({'collection':_0x3d70ee[_0x14f507(0x12b)]()[_0x14f507(0x104)](0x1),'cron':_0x3d70ee[_0x14f507(0x12b)]()[_0x14f507(0x104)](0x1),'env':_0x3d70ee[_0x14f507(0x12b)]()[_0x14f507(0x104)](0x1)[_0x14f507(0x12c)](),'prepare':_0x3d70ee['string']()['min'](0x1)[_0x14f507(0x12c)]()}),McpConfigSchema=strictObject({'transport':_0x3d70ee['literal'](_0x14f507(0xfe))}),SandboxConfigSchema=strictObject({'shellCwd':_0x3d70ee['string']()[_0x14f507(0x12c)](),'shellTimeoutMs':_0x3d70ee[_0x14f507(0x12d)]()[_0x14f507(0x10b)]()[_0x14f507(0xe8)]()[_0x14f507(0x12c)](),'exportSecrets':_0x3d70ee[_0x14f507(0xfc)](_0x3d70ee[_0x14f507(0x12b)]())[_0x14f507(0x12c)](),'database':_0x3d70ee['string']()[_0x14f507(0x12c)](),'apiBaseUrl':_0x3d70ee[_0x14f507(0x12b)]()[_0x14f507(0xf7)]()[_0x14f507(0x12c)](),'uploadDir':_0x3d70ee[_0x14f507(0x12b)]()['optional']()}),WebServerConfigSchema=strictObject({'command':_0x3d70ee[_0x14f507(0x12b)]()['min'](0x1),'url':_0x3d70ee['string']()[_0x14f507(0xf7)](),'reuseExistingServer':_0x3d70ee[_0x14f507(0x10e)]()[_0x14f507(0x101)](!![]),'timeoutMs':_0x3d70ee['number']()[_0x14f507(0x10b)]()['positive']()[_0x14f507(0x101)](0xea60)}),EnvConfigSchema=strictObject({'shared':_0x3d70ee[_0x14f507(0xfc)](_0x3d70ee[_0x14f507(0x12b)]())[_0x14f507(0x101)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x3d70ee[_0x14f507(0x12b)]()[_0x14f507(0xf7)]()[_0x14f507(0x12c)](),'webServer':WebServerConfigSchema[_0x14f507(0x12c)](),'browsers':_0x3d70ee[_0x14f507(0xfc)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'launch':LaunchConfigSchema[_0x14f507(0x12c)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x3d70ee['string']()['optional'](),'testDir':_0x3d70ee['string']()[_0x14f507(0x104)](0x1),'helpersDir':_0x3d70ee[_0x14f507(0x12b)]()[_0x14f507(0x104)](0x1),'defaultTimeoutMs':_0x3d70ee['number']()[_0x14f507(0x10b)]()['positive'](),'defaultNavigationTimeoutMs':_0x3d70ee[_0x14f507(0x12d)]()[_0x14f507(0x10b)]()['positive'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x3d70ee[_0x14f507(0xfc)](ScheduleSchema)[_0x14f507(0x101)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x14f507(0x103)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':'.unotest/failures','pageHtml':'redacted'},'dialogPolicy':_0x14f507(0x12e),'testDir':'unotest/e2e','helpersDir':_0x14f507(0x106),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x14f507(0x109),'lint:xpath':_0x14f507(0x109),'lint:obfuscated-class':_0x14f507(0x109),'lint:pause-explicit':_0x14f507(0x109),'lint:disambig-by-index':_0x14f507(0x137),'lint:evaluate-discouraged':_0x14f507(0x109),'lint:scenario-in-root':_0x14f507(0x114),'lint:mustache-in-dsl':_0x14f507(0x114),'lint:goto-concat':_0x14f507(0x109),'lint:regex-invalid':'error','lint:echo-assert':'warn','lint:lint-ok-missing-reason':_0x14f507(0x109),'lint:flow-returns-value':_0x14f507(0x109),'lint:legacy-layout':_0x14f507(0x109),'lint:external-variable-undeclared':'error','lint:env-host-from-base':_0x14f507(0x114),'lint:one-test-per-file':_0x14f507(0x109),'validator:unknown-function':'error'}},'env':{'shared':[]},'mcp':{'transport':_0x14f507(0xfe)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
|
package/dist/driver/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ElementHint, S as ScreenshotOptions, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext, A as AttachOptions } from '../interfaces-
|
|
2
|
-
export { a as ActionTimeout, b as CheckOptions, c as ClickOptions, d as CookieOptions, e as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, f as NavigationOptions, P as PressOptions, R as ReloadOptions, g as SelectOptions, V as Viewport, h as WaitOptions, i as WaitState } from '../interfaces-
|
|
1
|
+
import { E as ElementHint, S as ScreenshotOptions, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext, A as AttachOptions } from '../interfaces-ClW2IRgY.js';
|
|
2
|
+
export { a as ActionTimeout, b as CheckOptions, c as ClickOptions, d as CookieOptions, e as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, f as NavigationOptions, P as PressOptions, R as ReloadOptions, g as SelectOptions, V as Viewport, h as WaitOptions, i as WaitState } from '../interfaces-ClW2IRgY.js';
|
|
3
3
|
import '@unotest/protocol';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4be305=_0x1b6f;(function(_0x1631a6,_0x1e2fd8){const _0x2b90d2={_0x280e5:0x1d9,_0x55e476:0x21f,_0x480a0b:0x22f},_0x397b75=_0x1b6f,_0xea857b=_0x1631a6();while(!![]){try{const _0x5eeb7b=-parseInt(_0x397b75(0x1be))/0x1+parseInt(_0x397b75(_0x2b90d2._0x280e5))/0x2+-parseInt(_0x397b75(0x1ff))/0x3*(-parseInt(_0x397b75(_0x2b90d2._0x55e476))/0x4)+-parseInt(_0x397b75(0x212))/0x5*(-parseInt(_0x397b75(0x1c5))/0x6)+parseInt(_0x397b75(0x1e4))/0x7+parseInt(_0x397b75(_0x2b90d2._0x480a0b))/0x8+-parseInt(_0x397b75(0x214))/0x9;if(_0x5eeb7b===_0x1e2fd8)break;else _0xea857b['push'](_0xea857b['shift']());}catch(_0xf7ef68){_0xea857b['push'](_0xea857b['shift']());}}}(_0x4d17,0x9f1bd));function _0x1b6f(_0x54c09c,_0x5a7cbc){_0x54c09c=_0x54c09c-0x1b4;const _0x4d17ac=_0x4d17();let _0x1b6ff9=_0x4d17ac[_0x54c09c];if(_0x1b6f['TUqpNk']===undefined){var _0x54c297=function(_0xf47314){const _0xbf2a5d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38ceb5='',_0x48b3b6='';for(let _0xbe630c=0x0,_0x2b934f,_0x5108d9,_0x27cb0d=0x0;_0x5108d9=_0xf47314['charAt'](_0x27cb0d++);~_0x5108d9&&(_0x2b934f=_0xbe630c%0x4?_0x2b934f*0x40+_0x5108d9:_0x5108d9,_0xbe630c++%0x4)?_0x38ceb5+=String['fromCharCode'](0xff&_0x2b934f>>(-0x2*_0xbe630c&0x6)):0x0){_0x5108d9=_0xbf2a5d['indexOf'](_0x5108d9);}for(let _0x5b928a=0x0,_0x29938d=_0x38ceb5['length'];_0x5b928a<_0x29938d;_0x5b928a++){_0x48b3b6+='%'+('00'+_0x38ceb5['charCodeAt'](_0x5b928a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48b3b6);};_0x1b6f['eNpaTE']=_0x54c297,_0x1b6f['WcbyHb']={},_0x1b6f['TUqpNk']=!![];}const _0x349e37=_0x4d17ac[0x0],_0x1a9c51=_0x54c09c+_0x349e37,_0x59d22c=_0x1b6f['WcbyHb'][_0x1a9c51];return!_0x59d22c?(_0x1b6ff9=_0x1b6f['eNpaTE'](_0x1b6ff9),_0x1b6f['WcbyHb'][_0x1a9c51]=_0x1b6ff9):_0x1b6ff9=_0x59d22c,_0x1b6ff9;}function _0x4d17(){const _0x3f6e69=['lNbHz2u','D2fPDezVCKXVywrtDgf0zq','CMvJB3jKzxi','nZaYode5mLLntfPjzq','zNjHBwvtDgfJAW','Cg9W','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','D2fPDezVCLrLEhq','ywjVDxq6yMXHBMS','CMvSB2fK','y29UC29SzuvUDhjPzxm','z2v0q29VA2LL','Dgv4DenVBNrLBNq','zhjPDMvY','ywn0AxzLswr4','zNjHBwvezxb0Aa','mtiYmJaWnvfrrezqzG','rMfRzvDLyKrYAxzLCG','zxzHBhvHDgvpBKXVy2f0B3i','Aw5UzxjuzxH0qNLezwzHDwX0','zMfRzsb0AxrSzq','AxnwAxnPyMXL','Bg9JywXtDg9YywDL','mZa2otKZmfzwq2nXuG','zMfRzs1WBMC','y29VA2LLu3rHDgu','y29UBMvJDfnOyxjLza','CMvM','C2nYzwvUC2HVDevSzw1LBNq','y291BNq','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y2fSBhm','C2nYzwvUC2HVDej5DgvZ','DhLWzq','BgvUz3rO','zgvSzxrL','zgvMAw5LuhjVCgvYDhK','Ag92zxi','z290BW','y3r4','Bwv0Ag9K','B25ozxDqywDL','y29VA2LLCW','mZyZndaYrvvmsfbV','Bgf1BMnO','C3rLChm','zMLSDgvY','CMvJB3jK','Aw5UzxjuzxH0','Aw5WDxrwywX1zq','C2v0tg9JywXtDg9YywDL','BMv3ugfNzuXPC3rLBMvYCW','BMfTzq','zxzHBhvHDgvszxn1Bhq','nJq5mJu2m0nfDuTWrW','C2f2zvn0B3jHz2vtDgf0zq','zNvUy3rPB24','y29UDgv4Dhm','zw50zxjgCMfTzq','y2XVC2vgywTLugfNzq','D2fPDezVCG','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','iJ48l2rPDJ4','ChvZAa','y2XPCgjVyxjKugfZDgu','C3vIC2nYAwjL','zxjYB3jpBK5LEhrby3rPB24','y3jLyxrLuMvJB3jKzxi','y2XPy2S','yxr0ywnOrxHPC3rPBMC','DxjS','yMvOyxzPB3i','y2fSBhngB3i','D2fPDezVCK5HDMLNyxrPB24','z29cywnR','ChjLC3m','y2HLy2TLzfn0yxrLqNLezwzHDwX0','Bwf5yMvuAhjVDW','D2fPDezVCLvYBa','Aw5WDxrwywX1zuj5rgvMyxvSDa','ywn0AxzLugfNzq','mtHKBLbjwM4','z29gB3j3yxjK','lNbHz2uW','B3v0zxjive1m','y291BNrcEurLzMf1Bhq','C2nYzwvUC2HVDa','Aw5ZCgvJDevSzw1LBNq','Bg9JywXtDg9YywDLu3rHDgu','AxneAxnHyMXLza','C2v0q29VA2LL','DxbSB2fKrMLSzq','B3v0zxjiDg1SqNLszwy','y2XVC2u','Cg9WDxbpBKnSAwnR','DgL0Bgu','zg91yMXLq2XPy2S','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','tg9JyxrVCKvYCM9Y','Dw5JAgvJAW','mtbYwKXQDxu','zxHPDezYyw1L','mJaZmdqZmJrhsLDRCeG','zxzHBhvHDgu','zMLSBa','y3vYCMvUDfvYBa','C2nVCgu','ywrK','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','z2v0qxr0CMLIDxrL','C3bSAwnL','nZq1oda0qKXOwuDK','Bgf1BMnOzwq','y2HLy2TLzfn0yxrL','y2HLy2S','B25bzNrLCKnSAwnR','zNjVBq','C2vSzwn0t3b0Aw9U','C2v0qwn0AxzLugfNzq','zw1PDezHA2vqB3b1Ca','CgfNzuXPC3q','pgrPDJ48l2rPDJ4','BMv0D29YA0vUDhjPzxm','Aw5PDgLHBfvYBa'];_0x4d17=function(){return _0x3f6e69;};return _0x4d17();}var __defProp=Object[_0x4be305(0x1d2)],__name=(_0x38ceb5,_0x48b3b6)=>__defProp(_0x38ceb5,_0x4be305(0x1e2),{'value':_0x48b3b6,'configurable':!![]});function subscribe(_0xbe630c,_0x2b934f){const _0x31876e={_0x1b6c8c:0x219},_0x328ef6=_0x4be305;return _0xbe630c[_0x328ef6(_0x31876e._0x1b6c8c)](_0x2b934f),()=>{const _0x2a756f=_0x328ef6;_0xbe630c[_0x2a756f(0x1d1)](_0x2b934f);};}__name(subscribe,_0x4be305(0x1ef));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x4be305(0x210));}};function createRecorder(){const _0x18f05e={_0x194071:0x1cd},_0x100c54=_0x4be305,_0x5108d9=[];let _0x27cb0d=0x0;return{'push':__name(_0x5b928a=>_0x5108d9[_0x100c54(0x1ed)]({..._0x5b928a,'seq':_0x27cb0d++}),'push'),'calls':__name(()=>_0x5108d9,_0x100c54(_0x18f05e._0x194071))};}__name(createRecorder,_0x4be305(0x1f1));var FakePage=class{constructor(_0x29938d,_0x2d48bf,_0x20ca35,_0x4f9c7b){const _0x395b87={_0x3a153c:0x1f5},_0xfdbc3e=_0x4be305;this[_0xfdbc3e(0x22e)]=_0x29938d,this[_0xfdbc3e(_0x395b87._0x3a153c)]=_0x2d48bf,this[_0xfdbc3e(0x218)]=_0x20ca35,this['currentUrl']=_0x4f9c7b;}['recorder'];[_0x4be305(0x1f5)];['scope'];static{__name(this,'FakePage');}['currentUrl'];[_0x4be305(0x223)];[_0x4be305(0x1dd)](_0x33bdb1,_0x5119f0){const _0x14f53d={_0x7e3e9d:0x22e,_0x3bba8b:0x1ed,_0xe66f8c:0x218},_0x2b3552=_0x4be305;this[_0x2b3552(_0x14f53d._0x7e3e9d)][_0x2b3552(_0x14f53d._0x3bba8b)]({'scope':this[_0x2b3552(_0x14f53d._0xe66f8c)],'method':_0x33bdb1,'args':_0x5119f0});}['maybeThrow'](){const _0x4969f7={_0xea3bb9:0x1f5,_0x4a0118:0x1f0},_0x20a906=_0x4be305;if(this[_0x20a906(_0x4969f7._0xea3bb9)][_0x20a906(_0x4969f7._0x4a0118)]){const _0x380598=this[_0x20a906(0x1f5)][_0x20a906(0x1f0)];this[_0x20a906(0x1f5)][_0x20a906(0x1f0)]=void 0x0;throw _0x380598;}}[_0x4be305(0x1f4)](){const _0xd60f5={_0x860f87:0x217},_0x134dea=_0x4be305;return this[_0x134dea(_0xd60f5._0x860f87)];}async[_0x4be305(0x20d)](){const _0x82d975={_0x33b53a:0x1c2},_0x2ceb0f=_0x4be305;return this[_0x2ceb0f(0x1dd)](_0x2ceb0f(0x20d),[]),_0x2ceb0f(_0x82d975._0x33b53a);}async[_0x4be305(0x1f2)](_0x468918,_0x44ef05){const _0x1d0692={_0x545f6a:0x1dd,_0x36f30d:0x223},_0x5f0004=_0x4be305;this[_0x5f0004(_0x1d0692._0x545f6a)]('click',[_0x468918,_0x44ef05]),this[_0x5f0004(0x1fb)](),this[_0x5f0004(_0x1d0692._0x36f30d)]?.();}async[_0x4be305(0x20e)](_0x2a8ecf,_0x5a1a82){const _0x1d508c={_0x13c6a2:0x1fb},_0x1c6082=_0x4be305;this[_0x1c6082(0x1dd)](_0x1c6082(0x20e),[_0x2a8ecf,_0x5a1a82]),this[_0x1c6082(_0x1d508c._0x13c6a2)]();}async[_0x4be305(0x216)](_0x424fe3,_0x23fe25,_0x147a9f){const _0x34847e=_0x4be305;this[_0x34847e(0x1dd)]('fill',[_0x424fe3,_0x23fe25,_0x147a9f]),this['maybeThrow']();}async[_0x4be305(0x1f9)](_0x35a4e0,_0x2148e5,_0x3154c5){const _0x56d918={_0x52a615:0x1f9,_0x3d9e3b:0x1fb},_0x2b6946=_0x4be305;this['record'](_0x2b6946(_0x56d918._0x52a615),[_0x35a4e0,_0x2148e5,_0x3154c5]),this[_0x2b6946(_0x56d918._0x3d9e3b)]();}async[_0x4be305(0x222)](_0x5cedac,_0xbbeff){const _0xa7f7eb={_0x41ea62:0x1dd,_0x52524f:0x1fb},_0x3e73f5=_0x4be305;this[_0x3e73f5(_0xa7f7eb._0x41ea62)](_0x3e73f5(0x222),[_0x5cedac,_0xbbeff]),this[_0x3e73f5(_0xa7f7eb._0x52524f)]();}async['uncheck'](_0x3fb068,_0x406527){const _0x122a84=_0x4be305;this[_0x122a84(0x1dd)](_0x122a84(0x211),[_0x3fb068,_0x406527]),this['maybeThrow']();}async[_0x4be305(0x225)](_0x306e37,_0x59df9d,_0x3a4232){const _0x4cabf5={_0x58d004:0x1fb},_0x25722f=_0x4be305;this[_0x25722f(0x1dd)](_0x25722f(0x225),[_0x306e37,_0x59df9d,_0x3a4232]),this[_0x25722f(_0x4cabf5._0x58d004)]();}async[_0x4be305(0x1d3)](_0x4c12f4,_0x4fb87b){const _0x1073b1={_0x3e17f2:0x1dd},_0x2f0dc1=_0x4be305;this[_0x2f0dc1(_0x1073b1._0x3e17f2)](_0x2f0dc1(0x1d3),[_0x4c12f4,_0x4fb87b]),this['maybeThrow']();}async['scrollIntoView'](_0x4184ce){const _0x5e036d=_0x4be305;this[_0x5e036d(0x1dd)]('scrollIntoView',[_0x4184ce]),this[_0x5e036d(0x1fb)]();}async['dragAndDrop'](_0x1cb298,_0x2ffda0,_0x4f7aea){const _0x35f6ee={_0x4af8a5:0x1dd},_0x556f37=_0x4be305;this[_0x556f37(_0x35f6ee._0x4af8a5)]('dragAndDrop',[_0x1cb298,_0x2ffda0,_0x4f7aea]),this['maybeThrow']();}async[_0x4be305(0x209)](_0x269851,_0x1a7567){const _0x2dd911={_0x2bb17f:0x209,_0x343023:0x1fb},_0x1d024f=_0x4be305;this[_0x1d024f(0x1dd)](_0x1d024f(_0x2dd911._0x2bb17f),[_0x269851,_0x1a7567]),this[_0x1d024f(_0x2dd911._0x343023)]();}async[_0x4be305(0x1ee)](_0x2130ac,_0x39981e){const _0x2bc3e1={_0x5df7ff:0x1fb},_0x96de1d=_0x4be305;this['record']('clipboardPaste',[_0x2130ac,_0x39981e]),this[_0x96de1d(_0x2bc3e1._0x5df7ff)]();}async[_0x4be305(0x1cb)](_0x234278){const _0x4526d6={_0xdf5b19:0x203},_0xbd396e=_0x4be305;return this[_0xbd396e(0x1dd)](_0xbd396e(0x1cb),[_0x234278]),this['behavior'][_0xbd396e(_0x4526d6._0xdf5b19)]??0x1;}async[_0x4be305(0x1ba)](_0x475e55){const _0x6d99b6={_0x31df90:0x1dd},_0x175e6d=_0x4be305;return this[_0x175e6d(_0x6d99b6._0x31df90)](_0x175e6d(0x1ba),[_0x475e55]),this[_0x175e6d(0x1f5)]['textContentByDefault']??'';}async[_0x4be305(0x1de)](_0x1bc743){const _0x2fd9c1={_0x2813c7:0x1f5,_0x527ac5:0x1c1},_0x2543f9=_0x4be305;return this['record'](_0x2543f9(0x1de),[_0x1bc743]),this[_0x2543f9(_0x2fd9c1._0x2813c7)][_0x2543f9(_0x2fd9c1._0x527ac5)]??this['behavior'][_0x2543f9(0x21a)]??'';}async[_0x4be305(0x1df)](_0x354826){const _0x2c7b66={_0xf6024b:0x1f5,_0x41f833:0x1fd},_0x57f463=_0x4be305;return this[_0x57f463(0x1dd)]('inputValue',[_0x354826]),this[_0x57f463(_0x2c7b66._0xf6024b)][_0x57f463(_0x2c7b66._0x41f833)]??'';}async[_0x4be305(0x221)](_0x4e8ebe){const _0x5c9321={_0x4e7f62:0x1dd,_0x530074:0x221},_0x1304b0=_0x4be305;return this[_0x1304b0(_0x5c9321._0x4e7f62)](_0x1304b0(_0x5c9321._0x530074),[_0x4e8ebe]),this['behavior'][_0x1304b0(0x1fa)]??null;}async['isVisible'](_0x49b0ed){const _0x2db8df={_0xa6fb54:0x1f5},_0x4f69a7=_0x4be305;return this['record'](_0x4f69a7(0x1c3),[_0x49b0ed]),this[_0x4f69a7(_0x2db8df._0xa6fb54)]['isVisibleByDefault']??!![];}async[_0x4be305(0x207)](_0x34b8e0){const _0x592ca8=_0x4be305;return this[_0x592ca8(0x1dd)](_0x592ca8(0x207),[_0x34b8e0]),this[_0x592ca8(0x1f5)]['isDisabledByDefault']??![];}async[_0x4be305(0x21d)](_0x2e49f8,_0x4318aa){const _0x1e6023={_0x2ab260:0x1f5},_0x5030ad=_0x4be305;return this['record']('getAttribute',[_0x2e49f8,_0x4318aa]),this[_0x5030ad(_0x1e6023._0x2ab260)]['attributesByDefault']?.[_0x4318aa]??null;}async[_0x4be305(0x1ea)](_0x300eb0,_0x49516e){const _0x37c5f7=_0x4be305;this['record'](_0x37c5f7(0x1ea),[_0x300eb0,_0x49516e]);}async[_0x4be305(0x1fc)](_0x1cb684,_0x1a52a0){const _0x572340={_0x43fe75:0x1dd,_0x1249ae:0x1fc},_0xf88d61=_0x4be305;this[_0xf88d61(_0x572340._0x43fe75)](_0xf88d61(_0x572340._0x1249ae),[_0x1cb684,_0x1a52a0]);}async[_0x4be305(0x1b5)](_0x11d53c,_0x29ed62){const _0x25ad84={_0x295018:0x1dd},_0x81ed53=_0x4be305;this[_0x81ed53(_0x25ad84._0x295018)]('waitForText',[_0x11d53c,_0x29ed62]);}async['waitForNavigation'](_0x106019){const _0x1e306e={_0x5e9eb:0x1dd,_0x130835:0x1f7},_0x5e6c2b=_0x4be305;this[_0x5e6c2b(_0x1e306e._0x5e9eb)](_0x5e6c2b(_0x1e306e._0x130835),[_0x106019]);}async[_0x4be305(0x22d)](_0x18baef,_0x219c26){const _0x24813d={_0x23aa46:0x1dd,_0x4495d9:0x22d},_0x1185ce=_0x4be305;this[_0x1185ce(_0x24813d._0x23aa46)](_0x1185ce(_0x24813d._0x4495d9),[_0x18baef,_0x219c26]);}async[_0x4be305(0x1d4)](_0x2ddec0,_0x2c66f4){const _0x1a520c=_0x4be305;this[_0x1a520c(0x1dd)](_0x1a520c(0x1d4),[_0x2ddec0,_0x2c66f4]),this['currentUrl']=_0x2ddec0;}async[_0x4be305(0x1b7)](_0x4b5830){this['record']('reload',[_0x4b5830]);}async[_0x4be305(0x1f8)](_0x344f21){const _0x126043={_0x1b039c:0x1dd,_0x389258:0x1f8},_0x272303=_0x4be305;this[_0x272303(_0x126043._0x1b039c)](_0x272303(_0x126043._0x389258),[_0x344f21]);}async['goForward'](_0x57f8e3){const _0x2e07de=_0x4be305;this['record'](_0x2e07de(0x200),[_0x57f8e3]);}async['evaluate'](_0x2aea9f){const _0x2186a1={_0x3123c8:0x1dd,_0x2241c4:0x215,_0x532574:0x1e3},_0x5eb1f8=_0x4be305;return this[_0x5eb1f8(_0x2186a1._0x3123c8)](_0x5eb1f8(_0x2186a1._0x2241c4),[_0x2aea9f]),this['behavior'][_0x5eb1f8(_0x2186a1._0x532574)];}async[_0x4be305(0x1c0)](_0x31690b,_0x3e9e5d){const _0x7fecc8={_0x369e31:0x1dd},_0x448883=_0x4be305;return this[_0x448883(_0x7fecc8._0x369e31)]('evaluateOnLocator',[_0x31690b,_0x3e9e5d]),void 0x0;}async[_0x4be305(0x205)](_0x5e3efc){const _0x45b531={_0x3e4f39:0x1db,_0xd65e7e:0x1d0,_0x312d43:0x1db,_0x32637c:0x1f5},_0x55173a=_0x4be305;this['record'](_0x55173a(0x205),[_0x5e3efc]);if(_0x5e3efc[_0x55173a(_0x45b531._0x3e4f39)][_0x55173a(_0x45b531._0xd65e7e)]!==0x1||_0x5e3efc[_0x55173a(0x1db)][0x0]['kind']!==_0x55173a(0x1c9))return null;const _0x31bc6d=_0x5e3efc[_0x55173a(_0x45b531._0x312d43)][0x0][_0x55173a(0x1c9)],_0x3bacd9=this[_0x55173a(_0x45b531._0x32637c)]['elementHintByRef']?.[_0x31bc6d];return _0x3bacd9??null;}async[_0x4be305(0x204)](_0x19ed8b){const _0xfe2eff={_0x4e4c34:0x204},_0x4db2ad=_0x4be305;return this[_0x4db2ad(0x1dd)](_0x4db2ad(_0xfe2eff._0x4e4c34),[_0x19ed8b]),this[_0x4db2ad(0x1ce)](_0x19ed8b?.[_0x4db2ad(0x1cf)]);}async[_0x4be305(0x1ca)](_0x164956,_0x216c2a){const _0x4d1a5c={_0x38d3b6:0x1dd,_0x4833e2:0x1cf},_0x5547d9=_0x4be305;return this[_0x5547d9(_0x4d1a5c._0x38d3b6)](_0x5547d9(0x1ca),[_0x164956,_0x216c2a]),this[_0x5547d9(0x1ce)](_0x216c2a?.[_0x5547d9(_0x4d1a5c._0x4833e2)]);}[_0x4be305(0x1ce)](_0x5eb071){const _0x281562={_0x2e3a84:0x1ce,_0x4a05cc:0x1c6,_0x2f3b5b:0x1e6},_0x354dfe=_0x4be305,_0x4bbb46=this[_0x354dfe(0x1f5)][_0x354dfe(_0x281562._0x2e3a84)];if(_0x4bbb46===void 0x0)return Buffer[_0x354dfe(0x224)](_0x354dfe(_0x281562._0x4a05cc));return typeof _0x4bbb46===_0x354dfe(_0x281562._0x2f3b5b)?_0x4bbb46(_0x5eb071):_0x4bbb46;}async[_0x4be305(0x202)](_0x5518be){const _0x148f5c={_0x3eba40:0x202,_0xf1a1dd:0x1db,_0x34896c:0x1d0,_0x14fff4:0x1db,_0x3bd776:0x1c9,_0x5af643:0x20a,_0x5861ea:0x1b4,_0x5434b7:0x229},_0x15a8a9=_0x4be305;this[_0x15a8a9(0x1dd)](_0x15a8a9(_0x148f5c._0x3eba40),[_0x5518be]);if(_0x5518be[_0x15a8a9(_0x148f5c._0xf1a1dd)][_0x15a8a9(_0x148f5c._0x34896c)]===0x1&&_0x5518be['steps'][0x0]['kind']==='ref'){const _0x5ad2af=_0x5518be[_0x15a8a9(_0x148f5c._0x14fff4)][0x0][_0x15a8a9(_0x148f5c._0x3bd776)];return this[_0x15a8a9(0x1f5)][_0x15a8a9(_0x148f5c._0x5af643)]?.[_0x5ad2af]??_0x15a8a9(_0x148f5c._0x5861ea)+_0x5ad2af+_0x15a8a9(0x1ec);}return _0x15a8a9(_0x148f5c._0x5434b7);}},FakeContext=class{constructor(_0x1dcf9b,_0x5486c1,_0xc27375){const _0x1947e5={_0x390277:0x1f5,_0x38e29c:0x201,_0x4d2c5b:0x22b,_0x5c0396:0x1b6,_0x216d7f:0x20c,_0x4483a1:0x1d8},_0x1d228a={_0x57f963:0x227},_0x7bb607=_0x4be305;this[_0x7bb607(0x22e)]=_0x1dcf9b,this[_0x7bb607(_0x1947e5._0x390277)]=_0x5486c1,this['scope']=_0xc27375;const _0x598dfa=new FakePage(_0x1dcf9b,_0x5486c1,_0xc27375+_0x7bb607(_0x1947e5._0x38e29c),_0x5486c1[_0x7bb607(_0x1947e5._0x4d2c5b)]??_0x7bb607(_0x1947e5._0x5c0396));_0x5486c1[_0x7bb607(_0x1947e5._0x216d7f)]&&(_0x598dfa[_0x7bb607(0x223)]=()=>{const _0x2b69ed=_0x7bb607;this[_0x2b69ed(_0x1d228a._0x57f963)](_0x5486c1['popupOnClick']);}),this['pageList']=[_0x598dfa],this['localStorageState']={..._0x5486c1[_0x7bb607(0x1c4)]??{}},this[_0x7bb607(0x1c7)]={..._0x5486c1[_0x7bb607(_0x1947e5._0x4483a1)]??{}};}[_0x4be305(0x22e)];[_0x4be305(0x1f5)];[_0x4be305(0x218)];static{__name(this,'FakeContext');}[_0x4be305(0x228)];[_0x4be305(0x1bc)]=0x0;[_0x4be305(0x230)]=[];[_0x4be305(0x206)];[_0x4be305(0x1c7)];[_0x4be305(0x1e1)]=new Set();[_0x4be305(0x1dd)](_0x1fef26,_0x418c61){const _0x58ded4={_0x8834bf:0x22e,_0x5d9deb:0x1ed},_0x59938f=_0x4be305;this[_0x59938f(_0x58ded4._0x8834bf)][_0x59938f(_0x58ded4._0x5d9deb)]({'scope':this['scope'],'method':_0x1fef26,'args':_0x418c61});}['pages'](){const _0x2a7a74={_0x282ea5:0x228},_0x3acbc3=_0x4be305;return this[_0x3acbc3(_0x2a7a74._0x282ea5)];}[_0x4be305(0x1fe)](){const _0x562321={_0x456ccd:0x20f,_0x2a7553:0x1bc},_0x1509df=_0x4be305,_0x5e46df=this['pageList'][this[_0x1509df(0x1bc)]];if(!_0x5e46df)throw new DriverError(_0x1509df(_0x562321._0x456ccd),{'activeIdx':this[_0x1509df(_0x562321._0x2a7553)]});return _0x5e46df;}[_0x4be305(0x1b8)](){const _0xf26cec={_0x589a19:0x1b8},_0xf4f3da=_0x4be305;return this[_0xf4f3da(0x1f5)][_0xf4f3da(_0xf26cec._0x589a19)]??[];}[_0x4be305(0x22a)](){const _0x5fc8a3={_0x5e842d:0x1f5,_0x4d7db8:0x22a},_0x5e7314=_0x4be305;return this[_0x5e7314(_0x5fc8a3._0x5e842d)][_0x5e7314(_0x5fc8a3._0x4d7db8)]??[];}async[_0x4be305(0x226)](_0x3e98f0){const _0x25189f={_0x396ae5:0x1eb},_0x3a67a6=_0x4be305;this[_0x3a67a6(0x1dd)]('setActivePage',[_0x3e98f0]);if(_0x3e98f0<0x0||_0x3e98f0>=this[_0x3a67a6(0x228)][_0x3a67a6(0x1d0)])throw new DriverError(_0x3a67a6(_0x25189f._0x396ae5),{'index':_0x3e98f0,'available':this[_0x3a67a6(0x228)][_0x3a67a6(0x1d0)]});this[_0x3a67a6(0x1bc)]=_0x3e98f0,this['frameStack'][_0x3a67a6(0x1d0)]=0x0;}[_0x4be305(0x1d7)](_0x47e57b){const _0x2eda84=_0x4be305;return subscribe(this[_0x2eda84(0x1e1)],_0x47e57b);}['emitFakePopup'](_0x347745){const _0x40cdbd={_0x515e4e:0x218,_0x843b04:0x22c,_0x4f9d51:0x228,_0x1af5d6:0x1d0},_0x2d9fd7=_0x4be305,_0x5bb44e=this[_0x2d9fd7(_0x40cdbd._0x515e4e)]+_0x2d9fd7(_0x40cdbd._0x843b04)+this[_0x2d9fd7(_0x40cdbd._0x4f9d51)][_0x2d9fd7(_0x40cdbd._0x1af5d6)],_0x3bd5ea=new FakePage(this[_0x2d9fd7(0x22e)],this[_0x2d9fd7(0x1f5)],_0x5bb44e,_0x347745);this[_0x2d9fd7(0x228)]['push'](_0x3bd5ea);const _0x26cb6b=this[_0x2d9fd7(_0x40cdbd._0x4f9d51)][_0x2d9fd7(0x1d0)]-0x1;for(const _0x57bbb0 of this[_0x2d9fd7(0x1e1)]){try{_0x57bbb0({'index':_0x26cb6b,'url':_0x347745});}catch{}}return _0x26cb6b;}[_0x4be305(0x1e9)](_0x7e3bb3){const _0x1f61aa={_0x129bc3:0x228,_0x25b1f7:0x1d0,_0x4d321e:0x21e},_0x8ff500=_0x4be305;if(_0x7e3bb3<0x0||_0x7e3bb3>=this[_0x8ff500(0x228)][_0x8ff500(0x1d0)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x7e3bb3,'available':this[_0x8ff500(_0x1f61aa._0x129bc3)][_0x8ff500(_0x1f61aa._0x25b1f7)]});this['pageList'][_0x8ff500(_0x1f61aa._0x4d321e)](_0x7e3bb3,0x1);}async[_0x4be305(0x1e8)](_0x9b7152){const _0x5cb19d={_0x495b0a:0x1db,_0x58a4c8:0x1d0},_0x465aae=_0x4be305;this[_0x465aae(0x1dd)]('enterFrame',[_0x9b7152]);if(!_0x9b7152[_0x465aae(_0x5cb19d._0x495b0a)][_0x465aae(_0x5cb19d._0x58a4c8)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x9b7152});this[_0x465aae(0x230)]['push'](_0x9b7152);}async['exitFrame'](){const _0x38e8e9={_0x30ad00:0x230},_0x416d83=_0x4be305;this['record'](_0x416d83(0x213),[]);if(this[_0x416d83(_0x38e8e9._0x30ad00)][_0x416d83(0x1d0)]===0x0)throw new DriverError(_0x416d83(0x21b),{});this[_0x416d83(_0x38e8e9._0x30ad00)][_0x416d83(0x231)]();}async[_0x4be305(0x1e0)](_0x3aed3c,_0x3c65ae){const _0x18edf7={_0x44c25f:0x1e0},_0x4fe38e=_0x4be305;this[_0x4fe38e(0x1dd)](_0x4fe38e(_0x18edf7._0x44c25f),[_0x3aed3c,_0x3c65ae]),this['localStorageState'][_0x3aed3c]=_0x3c65ae;}async['getLocalStorage'](_0x94964a){const _0x5f4615=_0x4be305;return this[_0x5f4615(0x1dd)]('getLocalStorage',[_0x94964a]),this[_0x5f4615(0x206)][_0x94964a]??null;}async[_0x4be305(0x208)](_0x5cf8d6,_0xcd1c1a,_0x849c8c){const _0x5708de=_0x4be305;this[_0x5708de(0x1dd)](_0x5708de(0x208),[_0x5cf8d6,_0xcd1c1a,_0x849c8c]),this['cookieState'][_0x5cf8d6]=_0xcd1c1a;}async[_0x4be305(0x1b9)](_0x10b7e9){const _0x4d9991=_0x4be305;return this['record'](_0x4d9991(0x1b9),[_0x10b7e9]),this['cookieState'][_0x10b7e9]??null;}async['saveStorageState'](_0x36266d){const _0x2da559={_0x5176f9:0x1e5},_0x4f67d5=_0x4be305;this[_0x4f67d5(0x1dd)](_0x4f67d5(_0x2da559._0x5176f9),[_0x36266d]);}async[_0x4be305(0x215)](_0x5f376d){const _0x2cc088=_0x4be305;return this['record'](_0x2cc088(0x215),[_0x5f376d]),void 0x0;}async[_0x4be305(0x20b)](){const _0x33086b={_0x131d32:0x1dd},_0x21811f=_0x4be305;this[_0x21811f(_0x33086b._0x131d32)](_0x21811f(0x20b),[]);}[_0x4be305(0x1bd)](){const _0x3fa6ce={_0x2caa99:0x1d0},_0x4eec81=_0x4be305;return this[_0x4eec81(0x230)][_0x4eec81(_0x3fa6ce._0x2caa99)];}},FakeWebDriver=class{constructor(_0x41725a={}){const _0x5b469f={_0x263f42:0x1f5},_0x13d13d=_0x4be305;this[_0x13d13d(_0x5b469f._0x263f42)]=_0x41725a,this['recorder']=createRecorder();}[_0x4be305(0x1f5)];static{__name(this,_0x4be305(0x1bf));}['launched']=![];['recorder'];[_0x4be305(0x1e7)]=[];async['launch'](_0x27a079){const _0x257c61={_0x340ddd:0x220},_0x4b19da=_0x4be305;this[_0x4b19da(0x22e)][_0x4b19da(0x1ed)]({'scope':'driver','method':_0x4b19da(0x1da),'args':[_0x27a079]}),this[_0x4b19da(_0x257c61._0x340ddd)]=!![];}async['newContext'](_0x19b996){const _0x319c1d={_0x4eea57:0x22e,_0x16611d:0x1d5,_0x3a5cfe:0x1e7},_0x5759bb=_0x4be305;this['recorder'][_0x5759bb(0x1ed)]({'scope':'driver','method':'newContext','args':[_0x19b996]});if(!this[_0x5759bb(0x220)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x314327=new FakeContext(this[_0x5759bb(_0x319c1d._0x4eea57)],this['behavior'],_0x5759bb(_0x319c1d._0x16611d)+this[_0x5759bb(_0x319c1d._0x3a5cfe)]['length']);return this[_0x5759bb(_0x319c1d._0x3a5cfe)][_0x5759bb(0x1ed)](_0x314327),_0x314327;}async[_0x4be305(0x20b)](){const _0x41b72a={_0x37d1e0:0x22e,_0x5843c2:0x1ed,_0x5a2922:0x220},_0x2151d4=_0x4be305;this[_0x2151d4(_0x41b72a._0x37d1e0)][_0x2151d4(_0x41b72a._0x5843c2)]({'scope':_0x2151d4(0x1bb),'method':_0x2151d4(0x20b),'args':[]}),this[_0x2151d4(_0x41b72a._0x5a2922)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x4be305(0x1c8)](){const _0x535240=_0x4be305;throw new DriverError(_0x535240(0x1cc),{});}[_0x4be305(0x1f3)](_0x19bce8){const _0x6d8446={_0x455fbb:0x21c},_0x4e79c5=_0x4be305;throw new DriverError(_0x4e79c5(_0x6d8446._0x455fbb),{});}[_0x4be305(0x1cd)](){const _0x2d86e8={_0x485c6d:0x22e},_0x429f9f=_0x4be305;return this[_0x429f9f(_0x2d86e8._0x485c6d)]['calls']();}[_0x4be305(0x1f6)](_0x328ec2){const _0x26f1d8={_0x29d23c:0x22e},_0x46d749=_0x4be305;return this[_0x46d749(_0x26f1d8._0x29d23c)][_0x46d749(0x1cd)]()[_0x46d749(0x1dc)](_0x558884=>_0x558884[_0x46d749(0x1d6)]===_0x328ec2);}};export{FakeWebDriver};
|
|
1
|
+
function _0x389f(_0x23c25d,_0x291f4c){_0x23c25d=_0x23c25d-0x9d;const _0x3f6528=_0x3f65();let _0x389f36=_0x3f6528[_0x23c25d];if(_0x389f['HBIuoT']===undefined){var _0x2a29af=function(_0x4a00c6){const _0x2ad076='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x39ccd7='',_0x4dbc93='';for(let _0x53c645=0x0,_0x156d5a,_0x35f335,_0x52b9ed=0x0;_0x35f335=_0x4a00c6['charAt'](_0x52b9ed++);~_0x35f335&&(_0x156d5a=_0x53c645%0x4?_0x156d5a*0x40+_0x35f335:_0x35f335,_0x53c645++%0x4)?_0x39ccd7+=String['fromCharCode'](0xff&_0x156d5a>>(-0x2*_0x53c645&0x6)):0x0){_0x35f335=_0x2ad076['indexOf'](_0x35f335);}for(let _0x21f22a=0x0,_0x15e21b=_0x39ccd7['length'];_0x21f22a<_0x15e21b;_0x21f22a++){_0x4dbc93+='%'+('00'+_0x39ccd7['charCodeAt'](_0x21f22a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4dbc93);};_0x389f['ptkoXO']=_0x2a29af,_0x389f['hzYVSA']={},_0x389f['HBIuoT']=!![];}const _0x260655=_0x3f6528[0x0],_0x1c4061=_0x23c25d+_0x260655,_0x2b5f6a=_0x389f['hzYVSA'][_0x1c4061];return!_0x2b5f6a?(_0x389f36=_0x389f['ptkoXO'](_0x389f36),_0x389f['hzYVSA'][_0x1c4061]=_0x389f36):_0x389f36=_0x2b5f6a,_0x389f36;}const _0x562ca9=_0x389f;(function(_0x21d0aa,_0x354f9b){const _0x42e522={_0xf0dd9b:0xc1,_0x2dedc8:0xde,_0xc0d620:0xcc,_0x3452a0:0x11e,_0x585f7c:0xc7,_0x48104f:0xa7},_0x1dc3e6=_0x389f,_0x1740e8=_0x21d0aa();while(!![]){try{const _0x7794af=parseInt(_0x1dc3e6(0xb3))/0x1*(parseInt(_0x1dc3e6(0xb1))/0x2)+-parseInt(_0x1dc3e6(0xdc))/0x3*(parseInt(_0x1dc3e6(0xa6))/0x4)+-parseInt(_0x1dc3e6(_0x42e522._0xf0dd9b))/0x5*(-parseInt(_0x1dc3e6(_0x42e522._0x2dedc8))/0x6)+-parseInt(_0x1dc3e6(_0x42e522._0xc0d620))/0x7*(parseInt(_0x1dc3e6(_0x42e522._0x3452a0))/0x8)+parseInt(_0x1dc3e6(_0x42e522._0x585f7c))/0x9+-parseInt(_0x1dc3e6(0xc0))/0xa*(parseInt(_0x1dc3e6(0xdd))/0xb)+-parseInt(_0x1dc3e6(0x111))/0xc*(parseInt(_0x1dc3e6(_0x42e522._0x48104f))/0xd);if(_0x7794af===_0x354f9b)break;else _0x1740e8['push'](_0x1740e8['shift']());}catch(_0x4d5419){_0x1740e8['push'](_0x1740e8['shift']());}}}(_0x3f65,0xd1a39));var __defProp=Object[_0x562ca9(0xdf)],__name=(_0x39ccd7,_0x4dbc93)=>__defProp(_0x39ccd7,_0x562ca9(0xca),{'value':_0x4dbc93,'configurable':!![]});function subscribe(_0x53c645,_0x156d5a){const _0x173388={_0xa8031f:0xe5},_0x1a4d56=_0x562ca9;return _0x53c645[_0x1a4d56(0x11a)](_0x156d5a),()=>{const _0x43dc68=_0x1a4d56;_0x53c645[_0x43dc68(_0x173388._0xa8031f)](_0x156d5a);};}function _0x3f65(){const _0x126918=['y29VA2LLu3rHDgu','mJrdEwv2rKS','C2nYzwvUC2HVDa','tg9JyxrVCKvYCM9Y','Cg9W','y29UC29SzuvUDhjPzxm','rMfRzvDLyKrYAxzLCG','y29VA2LLCW','C3rLChm','CMvSB2fK','D3nfBMrWB2LUDa','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','A2LUza','ywn0AxzLswr4','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zMLSBa','z2v0q29VA2LL','D2fPDezVCK5HDMLNyxrPB24','mtGZndyZmLjIsKXvqW','mty5rNPqt3bU','zw50zxjgCMfTzq','BgvUz3rO','y2HLy2TLzfn0yxrL','AxneAxnHyMXLza','C2v0tg9JywXtDg9YywDL','DgL0Bgu','y2XPCgjVyxjKugfZDgu','ywn0AxzLugfNzq','y3vYCMvUDfvYBa','ndq2ugDPv3vp','C2v0q29VA2LL','nJaYoxLlrurQtG','z29gB3j3yxjK','CgfNzuXPC3q','D2fPDezVCKXVywrtDgf0zq','Bwf5yMvuAhjVDW','ChvZAa','y29UBMvJDfnOyxjLza','y2HLy2TLzfn0yxrLqNLezwzHDwX0','zw1PDezHA2vqB3b1Ca','AxnwAxnPyMXLqNLezwzHDwX0','zhjPDMvY','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','zMLSDgvY','mtaWmhfZv0v3wa','mtK3nJe1svDrEKvO','DxjS','y291BNrcEurLzMf1Bhq','B25bzNrLCKnSAwnR','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','ywjVDxq6yMXHBMS','nJGWmti0nKLxAhPwEq','ChjLC3m','lNbHz2u','BMfTzq','y2fSBhngB3i','mJe5odu2y09LwvjO','y29UDgv4Dhm','CgfNzxm','BMv3q29UDgv4Da','rhjPDMvYrxjYB3i','B3v0zxjive1m','C2nVCgu','Aw5WDxrwywX1zq','zxHPDezYyw1L','C2nYzwvUC2HVDevSzw1LBNq','D2fPDezVCLvYBa','Bg9JywXtDg9YywDLu3rHDgu','zxzHBhvHDgvpBKXVy2f0B3i','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','C2f2zvn0B3jHz2vtDgf0zq','zwXLBwvUDeHPBNrcEvjLzG','m0DPAe5jvq','mJK3ntvhCeLyEgS','ndjtr3njtKi','zgvMAw5LuhjVCgvYDhK','DhLWzq','y2fSBhm','zg91yMXLq2XPy2S','yMvOyxzPB3i','y291BNq','zgvSzxrL','z2v0tg9JywXtDg9YywDL','Dgv4DenVBNrLBNrcEurLzMf1Bhq','AxnwAxnPyMXL','BMv0D29YA0vUDhjPzxm','yxr0CMLIDxrLC0j5rgvMyxvSDa','rMfRzunVBNrLEhq','z290BW','y2XVC2u','y2XVC2vgywTLugfNzq','AxneAxnHyMXLzej5rgvMyxvSDa','rMfRzvbHz2u','Aw5UzxjuzxH0','lNbHz2uW','B3v0zxjiDg1SqNLszwy','Bgf1BMnOzwq','y2XPy2S','zxjYB3jpBK5LEhrby3rPB24','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','Cg9WDxbpBKnSAwnR','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','Bgf1BMnO','Aw5ZCgvJDevSzw1LBNq','zhjHz0fUzerYB3a','CMvJB3jK','D2fPDezVCG','zNjHBwvtDgfJAW','y2HLy2S','zNvUy3rPB24','CMvM','B25ozxDqywDL','zMfRzsb0AxrSzq','BMv3ugfNzuXPC3rLBMvYCW','C3vIC2nYAwjL','y3jLyxrLuMvJB3jKzxi','CMvJB3jKzxi','z29cywnR','y3r4','C2vSzwn0t3b0Aw9U','Aw5UzxjuzxH0qNLezwzHDwX0','iJ48l2rPDJ4','DxbSB2fKrMLSzq','z2v0qxr0CMLIDxrL','zxzHBhvHDgu','nJqXmZe2shrmDgLP','Ag92zxi','zxzHBhvHDgvszxn1Bhq','C2nYB2XSsw50B1zPzxC','Aw5PDgLHBfvYBa','Bwv0Ag9K','Dgv4DenVBNrLBNq','D2fPDezVCLrLEhq','C3bSAwnL','ywrK','C2v0qwn0AxzLugfNzq','C2nYzwvUC2HVDej5DgvZ'];_0x3f65=function(){return _0x126918;};return _0x3f65();}__name(subscribe,_0x562ca9(0x106));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x562ca9(0xd0));}},LocatorError=class extends UnotestError{static{__name(this,_0x562ca9(0x120));}};function createRecorder(){const _0x4586c2={_0x57d957:0xb8,_0x30f612:0xe1},_0x4422c9=_0x562ca9,_0x35f335=[];let _0x52b9ed=0x0;return{'push':__name(_0x21f22a=>_0x35f335[_0x4422c9(0xb8)]({..._0x21f22a,'seq':_0x52b9ed++}),_0x4422c9(_0x4586c2._0x57d957)),'calls':__name(()=>_0x35f335,_0x4422c9(_0x4586c2._0x30f612))};}__name(createRecorder,_0x562ca9(0x107));var FakePage=class{constructor(_0x15e21b,_0x98d4fa,_0x551e25,_0x248129){const _0x5bc653={_0x399fbd:0xe3},_0x5e46fb=_0x562ca9;this['recorder']=_0x15e21b,this[_0x5e46fb(_0x5bc653._0x399fbd)]=_0x98d4fa,this['scope']=_0x551e25,this['currentUrl']=_0x248129;}[_0x562ca9(0x108)];[_0x562ca9(0xe3)];[_0x562ca9(0xd2)];static{__name(this,_0x562ca9(0xf0));}[_0x562ca9(0xb0)];[_0x562ca9(0xc4)];[_0x562ca9(0xfd)](_0x22c45c,_0x334c19){const _0x3b657b={_0x2cf371:0xb8},_0xcc7ec1=_0x562ca9;this['recorder'][_0xcc7ec1(_0x3b657b._0x2cf371)]({'scope':this[_0xcc7ec1(0xd2)],'method':_0x22c45c,'args':_0x334c19});}[_0x562ca9(0xb7)](){const _0x5b5dfe=_0x562ca9;if(this[_0x5b5dfe(0xe3)][_0x5b5dfe(0xf6)]){const _0x23ae7b=this[_0x5b5dfe(0xe3)][_0x5b5dfe(0xf6)];this['behavior'][_0x5b5dfe(0xf6)]=void 0x0;throw _0x23ae7b;}}[_0x562ca9(0xc2)](){return this['currentUrl'];}async[_0x562ca9(0xad)](){const _0x233d31={_0x3548ad:0x104},_0x127117=_0x562ca9;return this[_0x127117(0xfd)](_0x127117(0xad),[]),_0x127117(_0x233d31._0x3548ad);}async[_0x562ca9(0xf5)](_0x390844,_0x3baf0e){const _0x465649={_0x54f47c:0xb7,_0x1f8698:0xc4},_0x1703a6=_0x562ca9;this[_0x1703a6(0xfd)](_0x1703a6(0xf5),[_0x390844,_0x3baf0e]),this[_0x1703a6(_0x465649._0x54f47c)](),this[_0x1703a6(_0x465649._0x1f8698)]?.();}async[_0x562ca9(0xe2)](_0x373caa,_0x55383b){const _0x40a84b={_0x34965f:0xfd,_0x2c0fd0:0xe2,_0x202535:0xb7},_0x2ea8ad=_0x562ca9;this[_0x2ea8ad(_0x40a84b._0x34965f)](_0x2ea8ad(_0x40a84b._0x2c0fd0),[_0x373caa,_0x55383b]),this[_0x2ea8ad(_0x40a84b._0x202535)]();}async[_0x562ca9(0xa3)](_0x337e1e,_0x4c4c5a,_0x28ebf9){const _0x22a579={_0x44b9f3:0xb7},_0x5943ab=_0x562ca9;this[_0x5943ab(0xfd)]('fill',[_0x337e1e,_0x4c4c5a,_0x28ebf9]),this[_0x5943ab(_0x22a579._0x44b9f3)]();}async[_0x562ca9(0xc8)](_0x3e7793,_0x47ac91,_0x4c0b1b){const _0x33fbf0={_0x5d8723:0xc8,_0x4ae42a:0xb7},_0x48c6b0=_0x562ca9;this[_0x48c6b0(0xfd)](_0x48c6b0(_0x33fbf0._0x5d8723),[_0x3e7793,_0x47ac91,_0x4c0b1b]),this[_0x48c6b0(_0x33fbf0._0x4ae42a)]();}async[_0x562ca9(0x100)](_0x436fa0,_0x2806b5){const _0x46f7c7={_0x3f317a:0x100},_0x379420=_0x562ca9;this[_0x379420(0xfd)](_0x379420(_0x46f7c7._0x3f317a),[_0x436fa0,_0x2806b5]),this['maybeThrow']();}async['uncheck'](_0x55c10b,_0x5764dd){const _0x486f60={_0x29d686:0xfd},_0x1f59b5=_0x562ca9;this[_0x1f59b5(_0x486f60._0x29d686)]('uncheck',[_0x55c10b,_0x5764dd]),this['maybeThrow']();}async[_0x562ca9(0x10b)](_0x21806b,_0x246266,_0x1662a5){const _0x3b619d={_0x920bec:0xfd},_0x173b8d=_0x562ca9;this[_0x173b8d(_0x3b619d._0x920bec)](_0x173b8d(0x10b),[_0x21806b,_0x246266,_0x1662a5]),this['maybeThrow']();}async[_0x562ca9(0x112)](_0x4c4f44,_0x186daf){const _0x40fd9c={_0x1da568:0xb7},_0x3dd960=_0x562ca9;this[_0x3dd960(0xfd)](_0x3dd960(0x112),[_0x4c4f44,_0x186daf]),this[_0x3dd960(_0x40fd9c._0x1da568)]();}async[_0x562ca9(0x114)](_0xf14588){const _0x2bbe3f={_0x4d2de8:0x114},_0x172909=_0x562ca9;this['record'](_0x172909(_0x2bbe3f._0x4d2de8),[_0xf14588]),this[_0x172909(0xb7)]();}async[_0x562ca9(0xfc)](_0x2c5b15,_0x44f689,_0x2035ce){const _0x39cbcf={_0x40bdcb:0xfc,_0x4cd41f:0xb7},_0x1b03d5=_0x562ca9;this[_0x1b03d5(0xfd)](_0x1b03d5(_0x39cbcf._0x40bdcb),[_0x2c5b15,_0x44f689,_0x2035ce]),this[_0x1b03d5(_0x39cbcf._0x4cd41f)]();}async[_0x562ca9(0x10e)](_0x5c122d,_0x4fa330){const _0x6e25c2={_0x3e0bd7:0xb7},_0x48e0ed=_0x562ca9;this[_0x48e0ed(0xfd)]('uploadFile',[_0x5c122d,_0x4fa330]),this[_0x48e0ed(_0x6e25c2._0x3e0bd7)]();}async[_0x562ca9(0xae)](_0x539307,_0x19b2ab){const _0x4fe12e={_0x5700ba:0xfd},_0x421ef4=_0x562ca9;this[_0x421ef4(_0x4fe12e._0x5700ba)](_0x421ef4(0xae),[_0x539307,_0x19b2ab]),this['maybeThrow']();}async[_0x562ca9(0xe4)](_0x1e20c2){const _0x4b992e={_0x158359:0xfd,_0x55f4b3:0xe3},_0x135320=_0x562ca9;return this[_0x135320(_0x4b992e._0x158359)](_0x135320(0xe4),[_0x1e20c2]),this[_0x135320(_0x4b992e._0x55f4b3)][_0x135320(0xc3)]??0x1;}async[_0x562ca9(0x117)](_0x1d1ec7){const _0x4feae4={_0x12ebda:0x117},_0x3816f1=_0x562ca9;return this[_0x3816f1(0xfd)](_0x3816f1(_0x4feae4._0x12ebda),[_0x1d1ec7]),this['behavior']['textContentByDefault']??'';}async[_0x562ca9(0xf1)](_0x5f52ef){const _0x4daa3b={_0x517fd3:0xe3,_0x46ecd1:0xe7},_0x3a5e2a=_0x562ca9;return this[_0x3a5e2a(0xfd)]('innerText',[_0x5f52ef]),this[_0x3a5e2a(0xe3)][_0x3a5e2a(0x10c)]??this[_0x3a5e2a(_0x4daa3b._0x517fd3)][_0x3a5e2a(_0x4daa3b._0x46ecd1)]??'';}async[_0x562ca9(0xd3)](_0x33c848){const _0x27017b={_0x41df2b:0xd3,_0x309abf:0xe3},_0x4129b1=_0x562ca9;return this[_0x4129b1(0xfd)](_0x4129b1(_0x27017b._0x41df2b),[_0x33c848]),this[_0x4129b1(_0x27017b._0x309abf)]['inputValueByDefault']??'';}async[_0x562ca9(0xaa)](_0x5b7139){const _0x3eade0={_0x14dddc:0xaa},_0x25160f=_0x562ca9;return this['record'](_0x25160f(_0x3eade0._0x14dddc),[_0x5b7139]),this[_0x25160f(0xe3)][_0x25160f(0xba)]??null;}async[_0x562ca9(0xe8)](_0x3afc2e){const _0x178960={_0x28aa6f:0xe8},_0x1857e1=_0x562ca9;return this['record'](_0x1857e1(_0x178960._0x28aa6f),[_0x3afc2e]),this[_0x1857e1(0xe3)][_0x1857e1(0xbc)]??!![];}async[_0x562ca9(0xab)](_0xaabeb6){const _0x2400c3={_0x29db0a:0xab,_0x5c9b8f:0xe3},_0x1a03ac=_0x562ca9;return this['record'](_0x1a03ac(_0x2400c3._0x29db0a),[_0xaabeb6]),this[_0x1a03ac(_0x2400c3._0x5c9b8f)][_0x1a03ac(0xef)]??![];}async[_0x562ca9(0x10f)](_0x4b2dc0,_0x48b0d1){const _0x2cface={_0x1234b2:0x10f,_0x4e3ecd:0xe3},_0x1fc93f=_0x562ca9;return this[_0x1fc93f(0xfd)](_0x1fc93f(_0x2cface._0x1234b2),[_0x4b2dc0,_0x48b0d1]),this[_0x1fc93f(_0x2cface._0x4e3ecd)][_0x1fc93f(0xea)]?.[_0x48b0d1]??null;}async[_0x562ca9(0xfe)](_0xfcff2b,_0x12c613){const _0x2e6e01=_0x562ca9;this[_0x2e6e01(0xfd)]('waitFor',[_0xfcff2b,_0x12c613]);}async[_0x562ca9(0xd6)](_0x2e5774,_0xb689e9){const _0x1ea473={_0x9a7a36:0xd6},_0x4e703f=_0x562ca9;this[_0x4e703f(0xfd)](_0x4e703f(_0x1ea473._0x9a7a36),[_0x2e5774,_0xb689e9]);}async[_0x562ca9(0x118)](_0x33e0c2,_0xa0a60a){const _0xa418bb=_0x562ca9;this['record'](_0xa418bb(0x118),[_0x33e0c2,_0xa0a60a]);}async[_0x562ca9(0xa5)](_0x5644d2){const _0x5e21c6=_0x562ca9;this['record'](_0x5e21c6(0xa5),[_0x5644d2]);}async[_0x562ca9(0xb6)](_0x29ddec,_0x59da14){const _0x337222={_0x515a0f:0xb6},_0x2db09b=_0x562ca9;this[_0x2db09b(0xfd)](_0x2db09b(_0x337222._0x515a0f),[_0x29ddec,_0x59da14]);}async[_0x562ca9(0xec)](_0x276922,_0x3d12ed){const _0x10a0fb={_0x1ef77a:0xec},_0x3d8aa4=_0x562ca9;this[_0x3d8aa4(0xfd)](_0x3d8aa4(_0x10a0fb._0x1ef77a),[_0x276922,_0x3d12ed]),this[_0x3d8aa4(0xb0)]=_0x276922;}async[_0x562ca9(0x9d)](_0x480ae7){const _0x4e4504=_0x562ca9;this[_0x4e4504(0xfd)](_0x4e4504(0x9d),[_0x480ae7]);}async[_0x562ca9(0x109)](_0x1013e3){const _0x18e17b={_0x19d930:0xfd},_0xee2d7=_0x562ca9;this[_0xee2d7(_0x18e17b._0x19d930)]('goBack',[_0x1013e3]);}async['goForward'](_0x49deaa){const _0x22c2c3={_0x3f46cd:0xfd},_0x196949=_0x562ca9;this[_0x196949(_0x22c2c3._0x3f46cd)](_0x196949(0xb4),[_0x49deaa]);}async[_0x562ca9(0x110)](_0x39485d){const _0x30580c={_0x5dbff3:0x113},_0x2b0d82=_0x562ca9;return this[_0x2b0d82(0xfd)](_0x2b0d82(0x110),[_0x39485d]),this['behavior'][_0x2b0d82(_0x30580c._0x5dbff3)];}async[_0x562ca9(0xd8)](_0x5db91c,_0x230f39){const _0x505335={_0x2417a5:0xfd,_0x2fe4b6:0xd8},_0x39e49a=_0x562ca9;return this[_0x39e49a(_0x505335._0x2417a5)](_0x39e49a(_0x505335._0x2fe4b6),[_0x5db91c,_0x230f39]),void 0x0;}async[_0x562ca9(0xfb)](_0x2a876a){const _0xed7884={_0x531dce:0xfd,_0x530a4a:0x102,_0x4490a0:0x102,_0xad541f:0xe3,_0x1f0463:0xdb},_0x4f07a3=_0x562ca9;this[_0x4f07a3(_0xed7884._0x531dce)](_0x4f07a3(0xfb),[_0x2a876a]);if(_0x2a876a['steps'][_0x4f07a3(0xa9)]!==0x1||_0x2a876a[_0x4f07a3(0x125)][0x0][_0x4f07a3(0xa0)]!==_0x4f07a3(_0xed7884._0x530a4a))return null;const _0xc1cde4=_0x2a876a[_0x4f07a3(0x125)][0x0][_0x4f07a3(_0xed7884._0x4490a0)],_0x5c8166=this[_0x4f07a3(_0xed7884._0xad541f)][_0x4f07a3(_0xed7884._0x1f0463)]?.[_0xc1cde4];return _0x5c8166??null;}async[_0x562ca9(0x11f)](_0x4ec762){const _0x13a51a={_0x2c1a2b:0x11c},_0x1b9a02=_0x562ca9;return this['record']('screenshot',[_0x4ec762]),this[_0x1b9a02(_0x13a51a._0x2c1a2b)](_0x4ec762?.[_0x1b9a02(0xe0)]);}async[_0x562ca9(0xd5)](_0x144429,_0x51d7bc){const _0x14ba39=_0x562ca9;return this[_0x14ba39(0xfd)]('screenshotElement',[_0x144429,_0x51d7bc]),this[_0x14ba39(0x11c)](_0x51d7bc?.[_0x14ba39(0xe0)]);}[_0x562ca9(0x11c)](_0xc37b8f){const _0x1406eb={_0xfa079c:0xe3},_0x130989=_0x562ca9,_0x4ce78d=this[_0x130989(_0x1406eb._0xfa079c)][_0x130989(0x11c)];if(_0x4ce78d===void 0x0)return Buffer['from']('fake-png');return typeof _0x4ce78d===_0x130989(0x101)?_0x4ce78d(_0xc37b8f):_0x4ce78d;}async[_0x562ca9(0xd1)](_0x4d3308){const _0x8f390e={_0xf4a3c3:0xfd,_0x2bb7a3:0xd1,_0x35bf71:0x125,_0xb083bc:0xa0,_0x21b0ad:0xa2},_0x128a03=_0x562ca9;this[_0x128a03(_0x8f390e._0xf4a3c3)](_0x128a03(_0x8f390e._0x2bb7a3),[_0x4d3308]);if(_0x4d3308[_0x128a03(_0x8f390e._0x35bf71)]['length']===0x1&&_0x4d3308[_0x128a03(0x125)][0x0][_0x128a03(_0x8f390e._0xb083bc)]===_0x128a03(0x102)){const _0x7d3ac4=_0x4d3308[_0x128a03(0x125)][0x0]['ref'];return this['behavior'][_0x128a03(0xf3)]?.[_0x7d3ac4]??_0x128a03(_0x8f390e._0x21b0ad)+_0x7d3ac4+_0x128a03(0x10d);}return'<div></div>';}},FakeContext=class{constructor(_0x439a96,_0x18f25b,_0x1271cd){const _0x13f89c={_0x387339:0xe3,_0x16d742:0xf2,_0x2c743e:0xc4},_0x290230={_0x2151d7:0xf8},_0x5b9fa3=_0x562ca9;this['recorder']=_0x439a96,this[_0x5b9fa3(_0x13f89c._0x387339)]=_0x18f25b,this['scope']=_0x1271cd;const _0x92b4ce=new FakePage(_0x439a96,_0x18f25b,_0x1271cd+_0x5b9fa3(_0x13f89c._0x16d742),_0x18f25b[_0x5b9fa3(0x115)]??_0x5b9fa3(0xc6));_0x18f25b[_0x5b9fa3(0xf8)]&&(_0x92b4ce[_0x5b9fa3(_0x13f89c._0x2c743e)]=()=>{const _0x4e983f=_0x5b9fa3;this['emitFakePopup'](_0x18f25b[_0x4e983f(_0x290230._0x2151d7)]);}),this['pageList']=[_0x92b4ce],this[_0x5b9fa3(0xd7)]={..._0x18f25b['localStorage']??{}},this[_0x5b9fa3(0x11d)]={..._0x18f25b[_0x5b9fa3(0x124)]??{}};}[_0x562ca9(0x108)];[_0x562ca9(0xe3)];['scope'];static{__name(this,_0x562ca9(0xeb));}[_0x562ca9(0xb5)];[_0x562ca9(0xa1)]=0x0;[_0x562ca9(0xff)]=[];[_0x562ca9(0xd7)];[_0x562ca9(0x11d)];[_0x562ca9(0x105)]=new Set();['record'](_0x374055,_0x3dc477){const _0x234ee5={_0x2bdae4:0x108,_0x49d330:0xb8,_0x4399ed:0xd2},_0x268b5c=_0x562ca9;this[_0x268b5c(_0x234ee5._0x2bdae4)][_0x268b5c(_0x234ee5._0x49d330)]({'scope':this[_0x268b5c(_0x234ee5._0x4399ed)],'method':_0x374055,'args':_0x3dc477});}[_0x562ca9(0xce)](){const _0x5355d9=_0x562ca9;return this[_0x5355d9(0xb5)];}[_0x562ca9(0xaf)](){const _0x56657c={_0x1cb9b7:0xd9},_0x324c1=_0x562ca9,_0xfc4254=this[_0x324c1(0xb5)][this[_0x324c1(0xa1)]];if(!_0xfc4254)throw new DriverError(_0x324c1(_0x56657c._0x1cb9b7),{'activeIdx':this[_0x324c1(0xa1)]});return _0xfc4254;}['consoleEntries'](){const _0x242e12={_0x45cf1d:0x122},_0x6ef77f=_0x562ca9;return this[_0x6ef77f(0xe3)][_0x6ef77f(_0x242e12._0x45cf1d)]??[];}['networkEntries'](){const _0x1f9a93={_0x1fc114:0xe9},_0x258a1b=_0x562ca9;return this['behavior'][_0x258a1b(_0x1f9a93._0x1fc114)]??[];}async[_0x562ca9(0x11b)](_0x20d49a){const _0x4bbf2f={_0x501140:0xfd,_0x4134e8:0xb5},_0x3dc724=_0x562ca9;this[_0x3dc724(_0x4bbf2f._0x501140)]('setActivePage',[_0x20d49a]);if(_0x20d49a<0x0||_0x20d49a>=this[_0x3dc724(_0x4bbf2f._0x4134e8)][_0x3dc724(0xa9)])throw new DriverError(_0x3dc724(0xc5),{'index':_0x20d49a,'available':this['pageList'][_0x3dc724(0xa9)]});this['activeIdx']=_0x20d49a,this[_0x3dc724(0xff)][_0x3dc724(0xa9)]=0x0;}[_0x562ca9(0x103)](_0x515319){const _0xebf6a0=_0x562ca9;return subscribe(this[_0xebf6a0(0x105)],_0x515319);}[_0x562ca9(0xbb)](_0x4de472){const _0x10f6ae={_0x5f33e9:0xc9,_0x27eb8b:0xe3},_0x16e172=_0x562ca9,_0x2b6187=this[_0x16e172(0xd2)]+_0x16e172(_0x10f6ae._0x5f33e9)+this[_0x16e172(0xb5)][_0x16e172(0xa9)],_0x29339b=new FakePage(this['recorder'],this[_0x16e172(_0x10f6ae._0x27eb8b)],_0x2b6187,_0x4de472);this[_0x16e172(0xb5)][_0x16e172(0xb8)](_0x29339b);const _0x3ab528=this['pageList'][_0x16e172(0xa9)]-0x1;for(const _0x130219 of this[_0x16e172(0x105)]){try{_0x130219({'index':_0x3ab528,'url':_0x4de472});}catch{}}return _0x3ab528;}[_0x562ca9(0xee)](_0x4878e5){const _0x76cc45={_0x4961bd:0xa9,_0x342f69:0xc5,_0x22a57d:0xb5,_0x59032a:0xb5,_0x23e7c9:0x119},_0x5159c3=_0x562ca9;if(_0x4878e5<0x0||_0x4878e5>=this[_0x5159c3(0xb5)][_0x5159c3(_0x76cc45._0x4961bd)])throw new DriverError(_0x5159c3(_0x76cc45._0x342f69),{'index':_0x4878e5,'available':this[_0x5159c3(_0x76cc45._0x22a57d)][_0x5159c3(0xa9)]});this[_0x5159c3(_0x76cc45._0x59032a)][_0x5159c3(_0x76cc45._0x23e7c9)](_0x4878e5,0x1);}async[_0x562ca9(0xa8)](_0x13bfad){const _0x5f298a={_0x204cae:0xfd,_0x57c483:0xa8,_0x2e267d:0x125,_0x3c2a46:0xa9,_0x1e7585:0xff},_0x3e9585=_0x562ca9;this[_0x3e9585(_0x5f298a._0x204cae)](_0x3e9585(_0x5f298a._0x57c483),[_0x13bfad]);if(!_0x13bfad[_0x3e9585(_0x5f298a._0x2e267d)][_0x3e9585(_0x5f298a._0x3c2a46)])throw new LocatorError(_0x3e9585(0x9f),{'locator':_0x13bfad});this[_0x3e9585(_0x5f298a._0x1e7585)]['push'](_0x13bfad);}async[_0x562ca9(0xd4)](){const _0x5c8cb6={_0x183d8c:0xfd,_0x328bb6:0xbe,_0x545745:0x121},_0x3200dc=_0x562ca9;this[_0x3200dc(_0x5c8cb6._0x183d8c)](_0x3200dc(0xd4),[]);if(this['frameStack'][_0x3200dc(0xa9)]===0x0)throw new DriverError(_0x3200dc(_0x5c8cb6._0x328bb6),{});this[_0x3200dc(0xff)][_0x3200dc(_0x5c8cb6._0x545745)]();}async[_0x562ca9(0xac)](_0x36cf3d,_0x5498cd){const _0x142387={_0x17722b:0xac},_0x542c3a=_0x562ca9;this[_0x542c3a(0xfd)](_0x542c3a(_0x142387._0x17722b),[_0x36cf3d,_0x5498cd]),this[_0x542c3a(0xd7)][_0x36cf3d]=_0x5498cd;}async[_0x562ca9(0xe6)](_0x294e6f){const _0x20d151={_0x50967a:0xe6,_0xc2755:0xd7},_0xe3a234=_0x562ca9;return this[_0xe3a234(0xfd)](_0xe3a234(_0x20d151._0x50967a),[_0x294e6f]),this[_0xe3a234(_0x20d151._0xc2755)][_0x294e6f]??null;}async[_0x562ca9(0xb2)](_0x463a14,_0x2086a3,_0x1df3ca){const _0x4f5ee0={_0xe2d51f:0x11d},_0x8da4b4=_0x562ca9;this['record'](_0x8da4b4(0xb2),[_0x463a14,_0x2086a3,_0x1df3ca]),this[_0x8da4b4(_0x4f5ee0._0xe2d51f)][_0x463a14]=_0x2086a3;}async['getCookie'](_0x29020e){const _0x2eeba0=_0x562ca9;return this['record'](_0x2eeba0(0xa4),[_0x29020e]),this['cookieState'][_0x29020e]??null;}async[_0x562ca9(0xda)](_0x7ecb21){const _0x5322ce=_0x562ca9;this[_0x5322ce(0xfd)]('saveStorageState',[_0x7ecb21]);}async[_0x562ca9(0x110)](_0x4790ba){const _0x79be34=_0x562ca9;return this[_0x79be34(0xfd)](_0x79be34(0x110),[_0x4790ba]),void 0x0;}async[_0x562ca9(0xed)](){const _0xff1f88={_0x25abf2:0xfd},_0x1426c9=_0x562ca9;this[_0x1426c9(_0xff1f88._0x25abf2)]('close',[]);}['frameDepth'](){const _0x31134c=_0x562ca9;return this[_0x31134c(0xff)]['length'];}},FakeWebDriver=class{constructor(_0x435e32={}){const _0x16d750={_0x1fc109:0x108},_0x11ba80=_0x562ca9;this['behavior']=_0x435e32,this[_0x11ba80(_0x16d750._0x1fc109)]=createRecorder();}[_0x562ca9(0xe3)];static{__name(this,_0x562ca9(0x123));}['launched']=![];[_0x562ca9(0x108)];[_0x562ca9(0xcd)]=[];async[_0x562ca9(0xfa)](_0x10dfae){const _0x137cc0=_0x562ca9;this[_0x137cc0(0x108)][_0x137cc0(0xb8)]({'scope':_0x137cc0(0xbd),'method':'launch','args':[_0x10dfae]}),this[_0x137cc0(0xf4)]=!![];}async['newContext'](_0xf71149){const _0x573e34={_0x59484a:0xb8,_0x274b59:0xcf,_0x1e55ec:0x108,_0x2f1257:0x10a,_0x4bd0ff:0xcd},_0x4683eb=_0x562ca9;this[_0x4683eb(0x108)][_0x4683eb(_0x573e34._0x59484a)]({'scope':'driver','method':_0x4683eb(_0x573e34._0x274b59),'args':[_0xf71149]});if(!this[_0x4683eb(0xf4)])throw new DriverError(_0x4683eb(0xf9),{});const _0x1d316b=new FakeContext(this[_0x4683eb(_0x573e34._0x1e55ec)],this['behavior'],_0x4683eb(_0x573e34._0x2f1257)+this[_0x4683eb(0xcd)][_0x4683eb(0xa9)]);return this[_0x4683eb(_0x573e34._0x4bd0ff)]['push'](_0x1d316b),_0x1d316b;}async[_0x562ca9(0xed)](){const _0x5cab2d={_0xec489f:0x108,_0x20458d:0xbd,_0x99dfd2:0xed,_0x1a8fb3:0xf4},_0x498e49=_0x562ca9;this[_0x498e49(_0x5cab2d._0xec489f)][_0x498e49(0xb8)]({'scope':_0x498e49(_0x5cab2d._0x20458d),'method':_0x498e49(_0x5cab2d._0x99dfd2),'args':[]}),this[_0x498e49(_0x5cab2d._0x1a8fb3)]=![];}[_0x562ca9(0x9e)](){return void 0x0;}async[_0x562ca9(0xb9)](){const _0x1602bc=_0x562ca9;throw new DriverError(_0x1602bc(0xf7),{});}['attachExisting'](_0x431c9d){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x562ca9(0xe1)](){const _0x39213f={_0x677f36:0x108},_0x2e997d=_0x562ca9;return this[_0x2e997d(_0x39213f._0x677f36)][_0x2e997d(0xe1)]();}[_0x562ca9(0xcb)](_0x31054d){const _0x201644={_0x4a1cd0:0x108,_0x4d4747:0xbf},_0x1b49fb=_0x562ca9;return this[_0x1b49fb(_0x201644._0x4a1cd0)][_0x1b49fb(0xe1)]()[_0x1b49fb(_0x201644._0x4d4747)](_0x2d771e=>_0x2d771e[_0x1b49fb(0x116)]===_0x31054d);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as LocatorValue, W as WebDriver, D as DriverContext, e as DriverPage } from '../interfaces-
|
|
2
|
-
export { k as LocatorStep, l as appendStep, m as describeLocator, n as isLocatorValue, r as rootedAt } from '../interfaces-
|
|
1
|
+
import { j as LocatorValue, W as WebDriver, D as DriverContext, e as DriverPage } from '../interfaces-ClW2IRgY.js';
|
|
2
|
+
export { k as LocatorStep, l as appendStep, m as describeLocator, n as isLocatorValue, r as rootedAt } from '../interfaces-ClW2IRgY.js';
|
|
3
3
|
import { Matcher, RegexLiteral, JudgeRequest, JudgeVerdict, SoftFailureRecord } from '@unotest/protocol';
|
|
4
4
|
import { ExecutionWalker, ExecutionEvent, RunResult, RunOptions } from '@unotest/dsl/executor';
|
|
5
5
|
export { ExecutionError, ExecutionEvent, RunOptions, RunResult } from '@unotest/dsl/executor';
|
|
@@ -307,8 +307,14 @@ interface ActiveRuntime {
|
|
|
307
307
|
*/
|
|
308
308
|
lastFailure: {
|
|
309
309
|
node: unknown;
|
|
310
|
+
/** Project-relative file the failing statement lives in — a helper's,
|
|
311
|
+
* when the failure happened inside one. */
|
|
312
|
+
file: string;
|
|
310
313
|
line: number;
|
|
311
314
|
col: number;
|
|
315
|
+
/** User functions the failing statement was reached through,
|
|
316
|
+
* outermost first. */
|
|
317
|
+
callStack?: readonly string[];
|
|
312
318
|
/** Label of the enclosing `step("…")` block, when the failing
|
|
313
319
|
* statement ran inside one — the human-readable intent for reports. */
|
|
314
320
|
stepLabel?: string;
|