@unotest/web 0.14.0 → 0.16.0
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/.claude/skills/write-e2e-test/SKILL.md +16 -1
- package/.claude/skills/write-e2e-test-ground/SKILL.md +16 -1
- package/CHANGELOG.md +128 -0
- package/dist/config/schema.d.ts +12 -12
- 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 +2 -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 +1 -1
- package/dist/inspection/page-inject.js +5 -0
- package/dist/{interfaces-BaVF0jV-.d.ts → interfaces-elRn0llQ.d.ts} +18 -1
- 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/dsl-reference.md +89 -0
- package/package.json +7 -7
|
@@ -16,13 +16,28 @@ run is unverified — selectors may be invented, transitions may race,
|
|
|
16
16
|
the scenario may not actually pass. Producing a test you can't show
|
|
17
17
|
green is the failure case.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Three modes, picked at Phase 1:
|
|
20
20
|
|
|
21
21
|
- **Interactive (preferred)** — phases 1–5 below. The MCP server is up
|
|
22
22
|
(`new_context`, `get_page_snapshot`, `explore_start`, `explore_step`,
|
|
23
23
|
`run_test`, …). You drive the browser live, record the flow, generate
|
|
24
24
|
the DSL, save it, run it, iterate until green.
|
|
25
25
|
|
|
26
|
+
- **Compose-from-helpers** — the project already has a helper layer
|
|
27
|
+
(`unotest/e2e/_helpers/`) whose `flow_*` functions cover every step of
|
|
28
|
+
the scenario, so no new locator is needed. Skip the browser: assemble
|
|
29
|
+
the scenario from those helpers, then **verify with a CLI run**
|
|
30
|
+
(`npx @unotest/web e2e <feature>/<name>`) and iterate until green.
|
|
31
|
+
Conditions, all of them:
|
|
32
|
+
- every interaction maps to an existing helper — the moment you need a
|
|
33
|
+
NEW locator, switch to Interactive; guessing a selector from source
|
|
34
|
+
is what the live app is for;
|
|
35
|
+
- the CLI run is not optional. This mode trades browser recording for
|
|
36
|
+
a real run, not for no verification at all.
|
|
37
|
+
|
|
38
|
+
For a project with a mature helper layer this is the ordinary mode,
|
|
39
|
+
not an exception — most days add scenarios, not selectors.
|
|
40
|
+
|
|
26
41
|
- **Draft-only (fallback)** — if no MCP / no working `explore_start`,
|
|
27
42
|
write the file from the description the user gave you, mark it as
|
|
28
43
|
unverified in your final reply ("⚠ unverified — no live browser —
|
|
@@ -16,13 +16,28 @@ run is unverified — selectors may be invented, transitions may race,
|
|
|
16
16
|
the scenario may not actually pass. Producing a test you can't show
|
|
17
17
|
green is the failure case.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Three modes, picked at Phase 1:
|
|
20
20
|
|
|
21
21
|
- **Interactive (preferred)** — phases 1–5 below. The MCP server is up
|
|
22
22
|
(`new_context`, `ground_element`, `explore_start`, `explore_step`,
|
|
23
23
|
`run_test`, …). You drive the browser live, record the flow, generate
|
|
24
24
|
the DSL, save it, run it, iterate until green.
|
|
25
25
|
|
|
26
|
+
- **Compose-from-helpers** — the project already has a helper layer
|
|
27
|
+
(`unotest/e2e/_helpers/`) whose `flow_*` functions cover every step of
|
|
28
|
+
the scenario, so no new locator is needed. Skip the browser: assemble
|
|
29
|
+
the scenario from those helpers, then **verify with a CLI run**
|
|
30
|
+
(`npx @unotest/web e2e <feature>/<name>`) and iterate until green.
|
|
31
|
+
Conditions, all of them:
|
|
32
|
+
- every interaction maps to an existing helper — the moment you need a
|
|
33
|
+
NEW locator, switch to Interactive; guessing a selector from source
|
|
34
|
+
is what the live app is for;
|
|
35
|
+
- the CLI run is not optional. This mode trades browser recording for
|
|
36
|
+
a real run, not for no verification at all.
|
|
37
|
+
|
|
38
|
+
For a project with a mature helper layer this is the ordinary mode,
|
|
39
|
+
not an exception — most days add scenarios, not selectors.
|
|
40
|
+
|
|
26
41
|
- **Draft-only (fallback)** — if no MCP / no working `explore_start`,
|
|
27
42
|
write the file from the description the user gave you, mark it as
|
|
28
43
|
unverified in your final reply ("⚠ unverified — no live browser —
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,133 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.16.0] - 2026-08-19
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bf92e6f: File oracles as first-class citizens, plus an interaction-state wait
|
|
8
|
+
(bot-service feedback, round 4).
|
|
9
|
+
|
|
10
|
+
A background process that speaks by appending JSONL was only half
|
|
11
|
+
supported: `waitForFile` matches a substring against the WHOLE file, so a
|
|
12
|
+
multi-key event filter was inexpressible — JSON key order is not
|
|
13
|
+
guaranteed, and `"userId":"x","isBot":true` breaks the first time the
|
|
14
|
+
writer reorders its fields. Every positive wait therefore went through a
|
|
15
|
+
hand-written node script. Four functions close that:
|
|
16
|
+
|
|
17
|
+
- `waitForJsonLine(path, filter, {timeoutMs})` → the matching line,
|
|
18
|
+
parsed. Strict equality per key, dot paths (`'user.id'`) for nesting,
|
|
19
|
+
unparsable lines skipped (a file caught mid-append is normal). The
|
|
20
|
+
timeout says how many lines were read, how many parsed, and which one
|
|
21
|
+
matched the most keys.
|
|
22
|
+
- `assertNoJsonLine(path, filter, {withinMs})` — the negative twin.
|
|
23
|
+
- `waitForFileCount(path, pattern, count, {timeoutMs})` → the count.
|
|
24
|
+
Waits for **at least** `count` matching lines: between two polls a
|
|
25
|
+
writer can append more than one, and a strict wait would then never
|
|
26
|
+
see its target. `pattern` is a substring, a regex, or the same key
|
|
27
|
+
filter.
|
|
28
|
+
- `assertFileCount(path, pattern, count)` — snapshot, strict equality,
|
|
29
|
+
for "exactly N happened" after the window has been awaited.
|
|
30
|
+
|
|
31
|
+
Counting is per LINE (`grep -c` semantics), not per occurrence.
|
|
32
|
+
|
|
33
|
+
`waitFor(loc, {state})` also accepts `'enabled'` / `'disabled'` now,
|
|
34
|
+
alongside the DOM-presence states. It polls the same probe `isEnabled` /
|
|
35
|
+
`isDisabled` use, so `aria-disabled` widgets and `<fieldset disabled>`
|
|
36
|
+
inheritance count — Playwright's own wait knows neither. This replaces
|
|
37
|
+
the `for` loop around `pause()` that a widget which unlocks on a timeout
|
|
38
|
+
otherwise forces.
|
|
39
|
+
|
|
40
|
+
Two smaller things that came with them:
|
|
41
|
+
|
|
42
|
+
- Options objects on the file oracles reject unknown keys. A misspelled
|
|
43
|
+
`{timeout: 5000}` used to be ignored and the step silently waited the
|
|
44
|
+
default instead.
|
|
45
|
+
- `UNOTEST_DEBUG=1` gained a `step` layer: every executed statement is
|
|
46
|
+
bracketed with `enter`/`exit` (file, line, step label, ms, ok) and
|
|
47
|
+
every nested `driver` / `resolver` event carries the step it ran
|
|
48
|
+
under. A CLI failure can now be diagnosed by reading the log as
|
|
49
|
+
step → driver call → answer, instead of matching timestamps by eye.
|
|
50
|
+
|
|
51
|
+
- 225e762: `unotest-web viewer` learns `UNOTEST_VIEWER_HOST` / `UNOTEST_VIEWER_PORT`.
|
|
52
|
+
|
|
53
|
+
By default the viewer still binds `localhost` plus a free port the OS
|
|
54
|
+
picks. Set the variables for headless / containerized setups where a
|
|
55
|
+
reverse proxy reaches the viewer at a fixed address (e.g. `viewer:4000`
|
|
56
|
+
inside a compose stack). An invalid port fails fast with an actionable
|
|
57
|
+
message instead of silently falling back. `UNOTEST_VIEWER_NO_OPEN=1`
|
|
58
|
+
still skips opening the browser.
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- 4fc5e5a: `UnotestError` — the typed-error base class — now lives in
|
|
63
|
+
`@unotest/core` and is part of its public API. `@unotest/web` re-exports
|
|
64
|
+
it unchanged, so existing imports and `instanceof` chains keep working.
|
|
65
|
+
Motivation: other packages need the same base without copying it, and a
|
|
66
|
+
published package is the only home they may all import.
|
|
67
|
+
- bf92e6f: `Unknown function: indexOf` now says what to write instead.
|
|
68
|
+
|
|
69
|
+
The DSL has no string or array methods, so a JS habit (`out.stdout.indexOf(x)`,
|
|
70
|
+
`s.toLowerCase()`, `JSON.parse(line)`) failed with the same bare message as a
|
|
71
|
+
typo in a helper name — indistinguishable, and the reason bot-service asked for
|
|
72
|
+
a linter hint back in 0.10.0.
|
|
73
|
+
|
|
74
|
+
The engine stays vocab-agnostic: `FunctionContractRegistry` gained an optional
|
|
75
|
+
`suggestForUnknown(name)` hook, and the web vocab supplies the table
|
|
76
|
+
(`indexOf` → `textContains`, `concat` → `textJoin`, `JSON.parse` →
|
|
77
|
+
`waitForJsonLine`, `Date.now` → `nowMs`, and so on). A registry without the
|
|
78
|
+
hook — or a name that is genuinely just misspelled — keeps the old message
|
|
79
|
+
unchanged.
|
|
80
|
+
|
|
81
|
+
- Updated dependencies [4fc5e5a]
|
|
82
|
+
- Updated dependencies [bf92e6f]
|
|
83
|
+
- Updated dependencies [1327a52]
|
|
84
|
+
- @unotest/core@0.16.0
|
|
85
|
+
- @unotest/dsl@0.16.0
|
|
86
|
+
- @unotest/viewer@0.16.0
|
|
87
|
+
- @unotest/grounder-client@0.16.0
|
|
88
|
+
- @unotest/protocol@0.16.0
|
|
89
|
+
|
|
90
|
+
## [0.15.0] - 2026-08-17
|
|
91
|
+
|
|
92
|
+
### Minor Changes
|
|
93
|
+
|
|
94
|
+
- f73e61c: Report collection runs scenario by scenario. `collection <name>` used to
|
|
95
|
+
print a single line — `pass=21, fail=1` — which told you a scenario
|
|
96
|
+
failed but never which one, and the child processes' stdout was piped
|
|
97
|
+
and then dropped on the floor, so nothing else survived either. A CI
|
|
98
|
+
job that went red was undiagnosable without downloading the run
|
|
99
|
+
directory.
|
|
100
|
+
|
|
101
|
+
Each scenario now gets a start line and a result line; anything that
|
|
102
|
+
doesn't pass also gets its own output quoted (last 16 KiB, a dropped
|
|
103
|
+
head is marked) plus the path to its run directory. Failures go to
|
|
104
|
+
stderr, progress to stdout.
|
|
105
|
+
|
|
106
|
+
Draining those pipes also removes a hang that was waiting to happen: an
|
|
107
|
+
unread pipe blocks the child once the OS buffer fills.
|
|
108
|
+
|
|
109
|
+
Rendering sits behind a `CollectionReporter` seam — the orchestrator
|
|
110
|
+
still only emits `collection-run:*` events.
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- 9a36aa1: The examples mirror now tops up `unotest/.env` and `unotest/.secrets` with keys
|
|
115
|
+
a release added, instead of skipping the files because they already exist. Your
|
|
116
|
+
values are never touched — only missing keys are appended.
|
|
117
|
+
|
|
118
|
+
The old behaviour broke every upgrade that introduced a variable: `.env.example`
|
|
119
|
+
grew the key, `.env` stayed as it was, and the run died with
|
|
120
|
+
`external variable "CATALOG_SEED" not found`. The workaround was to delete
|
|
121
|
+
`unotest/.env` by hand — on the runner, and for anyone who forked the examples.
|
|
122
|
+
|
|
123
|
+
- Updated dependencies [d2161a9]
|
|
124
|
+
- Updated dependencies [32692b4]
|
|
125
|
+
- @unotest/viewer@0.15.0
|
|
126
|
+
- @unotest/core@0.15.0
|
|
127
|
+
- @unotest/dsl@0.15.0
|
|
128
|
+
- @unotest/grounder-client@0.15.0
|
|
129
|
+
- @unotest/protocol@0.15.0
|
|
130
|
+
|
|
3
131
|
## [0.14.0] - 2026-08-16
|
|
4
132
|
|
|
5
133
|
### Minor Changes
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -172,15 +172,15 @@ declare const WebServerConfigSchema: z.ZodObject<{
|
|
|
172
172
|
/** How long to wait for the URL to come up after spawning. */
|
|
173
173
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
url: string;
|
|
176
|
-
timeoutMs: number;
|
|
177
175
|
command: string;
|
|
176
|
+
url: string;
|
|
178
177
|
reuseExistingServer: boolean;
|
|
178
|
+
timeoutMs: number;
|
|
179
179
|
}, {
|
|
180
|
-
url: string;
|
|
181
180
|
command: string;
|
|
182
|
-
|
|
181
|
+
url: string;
|
|
183
182
|
reuseExistingServer?: boolean | undefined;
|
|
183
|
+
timeoutMs?: number | undefined;
|
|
184
184
|
}>;
|
|
185
185
|
type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
|
|
186
186
|
declare const UnotestConfigSchema: z.ZodObject<{
|
|
@@ -206,15 +206,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
206
206
|
/** How long to wait for the URL to come up after spawning. */
|
|
207
207
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
208
208
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
url: string;
|
|
210
|
-
timeoutMs: number;
|
|
211
209
|
command: string;
|
|
210
|
+
url: string;
|
|
212
211
|
reuseExistingServer: boolean;
|
|
212
|
+
timeoutMs: number;
|
|
213
213
|
}, {
|
|
214
|
-
url: string;
|
|
215
214
|
command: string;
|
|
216
|
-
|
|
215
|
+
url: string;
|
|
217
216
|
reuseExistingServer?: boolean | undefined;
|
|
217
|
+
timeoutMs?: number | undefined;
|
|
218
218
|
}>>;
|
|
219
219
|
browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
|
|
220
220
|
channel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodNull]>>;
|
|
@@ -413,10 +413,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
413
413
|
};
|
|
414
414
|
baseUrl?: string | undefined;
|
|
415
415
|
webServer?: {
|
|
416
|
-
url: string;
|
|
417
|
-
timeoutMs: number;
|
|
418
416
|
command: string;
|
|
417
|
+
url: string;
|
|
419
418
|
reuseExistingServer: boolean;
|
|
419
|
+
timeoutMs: number;
|
|
420
420
|
} | undefined;
|
|
421
421
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
422
422
|
storageState?: string | undefined;
|
|
@@ -465,10 +465,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
465
465
|
};
|
|
466
466
|
baseUrl?: string | undefined;
|
|
467
467
|
webServer?: {
|
|
468
|
-
url: string;
|
|
469
468
|
command: string;
|
|
470
|
-
|
|
469
|
+
url: string;
|
|
471
470
|
reuseExistingServer?: boolean | undefined;
|
|
471
|
+
timeoutMs?: number | undefined;
|
|
472
472
|
} | undefined;
|
|
473
473
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
474
474
|
storageState?: string | undefined;
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x25ca(_0x5353b9,_0x1f6c9d){_0x5353b9=_0x5353b9-0x147;var _0xbe4e5=_0xbe4e();var _0x25caf0=_0xbe4e5[_0x5353b9];if(_0x25ca['rElNEg']===undefined){var _0x5d4799=function(_0x55c045){var _0x2af509='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5190c2='',_0x54752f='';for(var _0x50d5b0=0x0,_0x29cde1,_0x252481,_0x256172=0x0;_0x252481=_0x55c045['charAt'](_0x256172++);~_0x252481&&(_0x29cde1=_0x50d5b0%0x4?_0x29cde1*0x40+_0x252481:_0x252481,_0x50d5b0++%0x4)?_0x5190c2+=String['fromCharCode'](0xff&_0x29cde1>>(-0x2*_0x50d5b0&0x6)):0x0){_0x252481=_0x2af509['indexOf'](_0x252481);}for(var _0xd3ba27=0x0,_0x42b737=_0x5190c2['length'];_0xd3ba27<_0x42b737;_0xd3ba27++){_0x54752f+='%'+('00'+_0x5190c2['charCodeAt'](_0xd3ba27)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54752f);};_0x25ca['eaulJZ']=_0x5d4799,_0x25ca['WCVYvx']={},_0x25ca['rElNEg']=!![];}var _0x135381=_0xbe4e5[0x0],_0x4a48df=_0x5353b9+_0x135381,_0x4b282e=_0x25ca['WCVYvx'][_0x4a48df];return!_0x4b282e?(_0x25caf0=_0x25ca['eaulJZ'](_0x25caf0),_0x25ca['WCVYvx'][_0x4a48df]=_0x25caf0):_0x25caf0=_0x4b282e,_0x25caf0;}var _0xe0488=_0x25ca;function _0xbe4e(){var _0x4633d7=['y2HYB21LlwjLDge','zxjYB3i','yM9VBgvHBG','zMLYzwzVEa','B2zM','Dw5PB24','DMfSAwrHDg9YoMzVCI1ZAgfWzq','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','DMfSAwrHDg9YoMXPC3qTyxjN','DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoNn0zxaTC2HHCgu','nde0Ee9jtxvQ','D2fYBG','y2HYB21PDw0','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','mtm0mtq1nuzWtfzqAW','BgLUDdPTDxn0ywnOzs1PBI1KC2W','mtKYmZCZmfHoyxnODW','zgvMyxvSDa','BwLU','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','yxjYyxK','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','DhjHBNnPzw50','mJqXodu1mg5orLHnEq','mJe4nJe2BNjpruLH','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMfYAxr5','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','ywnJzxb0','Cg9ZAxrPDMu','BNvTyMvY','mZiYmde0s01Xt2zs','zw51Bq','y3jHC2G','mtCWuw51r3r6','Aw50','BgLUDdPWyxvZzs1LEhbSAwnPDa','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','BxnLzgDL','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','C3rYAw5N','BwfUDwfS','BgLUDdPYzwDLEc1PBNzHBgLK','y2HYB21L','zgLZBwLZCW','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdPZy2vUyxjPBY1PBI1YB290','C3rKAw8','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DxjS','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','BgLUDdPLy2HVlwfZC2vYDa','B3b0Aw9UywW','mtiXmZfQA2j5C0K','Dw5VDgvZDc9LmMu','B2jQzwn0','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','mZu2odCZt1zRD2XK','DMfSAwrHDg9YoMfYzY1RAw5K','ohLbAfLABG','BgL0zxjHBa','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mtmWmLrzqwXLCW'];_0xbe4e=function(){return _0x4633d7;};return _0xbe4e();}(function(_0x25e889,_0x1ec6d5){var _0x334f81={_0x38317e:0x156,_0x50e8af:0x15f,_0x4e0a12:0x160,_0x417123:0x152,_0x47ef3f:0x16a},_0x40edff=_0x25ca,_0x55629c=_0x25e889();while(!![]){try{var _0x379ee0=parseInt(_0x40edff(_0x334f81._0x38317e))/0x1+parseInt(_0x40edff(_0x334f81._0x50e8af))/0x2+parseInt(_0x40edff(0x167))/0x3*(-parseInt(_0x40edff(0x184))/0x4)+-parseInt(_0x40edff(0x158))/0x5+-parseInt(_0x40edff(0x187))/0x6*(parseInt(_0x40edff(0x17e))/0x7)+-parseInt(_0x40edff(_0x334f81._0x4e0a12))/0x8*(parseInt(_0x40edff(_0x334f81._0x417123))/0x9)+-parseInt(_0x40edff(_0x334f81._0x47ef3f))/0xa*(-parseInt(_0x40edff(0x182))/0xb);if(_0x379ee0===_0x1ec6d5)break;else _0x55629c['push'](_0x55629c['shift']());}catch(_0x58362c){_0x55629c['push'](_0x55629c['shift']());}}}(_0xbe4e,0xd4568));import{z}from'zod';var BrowserSchema=z[_0xe0488(0x168)]([_0xe0488(0x154),_0xe0488(0x14a),'webkit']),BrowserChannelSchema=z[_0xe0488(0x14c)]([z[_0xe0488(0x185)](_0xe0488(0x173)),z['literal'](_0xe0488(0x16e)),z[_0xe0488(0x185)](_0xe0488(0x147)),z['null']()])[_0xe0488(0x17d)](),ViewportSchema=z['object']({'width':z['number']()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'height':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)]()}),RetryReasonSchema=z[_0xe0488(0x168)]([_0xe0488(0x15e),'network',_0xe0488(0x169)]),RetryConfigSchema=z['object']({'count':z[_0xe0488(0x166)]()['int']()[_0xe0488(0x15a)](0x0)['max'](0xa),'on':z[_0xe0488(0x15c)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0xe0488(0x180)]({'tier1':z[_0xe0488(0x185)](!![])[_0xe0488(0x159)](!![]),'tier2':z[_0xe0488(0x149)](),'tier3':z[_0xe0488(0x180)]({'network':z[_0xe0488(0x149)](),'video':z[_0xe0488(0x149)]()}),'retention':z[_0xe0488(0x180)]({'runs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'days':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()['positive']()}),'storageDir':z['string']()['min'](0x1)}),DialogPolicySchema=z[_0xe0488(0x168)]([_0xe0488(0x164),_0xe0488(0x174),_0xe0488(0x171)]),LinterRuleIdSchema=z[_0xe0488(0x168)](['lint:deep-css','lint:xpath',_0xe0488(0x16d),_0xe0488(0x16c),_0xe0488(0x15d),_0xe0488(0x163),_0xe0488(0x176),_0xe0488(0x157),_0xe0488(0x178),_0xe0488(0x172),_0xe0488(0x17c),_0xe0488(0x16f),_0xe0488(0x175),_0xe0488(0x162),_0xe0488(0x183),_0xe0488(0x186),_0xe0488(0x151),'validator:meta-shape',_0xe0488(0x15b),_0xe0488(0x14d),'validator:if-shape',_0xe0488(0x150),_0xe0488(0x17b),_0xe0488(0x155),_0xe0488(0x161),_0xe0488(0x179),_0xe0488(0x14f),_0xe0488(0x14e)]),LinterSeveritySchema=z[_0xe0488(0x168)]([_0xe0488(0x14b),_0xe0488(0x153),'error']),LinterConfigSchema=z[_0xe0488(0x180)]({'enabled':z[_0xe0488(0x149)](),'rules':z['record'](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z[_0xe0488(0x180)]({'transport':z[_0xe0488(0x185)](_0xe0488(0x177))}),SandboxConfigSchema=z[_0xe0488(0x180)]({'shellCwd':z[_0xe0488(0x170)]()[_0xe0488(0x17d)](),'shellTimeoutMs':z['number']()[_0xe0488(0x16b)]()[_0xe0488(0x165)]()['optional'](),'exportSecrets':z['array'](z[_0xe0488(0x170)]())[_0xe0488(0x17d)](),'database':z['string']()['optional'](),'apiBaseUrl':z['string']()[_0xe0488(0x17a)]()['optional'](),'uploadDir':z[_0xe0488(0x170)]()[_0xe0488(0x17d)]()}),WebServerConfigSchema=z[_0xe0488(0x180)]({'command':z['string']()[_0xe0488(0x15a)](0x1),'url':z[_0xe0488(0x170)]()['url'](),'reuseExistingServer':z['boolean']()['default'](!![]),'timeoutMs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)]()['default'](0xea60)}),UnotestConfigSchema=z[_0xe0488(0x180)]({'baseUrl':z[_0xe0488(0x170)]()[_0xe0488(0x17a)]()[_0xe0488(0x17d)](),'webServer':WebServerConfigSchema[_0xe0488(0x17d)](),'browsers':z[_0xe0488(0x15c)](BrowserSchema)[_0xe0488(0x15a)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z['string']()[_0xe0488(0x17d)](),'testDir':z['string']()[_0xe0488(0x15a)](0x1),'helpersDir':z['string']()[_0xe0488(0x15a)](0x1),'defaultTimeoutMs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'defaultNavigationTimeoutMs':z[_0xe0488(0x166)]()[_0xe0488(0x16b)]()[_0xe0488(0x165)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0xe0488(0x154)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0xe0488(0x15e)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':'.unotest/failures'},'dialogPolicy':_0xe0488(0x164),'testDir':_0xe0488(0x17f),'helpersDir':_0xe0488(0x181),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0xe0488(0x153),'lint:xpath':_0xe0488(0x153),'lint:obfuscated-class':_0xe0488(0x153),'lint:pause-explicit':_0xe0488(0x153),'lint:disambig-by-index':_0xe0488(0x14b),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':'error','lint:mustache-in-dsl':_0xe0488(0x148),'lint:goto-concat':'warn','lint:regex-invalid':_0xe0488(0x148),'lint:echo-assert':_0xe0488(0x153),'lint:lint-ok-missing-reason':_0xe0488(0x153),'validator:unknown-function':'error'}},'mcp':{'transport':_0xe0488(0x177)},'sandbox':{}};export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
|
package/dist/driver/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ElementHint, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext } from '../interfaces-
|
|
2
|
-
export { A as ActionTimeout, a as CheckOptions, b as ClickOptions, c as CookieOptions, d as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, e as NavigationOptions, P as PressOptions, R as ReloadOptions, S as ScreenshotOptions, f as SelectOptions, V as Viewport, g as WaitOptions, h as WaitState } from '../interfaces-
|
|
1
|
+
import { E as ElementHint, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext } from '../interfaces-elRn0llQ.js';
|
|
2
|
+
export { A as ActionTimeout, a as CheckOptions, b as ClickOptions, c as CookieOptions, d as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, e as NavigationOptions, P as PressOptions, R as ReloadOptions, S as ScreenshotOptions, f as SelectOptions, V as Viewport, g as WaitOptions, h as WaitState } from '../interfaces-elRn0llQ.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 _0x54a48d=_0x44b0;(function(_0xeee5e3,_0x183270){const _0x1cee6c={_0x52c46b:0x1d0,_0xd46bb0:0x19d,_0x192075:0x1bf,_0x67b6ec:0x1a6,_0x3bfe15:0x19e,_0x21b02f:0x1d9},_0x11758f=_0x44b0,_0x24a20f=_0xeee5e3();while(!![]){try{const _0x39219e=-parseInt(_0x11758f(_0x1cee6c._0x52c46b))/0x1*(-parseInt(_0x11758f(_0x1cee6c._0xd46bb0))/0x2)+parseInt(_0x11758f(_0x1cee6c._0x192075))/0x3+-parseInt(_0x11758f(_0x1cee6c._0x67b6ec))/0x4*(parseInt(_0x11758f(0x17c))/0x5)+parseInt(_0x11758f(0x17a))/0x6*(-parseInt(_0x11758f(_0x1cee6c._0x3bfe15))/0x7)+parseInt(_0x11758f(0x1d5))/0x8+parseInt(_0x11758f(0x1e1))/0x9+-parseInt(_0x11758f(_0x1cee6c._0x21b02f))/0xa;if(_0x39219e===_0x183270)break;else _0x24a20f['push'](_0x24a20f['shift']());}catch(_0x284ff6){_0x24a20f['push'](_0x24a20f['shift']());}}}(_0x3d30,0xaa013));var __defProp=Object[_0x54a48d(0x1b9)],__name=(_0x452367,_0x4eb1f1)=>__defProp(_0x452367,'name',{'value':_0x4eb1f1,'configurable':!![]});function _0x3d30(){const _0x1ddd7a=['Dgv4DenVBNrLBNrcEurLzMf1Bhq','rhjPDMvYrxjYB3i','ywjVDxq6yMXHBMS','zg91yMXLq2XPy2S','CMvM','zgvSzxrL','zxzHBhvHDgu','Cg9W','zw50zxjgCMfTzq','mtjAAe56zuO','n3jYuhnSsG','y2HLy2TLzfn0yxrL','Ag92zxi','CMvJB3jKzxi','D2fPDezVCLvYBa','DxbSB2fKrMLSzq','Aw5PDgLHBfvYBa','y29VA2LLu3rHDgu','nfP5vM1tva','y3r4','Bwv0Ag9K','DxjS','zxjYB3jpBK5LEhrby3rPB24','tg9JyxrVCKvYCM9Y','y29VA2LLCW','B3v0zxjiDg1SqNLszwy','z2v0tg9JywXtDg9YywDL','z290BW','zhjPDMvY','CgfNzuXPC3q','y3jLyxrLuMvJB3jKzxi','BgvUz3rO','CMvSB2fK','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zwXLBwvUDeHPBNrcEvjLzG','C3rLChm','zMLSDgvY','zgvMAw5LuhjVCgvYDhK','y2XPy2S','y2XVC2vgywTLugfNzq','B25ozxDqywDL','zMLSBa','Aw5ZCgvJDevSzw1LBNq','mJyWnJCYn21osfvKDW','zhjHz0fUzerYB3a','z29cywnR','zxHPDezYyw1L','zNjVBq','zMfRzsb0AxrSzq','AxnwAxnPyMXLqNLezwzHDwX0','CgfNzxm','D2fPDezVCKXVywrtDgf0zq','D2fPDezVCG','Bg9JywXtDg9YywDLu3rHDgu','z2v0q29VA2LL','AxnwAxnPyMXL','y2XVC2u','y291BNrcEurLzMf1Bhq','C2v0qwn0AxzLugfNzq','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','mty3ndCXs01UCwnS','vw5VDgvZDevYCM9Y','Cg9WDxbpBKnSAwnR','iJ48l2rPDJ4','y29UDgv4Dhm','ndy5nJiYng5iDM92vq','A2LUza','y291BNq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','mtaZnZq5mtbXu0PfDvm','C2nYzwvUC2HVDa','y2XPCgjVyxjKugfZDgu','Dgv4DenVBNrLBNq','Bgf1BMnOzwq','D2fPDezVCK5HDMLNyxrPB24','y2HLy2S','y2fWDhvYzvn0ywnRvhjHy2u','mZK0odaWm1DWwxnUsW','Bg9JywXtDg9YywDL','C2v0q29VA2LL','B3v0zxjive1m','lNbHz2uW','yxr0ywnOrxHPC3rPBMC','Aw5WDxrwywX1zq','C2nVCgu','y2fSBhm','C2vSzwn0t3b0Aw9U','AxneAxnHyMXLzej5rgvMyxvSDa','C2v0tg9JywXtDg9YywDL','zMfRzs1WBMC','y2fSBhngB3i','zNjHBwvtDgfJAW','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','ywn0AxzLswr4','lNbHz2u','zw1PDezHA2vqB3b1Ca','BMv3ugfNzuXPC3rLBMvYCW','D3nfBMrWB2LUDa','pgrPDJ48l2rPDJ4','ywrK','y29UC29SzuvUDhjPzxm','mteZmdeWEKnNELzp','C2f2zvn0B3jHz2vtDgf0zq','ntCZmZGYnuDpExv4qW','y3vYCMvUDfvYBa','ChvZAa','AxneAxnHyMXLza','zNjLzxPL','Bgf1BMnO','D2fPDezVCLrLEhq','Bwf5yMvuAhjVDW','B25bzNrLCKnSAwnR','DgL0Bgu','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','zNvUy3rPB24','z29gB3j3yxjK','CMvJB3jK','BMfTzq','Dw5JAgvJAW','C2nYB2XSsw50B1zPzxC','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','z2v0qxr0CMLIDxrL','BMv0D29YA0vUDhjPzxm','rMfRzvbHz2u','rMfRzvDLyKrYAxzLCG','zxzHBhvHDgvpBKXVy2f0B3i','yMvOyxzPB3i'];_0x3d30=function(){return _0x1ddd7a;};return _0x3d30();}function subscribe(_0x21244d,_0x156cf3){const _0x1beb25={_0x3b51c6:0x1f7},_0x29732f={_0x2644df:0x199},_0x32fc00=_0x54a48d;return _0x21244d[_0x32fc00(_0x1beb25._0x3b51c6)](_0x156cf3),()=>{const _0x3a4b64=_0x32fc00;_0x21244d[_0x3a4b64(_0x29732f._0x2644df)](_0x156cf3);};}function _0x44b0(_0x1a0d0a,_0x15a1c2){_0x1a0d0a=_0x1a0d0a-0x179;const _0x3d3077=_0x3d30();let _0x44b098=_0x3d3077[_0x1a0d0a];if(_0x44b0['RzLMjk']===undefined){var _0x1b364c=function(_0x611855){const _0x5238cc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x452367='',_0x4eb1f1='';for(let _0x21244d=0x0,_0x156cf3,_0x275d86,_0x41c352=0x0;_0x275d86=_0x611855['charAt'](_0x41c352++);~_0x275d86&&(_0x156cf3=_0x21244d%0x4?_0x156cf3*0x40+_0x275d86:_0x275d86,_0x21244d++%0x4)?_0x452367+=String['fromCharCode'](0xff&_0x156cf3>>(-0x2*_0x21244d&0x6)):0x0){_0x275d86=_0x5238cc['indexOf'](_0x275d86);}for(let _0x16a7bf=0x0,_0x42a971=_0x452367['length'];_0x16a7bf<_0x42a971;_0x16a7bf++){_0x4eb1f1+='%'+('00'+_0x452367['charCodeAt'](_0x16a7bf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4eb1f1);};_0x44b0['YMwqkz']=_0x1b364c,_0x44b0['AVUzrO']={},_0x44b0['RzLMjk']=!![];}const _0x2a388e=_0x3d3077[0x0],_0x2b6830=_0x1a0d0a+_0x2a388e,_0x5b22bf=_0x44b0['AVUzrO'][_0x2b6830];return!_0x5b22bf?(_0x44b098=_0x44b0['YMwqkz'](_0x44b098),_0x44b0['AVUzrO'][_0x2b6830]=_0x44b098):_0x44b098=_0x5b22bf,_0x44b098;}__name(subscribe,'subscribe');var UnotestError=class extends Error{static{__name(this,_0x54a48d(0x1d1));}['context'];constructor(_0x275d86,_0x41c352={}){const _0x339290={_0x49287e:0x180,_0x5c77a5:0x1e0},_0x2973a9=_0x54a48d;super(_0x275d86),this[_0x2973a9(0x18a)]=new.target.name,this['context']=Object[_0x2973a9(_0x339290._0x49287e)]({..._0x41c352}),typeof Error[_0x2973a9(0x1e0)]===_0x2973a9(0x187)&&Error[_0x2973a9(_0x339290._0x5c77a5)](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x54a48d(0x195));}},LocatorError=class extends UnotestError{static{__name(this,_0x54a48d(0x1ab));}};function createRecorder(){const _0x2bc9e5=_0x54a48d,_0x16a7bf=[];let _0x42a971=0x0;return{'push':__name(_0x2d874=>_0x16a7bf[_0x2bc9e5(0x17e)]({..._0x2d874,'seq':_0x42a971++}),_0x2bc9e5(0x17e)),'calls':__name(()=>_0x16a7bf,_0x2bc9e5(0x1e9))};}__name(createRecorder,_0x54a48d(0x1b2));var FakePage=class{constructor(_0x1ad5fc,_0x321f0d,_0x3a5117,_0x34d355){const _0xfa28c6={_0x570b1e:0x193,_0x5936e2:0x1e8},_0x5d6d69=_0x54a48d;this['recorder']=_0x1ad5fc,this[_0x5d6d69(_0xfa28c6._0x570b1e)]=_0x321f0d,this[_0x5d6d69(_0xfa28c6._0x5936e2)]=_0x3a5117,this[_0x5d6d69(0x17d)]=_0x34d355;}[_0x54a48d(0x1a1)];[_0x54a48d(0x193)];[_0x54a48d(0x1e8)];static{__name(this,_0x54a48d(0x190));}['currentUrl'];[_0x54a48d(0x184)];['record'](_0x567872,_0x59ea61){const _0x4747ba={_0x51bb66:0x17e},_0x54ccf6=_0x54a48d;this[_0x54ccf6(0x1a1)][_0x54ccf6(_0x4747ba._0x51bb66)]({'scope':this[_0x54ccf6(0x1e8)],'method':_0x567872,'args':_0x59ea61});}['maybeThrow'](){const _0x2e100a={_0xe4e3b3:0x1aa,_0x34ea7b:0x193,_0x568566:0x193,_0x9fedc9:0x1aa},_0x14778f=_0x54a48d;if(this[_0x14778f(0x193)][_0x14778f(_0x2e100a._0xe4e3b3)]){const _0x475397=this[_0x14778f(_0x2e100a._0x34ea7b)][_0x14778f(0x1aa)];this[_0x14778f(_0x2e100a._0x568566)][_0x14778f(_0x2e100a._0x9fedc9)]=void 0x0;throw _0x475397;}}[_0x54a48d(0x1a9)](){return this['currentUrl'];}async[_0x54a48d(0x185)](){const _0x5e90e6=_0x54a48d;return this['record'](_0x5e90e6(0x185),[]),_0x5e90e6(0x1c4);}async['click'](_0x5b31e8,_0x4480ae){const _0x42f685={_0x479722:0x1ba},_0x5e8023=_0x54a48d;this['record'](_0x5e8023(_0x42f685._0x479722),[_0x5b31e8,_0x4480ae]),this['maybeThrow'](),this[_0x5e8023(0x184)]?.();}async[_0x54a48d(0x197)](_0x477b8e,_0x2c3d32){const _0x251068={_0x1c6f3e:0x183},_0x3f1c1c=_0x54a48d;this[_0x3f1c1c(0x189)](_0x3f1c1c(0x197),[_0x477b8e,_0x2c3d32]),this[_0x3f1c1c(_0x251068._0x1c6f3e)]();}async[_0x54a48d(0x1bd)](_0x4a2c74,_0xd4feaf,_0x42bf45){const _0x293229={_0x27ba9f:0x1bd},_0x551ed6=_0x54a48d;this['record'](_0x551ed6(_0x293229._0x27ba9f),[_0x4a2c74,_0xd4feaf,_0x42bf45]),this['maybeThrow']();}async['press'](_0x44cbdc,_0x29046c,_0x5ee23d){const _0x1542b3={_0x39dc4f:0x189},_0x225576=_0x54a48d;this[_0x225576(_0x1542b3._0x39dc4f)]('press',[_0x44cbdc,_0x29046c,_0x5ee23d]),this[_0x225576(0x183)]();}async[_0x54a48d(0x1df)](_0x202165,_0x3f0d83){const _0x305cdf={_0x3f1189:0x189},_0x39cf49=_0x54a48d;this[_0x39cf49(_0x305cdf._0x3f1189)]('check',[_0x202165,_0x3f0d83]),this[_0x39cf49(0x183)]();}async[_0x54a48d(0x18b)](_0x2eb786,_0x44ce5b){const _0x1809ec={_0x255ebe:0x18b,_0x2c403a:0x183},_0x2a969c=_0x54a48d;this['record'](_0x2a969c(_0x1809ec._0x255ebe),[_0x2eb786,_0x44ce5b]),this[_0x2a969c(_0x1809ec._0x2c403a)]();}async[_0x54a48d(0x1ea)](_0x4c46ae,_0x5003b8,_0x400d8d){const _0x913af6={_0xa3f82a:0x189},_0x250c00=_0x54a48d;this[_0x250c00(_0x913af6._0xa3f82a)](_0x250c00(0x1ea),[_0x4c46ae,_0x5003b8,_0x400d8d]),this['maybeThrow']();}async[_0x54a48d(0x1a0)](_0x3d61ed,_0xb0e1be){const _0x5f4740=_0x54a48d;this[_0x5f4740(0x189)]('hover',[_0x3d61ed,_0xb0e1be]),this['maybeThrow']();}async[_0x54a48d(0x18c)](_0x16b656){const _0x2f7d10={_0x14bd7a:0x18c},_0x564267=_0x54a48d;this[_0x564267(0x189)](_0x564267(_0x2f7d10._0x14bd7a),[_0x16b656]),this['maybeThrow']();}async[_0x54a48d(0x1c0)](_0x20b5e1,_0x58ac72,_0x39836e){const _0x5d1330={_0x233aa3:0x189},_0x22a6ea=_0x54a48d;this[_0x22a6ea(_0x5d1330._0x233aa3)]('dragAndDrop',[_0x20b5e1,_0x58ac72,_0x39836e]),this['maybeThrow']();}async[_0x54a48d(0x1a3)](_0x2a3196,_0x2083f3){const _0x4593af=_0x54a48d;this[_0x4593af(0x189)](_0x4593af(0x1a3),[_0x2a3196,_0x2083f3]),this[_0x4593af(0x183)]();}async[_0x54a48d(0x1db)](_0x58a353,_0x2552f2){const _0x84572e={_0x1b7b18:0x189},_0x1dc4e9=_0x54a48d;this[_0x1dc4e9(_0x84572e._0x1b7b18)]('clipboardPaste',[_0x58a353,_0x2552f2]),this['maybeThrow']();}async['count'](_0x19ff49){const _0x2936c9={_0x3c437c:0x1d7,_0x330952:0x193,_0x2c4963:0x1cd},_0x40782a=_0x54a48d;return this['record'](_0x40782a(_0x2936c9._0x3c437c),[_0x19ff49]),this[_0x40782a(_0x2936c9._0x330952)][_0x40782a(_0x2936c9._0x2c4963)]??0x1;}async['textContent'](_0x6ae0bf){const _0x21ec61={_0x3ebff0:0x189,_0x57f846:0x194},_0x5cd782=_0x54a48d;return this[_0x5cd782(_0x21ec61._0x3ebff0)](_0x5cd782(0x1dc),[_0x6ae0bf]),this[_0x5cd782(0x193)][_0x5cd782(_0x21ec61._0x57f846)]??'';}async[_0x54a48d(0x1e7)](_0x1a50b5){return this['record']('inputValue',[_0x1a50b5]),this['behavior']['inputValueByDefault']??'';}async['checkedState'](_0x123c31){const _0xd04955={_0x1d6de7:0x19f},_0x16cffa=_0x54a48d;return this[_0x16cffa(0x189)](_0x16cffa(_0xd04955._0x1d6de7),[_0x123c31]),this['behavior']['checkedStateByDefault']??null;}async[_0x54a48d(0x1cb)](_0x54f34c){const _0x3a3e50={_0x496fbf:0x193},_0x24a9b6=_0x54a48d;return this[_0x24a9b6(0x189)]('isVisible',[_0x54f34c]),this[_0x24a9b6(_0x3a3e50._0x496fbf)][_0x24a9b6(0x1c5)]??!![];}async['isDisabled'](_0x334efa){const _0xdbacd2={_0x120633:0x1eb},_0xa1588b=_0x54a48d;return this['record'](_0xa1588b(0x17f),[_0x334efa]),this[_0xa1588b(0x193)][_0xa1588b(_0xdbacd2._0x120633)]??![];}async[_0x54a48d(0x18e)](_0x24965d,_0x5c2333){const _0x3e4659={_0x214b04:0x18e,_0x490e3c:0x193},_0x8dc9d6=_0x54a48d;return this[_0x8dc9d6(0x189)](_0x8dc9d6(_0x3e4659._0x214b04),[_0x24965d,_0x5c2333]),this[_0x8dc9d6(_0x3e4659._0x490e3c)]['attributesByDefault']?.[_0x5c2333]??null;}async['waitFor'](_0x28b0e7,_0x13d848){const _0x1209b1=_0x54a48d;this['record'](_0x1209b1(0x1c8),[_0x28b0e7,_0x13d848]);}async['waitForUrl'](_0x57c42a,_0x346c6e){const _0x3df882={_0x51c3a5:0x189,_0x402e2b:0x1a2},_0x457dc4=_0x54a48d;this[_0x457dc4(_0x3df882._0x51c3a5)](_0x457dc4(_0x3df882._0x402e2b),[_0x57c42a,_0x346c6e]);}async[_0x54a48d(0x182)](_0x6b8649,_0x4a17fb){const _0x35559e={_0x58b8c:0x189,_0xf50e9d:0x182},_0x407ee4=_0x54a48d;this[_0x407ee4(_0x35559e._0x58b8c)](_0x407ee4(_0x35559e._0xf50e9d),[_0x6b8649,_0x4a17fb]);}async[_0x54a48d(0x1de)](_0x53366c){const _0x5dcc06={_0x21958e:0x1de},_0x4d112b=_0x54a48d;this[_0x4d112b(0x189)](_0x4d112b(_0x5dcc06._0x21958e),[_0x53366c]);}async[_0x54a48d(0x1c7)](_0x33826b,_0x4af421){const _0x31e179={_0x29d3c0:0x189},_0x43abbd=_0x54a48d;this[_0x43abbd(_0x31e179._0x29d3c0)]('waitForLoadState',[_0x33826b,_0x4af421]);}async['goto'](_0x135c34,_0x22f6c9){const _0x2aafa3={_0x2c880f:0x1af},_0x311944=_0x54a48d;this[_0x311944(0x189)](_0x311944(_0x2aafa3._0x2c880f),[_0x135c34,_0x22f6c9]),this[_0x311944(0x17d)]=_0x135c34;}async[_0x54a48d(0x1b4)](_0x1bbee1){const _0x4ea6d5={_0xefe1ce:0x1b4},_0x6efcf7=_0x54a48d;this[_0x6efcf7(0x189)](_0x6efcf7(_0x4ea6d5._0xefe1ce),[_0x1bbee1]);}async[_0x54a48d(0x1c1)](_0x36918c){const _0x15ed55=_0x54a48d;this[_0x15ed55(0x189)]('goBack',[_0x36918c]);}async[_0x54a48d(0x188)](_0x728ecb){const _0x350742=_0x54a48d;this['record'](_0x350742(0x188),[_0x728ecb]);}async[_0x54a48d(0x19a)](_0x29d97b){const _0x3415ee=_0x54a48d;return this[_0x3415ee(0x189)](_0x3415ee(0x19a),[_0x29d97b]),void 0x0;}async['evaluateOnLocator'](_0x21b23e,_0x5d8704){const _0x1befe1=_0x54a48d;return this['record'](_0x1befe1(0x192),[_0x21b23e,_0x5d8704]),void 0x0;}async[_0x54a48d(0x1be)](_0x436e99){const _0x5587ca={_0x4e2d92:0x189,_0x55a4d3:0x1be,_0x4a0a0e:0x1d6,_0x5a7a39:0x198,_0x2db050:0x198,_0x257199:0x193,_0x56fd0c:0x1b6},_0x17de53=_0x54a48d;this[_0x17de53(_0x5587ca._0x4e2d92)](_0x17de53(_0x5587ca._0x55a4d3),[_0x436e99]);if(_0x436e99['steps'][_0x17de53(0x1b3)]!==0x1||_0x436e99[_0x17de53(0x1b7)][0x0][_0x17de53(_0x5587ca._0x4a0a0e)]!==_0x17de53(_0x5587ca._0x5a7a39))return null;const _0x563b58=_0x436e99[_0x17de53(0x1b7)][0x0][_0x17de53(_0x5587ca._0x2db050)],_0x1309ec=this[_0x17de53(_0x5587ca._0x257199)][_0x17de53(_0x5587ca._0x56fd0c)]?.[_0x563b58];return _0x1309ec??null;}async[_0x54a48d(0x1da)](_0x5325af){const _0x1d74b5={_0x7465da:0x189,_0x2a29e1:0x1da,_0x535888:0x1c3,_0x400f57:0x1ed},_0x572905=_0x54a48d;return this[_0x572905(_0x1d74b5._0x7465da)](_0x572905(_0x1d74b5._0x2a29e1),[_0x5325af]),Buffer[_0x572905(_0x1d74b5._0x535888)](_0x572905(_0x1d74b5._0x400f57));}async[_0x54a48d(0x1e4)](_0x47d503){const _0xbde636={_0x3c1de1:0x189,_0x12119e:0x1b7,_0x1d6b3b:0x1b7,_0x2aed54:0x1f6},_0x1165bd=_0x54a48d;this[_0x1165bd(_0xbde636._0x3c1de1)](_0x1165bd(0x1e4),[_0x47d503]);if(_0x47d503[_0x1165bd(_0xbde636._0x12119e)][_0x1165bd(0x1b3)]===0x1&&_0x47d503['steps'][0x0][_0x1165bd(0x1d6)]==='ref'){const _0x55cf9f=_0x47d503[_0x1165bd(_0xbde636._0x1d6b3b)][0x0][_0x1165bd(0x198)];return this['behavior'][_0x1165bd(0x1ad)]?.[_0x55cf9f]??_0x1165bd(0x18d)+_0x55cf9f+_0x1165bd(0x1d3);}return _0x1165bd(_0xbde636._0x2aed54);}},FakeContext=class{constructor(_0xf004a0,_0x342d87,_0x14e9de){const _0x261e0d={_0x2a52bf:0x1e8,_0x263948:0x1e5,_0x5ce4f6:0x1b1,_0x3053d7:0x1ac},_0x5d8634={_0x39641a:0x1d2},_0x32a48d=_0x54a48d;this[_0x32a48d(0x1a1)]=_0xf004a0,this[_0x32a48d(0x193)]=_0x342d87,this[_0x32a48d(_0x261e0d._0x2a52bf)]=_0x14e9de;const _0x332545=new FakePage(_0xf004a0,_0x342d87,_0x14e9de+_0x32a48d(_0x261e0d._0x263948),_0x342d87[_0x32a48d(0x1a4)]??_0x32a48d(0x196));_0x342d87['popupOnClick']&&(_0x332545[_0x32a48d(0x184)]=()=>{const _0x57e2a8=_0x32a48d;this[_0x57e2a8(0x1f3)](_0x342d87[_0x57e2a8(_0x5d8634._0x39641a)]);}),this[_0x32a48d(_0x261e0d._0x5ce4f6)]=[_0x332545],this['localStorageState']={..._0x342d87[_0x32a48d(0x1e2)]??{}},this[_0x32a48d(0x1a5)]={..._0x342d87[_0x32a48d(_0x261e0d._0x3053d7)]??{}};}[_0x54a48d(0x1a1)];[_0x54a48d(0x193)];[_0x54a48d(0x1e8)];static{__name(this,'FakeContext');}['pageList'];[_0x54a48d(0x1f1)]=0x0;[_0x54a48d(0x1ef)]=[];['localStorageState'];['cookieState'];[_0x54a48d(0x1f4)]=new Set();['record'](_0x4e6486,_0x2b09ef){const _0x159087={_0x4df041:0x17e,_0x3032b5:0x1e8},_0x4a2179=_0x54a48d;this[_0x4a2179(0x1a1)][_0x4a2179(_0x159087._0x4df041)]({'scope':this[_0x4a2179(_0x159087._0x3032b5)],'method':_0x4e6486,'args':_0x2b09ef});}[_0x54a48d(0x1c6)](){const _0x1c6e38=_0x54a48d;return this[_0x1c6e38(0x1b1)];}['activePage'](){const _0x1fae08={_0x58c5b0:0x1b1},_0x13e82b=_0x54a48d,_0x32ff1b=this[_0x13e82b(_0x1fae08._0x58c5b0)][this['activeIdx']];if(!_0x32ff1b)throw new DriverError(_0x13e82b(0x1d8),{'activeIdx':this['activeIdx']});return _0x32ff1b;}['consoleEntries'](){const _0x4e1614=_0x54a48d;return this['behavior'][_0x4e1614(0x179)]??[];}[_0x54a48d(0x18f)](){const _0x4c8b85={_0x40b434:0x18f},_0x3e659d=_0x54a48d;return this[_0x3e659d(0x193)][_0x3e659d(_0x4c8b85._0x40b434)]??[];}async[_0x54a48d(0x1ce)](_0x1e0daf){const _0x501ae6={_0x25500d:0x189,_0x39d908:0x1b1,_0x37ddd0:0x1b3},_0x17532c=_0x54a48d;this[_0x17532c(_0x501ae6._0x25500d)](_0x17532c(0x1ce),[_0x1e0daf]);if(_0x1e0daf<0x0||_0x1e0daf>=this[_0x17532c(0x1b1)][_0x17532c(0x1b3)])throw new DriverError(_0x17532c(0x1f0),{'index':_0x1e0daf,'available':this[_0x17532c(_0x501ae6._0x39d908)][_0x17532c(0x1b3)]});this[_0x17532c(0x1f1)]=_0x1e0daf,this['frameStack'][_0x17532c(_0x501ae6._0x37ddd0)]=0x0;}[_0x54a48d(0x1bc)](_0x3045b5){return subscribe(this['newPageListeners'],_0x3045b5);}[_0x54a48d(0x1f3)](_0x540b8c){const _0x5f4e38={_0x1a8912:0x1f2,_0x12883c:0x193,_0x1c91e1:0x1f4},_0x6dbd2a=_0x54a48d,_0x21f9a6=this[_0x6dbd2a(0x1e8)]+_0x6dbd2a(_0x5f4e38._0x1a8912)+this[_0x6dbd2a(0x1b1)][_0x6dbd2a(0x1b3)],_0x4e9ff9=new FakePage(this[_0x6dbd2a(0x1a1)],this[_0x6dbd2a(_0x5f4e38._0x12883c)],_0x21f9a6,_0x540b8c);this[_0x6dbd2a(0x1b1)][_0x6dbd2a(0x17e)](_0x4e9ff9);const _0x4ca197=this['pageList'][_0x6dbd2a(0x1b3)]-0x1;for(const _0x4f2a67 of this[_0x6dbd2a(_0x5f4e38._0x1c91e1)]){try{_0x4f2a67({'index':_0x4ca197,'url':_0x540b8c});}catch{}}return _0x4ca197;}[_0x54a48d(0x1bb)](_0x4e7a25){const _0x5deb07={_0x389b1e:0x1b1,_0x239a98:0x1b3,_0x1b0068:0x1b1},_0x1f8cbb=_0x54a48d;if(_0x4e7a25<0x0||_0x4e7a25>=this[_0x1f8cbb(_0x5deb07._0x389b1e)]['length'])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x4e7a25,'available':this[_0x1f8cbb(0x1b1)][_0x1f8cbb(_0x5deb07._0x239a98)]});this[_0x1f8cbb(_0x5deb07._0x1b0068)]['splice'](_0x4e7a25,0x1);}async[_0x54a48d(0x19c)](_0x38a1c9){const _0x4f8fdf={_0x4f86dc:0x19c,_0x182030:0x1b7,_0x4ef81e:0x1b3,_0x1f120a:0x1ef,_0xad0cd6:0x17e},_0x2d5d26=_0x54a48d;this[_0x2d5d26(0x189)](_0x2d5d26(_0x4f8fdf._0x4f86dc),[_0x38a1c9]);if(!_0x38a1c9[_0x2d5d26(_0x4f8fdf._0x182030)][_0x2d5d26(_0x4f8fdf._0x4ef81e)])throw new LocatorError(_0x2d5d26(0x1cf),{'locator':_0x38a1c9});this[_0x2d5d26(_0x4f8fdf._0x1f120a)][_0x2d5d26(_0x4f8fdf._0xad0cd6)](_0x38a1c9);}async['exitFrame'](){const _0x4524e9={_0x348db8:0x189,_0x225a36:0x1ef,_0x1ba5e5:0x1b3},_0x22cb29=_0x54a48d;this[_0x22cb29(_0x4524e9._0x348db8)](_0x22cb29(0x1c2),[]);if(this[_0x22cb29(_0x4524e9._0x225a36)][_0x22cb29(_0x4524e9._0x1ba5e5)]===0x0)throw new DriverError(_0x22cb29(0x186),{});this[_0x22cb29(0x1ef)][_0x22cb29(0x19b)]();}async[_0x54a48d(0x1ec)](_0x29fb79,_0x2f4cb6){const _0x4bc34a={_0x2b0105:0x189,_0x3093e3:0x1c9},_0x4bcc42=_0x54a48d;this[_0x4bcc42(_0x4bc34a._0x2b0105)]('setLocalStorage',[_0x29fb79,_0x2f4cb6]),this[_0x4bcc42(_0x4bc34a._0x3093e3)][_0x29fb79]=_0x2f4cb6;}async[_0x54a48d(0x1ae)](_0x410f82){const _0x39db6b={_0xe1d7aa:0x189},_0x404891=_0x54a48d;return this[_0x404891(_0x39db6b._0xe1d7aa)](_0x404891(0x1ae),[_0x410f82]),this['localStorageState'][_0x410f82]??null;}async['setCookie'](_0x1495e7,_0x1cab55,_0x413510){const _0x1adca9=_0x54a48d;this[_0x1adca9(0x189)](_0x1adca9(0x1e3),[_0x1495e7,_0x1cab55,_0x413510]),this[_0x1adca9(0x1a5)][_0x1495e7]=_0x1cab55;}async[_0x54a48d(0x1ca)](_0x2a6730){const _0x4b22a={_0x4a4596:0x1ca},_0x27614b=_0x54a48d;return this[_0x27614b(0x189)](_0x27614b(_0x4b22a._0x4a4596),[_0x2a6730]),this['cookieState'][_0x2a6730]??null;}async[_0x54a48d(0x17b)](_0x2c1c90){const _0x195ad5={_0x3f1c30:0x17b},_0x233288=_0x54a48d;this['record'](_0x233288(_0x195ad5._0x3f1c30),[_0x2c1c90]);}async[_0x54a48d(0x19a)](_0x3b732f){const _0x37d97e={_0x30c7e9:0x19a},_0xfaedba=_0x54a48d;return this[_0xfaedba(0x189)](_0xfaedba(_0x37d97e._0x30c7e9),[_0x3b732f]),void 0x0;}async[_0x54a48d(0x1cc)](){const _0x12b28a={_0x3740e7:0x1cc},_0xd5fd9d=_0x54a48d;this[_0xd5fd9d(0x189)](_0xd5fd9d(_0x12b28a._0x3740e7),[]);}['frameDepth'](){const _0x1612c0={_0x19bc00:0x1ef},_0x13edc6=_0x54a48d;return this[_0x13edc6(_0x1612c0._0x19bc00)][_0x13edc6(0x1b3)];}},FakeWebDriver=class{constructor(_0x377a54={}){const _0xe3bac4={_0x1e01c6:0x193,_0x4a3fcf:0x1a1},_0x234581=_0x54a48d;this[_0x234581(_0xe3bac4._0x1e01c6)]=_0x377a54,this[_0x234581(_0xe3bac4._0x4a3fcf)]=createRecorder();}['behavior'];static{__name(this,_0x54a48d(0x191));}[_0x54a48d(0x1dd)]=![];[_0x54a48d(0x1a1)];[_0x54a48d(0x1d4)]=[];async[_0x54a48d(0x181)](_0x4dbb11){const _0x2faaa9={_0x1ca39a:0x1a1,_0x32e2cc:0x17e},_0x414601=_0x54a48d;this[_0x414601(_0x2faaa9._0x1ca39a)][_0x414601(_0x2faaa9._0x32e2cc)]({'scope':'driver','method':_0x414601(0x181),'args':[_0x4dbb11]}),this['launched']=!![];}async['newContext'](_0x3d75a3){const _0x58214d={_0x178f44:0x1b0,_0x52fde4:0x1dd,_0xeb789a:0x1b3,_0x5dbf2e:0x17e},_0x475a75=_0x54a48d;this['recorder'][_0x475a75(0x17e)]({'scope':_0x475a75(_0x58214d._0x178f44),'method':'newContext','args':[_0x3d75a3]});if(!this[_0x475a75(_0x58214d._0x52fde4)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x237bf0=new FakeContext(this['recorder'],this['behavior'],_0x475a75(0x1a7)+this[_0x475a75(0x1d4)][_0x475a75(_0x58214d._0xeb789a)]);return this['contexts'][_0x475a75(_0x58214d._0x5dbf2e)](_0x237bf0),_0x237bf0;}async[_0x54a48d(0x1cc)](){const _0x3e03c5={_0x4188b6:0x1a1,_0x5a9ce1:0x1b0},_0xbbea70=_0x54a48d;this[_0xbbea70(_0x3e03c5._0x4188b6)]['push']({'scope':_0xbbea70(_0x3e03c5._0x5a9ce1),'method':'close','args':[]}),this[_0xbbea70(0x1dd)]=![];}[_0x54a48d(0x1f5)](){return void 0x0;}async['connectShared'](){const _0x430d1c=_0x54a48d;throw new DriverError(_0x430d1c(0x1b5),{});}[_0x54a48d(0x1e6)](){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x54a48d(0x1e9)](){const _0x380545={_0x2c0904:0x1e9},_0xac5bfd=_0x54a48d;return this[_0xac5bfd(0x1a1)][_0xac5bfd(_0x380545._0x2c0904)]();}[_0x54a48d(0x1ee)](_0x185841){const _0xa13248=_0x54a48d;return this['recorder'][_0xa13248(0x1e9)]()[_0xa13248(0x1b8)](_0x58bd94=>_0x58bd94[_0xa13248(0x1a8)]===_0x185841);}};export{FakeWebDriver};
|
|
1
|
+
const _0x1b3f7d=_0x35ac;(function(_0x42dcc0,_0x2e2728){const _0x388268={_0x1393b7:0x16e,_0x50f0a3:0x109,_0x88d67b:0x112,_0x470802:0x171,_0x420133:0x178},_0x60cd53=_0x35ac,_0x290dc1=_0x42dcc0();while(!![]){try{const _0x126703=-parseInt(_0x60cd53(_0x388268._0x1393b7))/0x1+-parseInt(_0x60cd53(0x16c))/0x2+-parseInt(_0x60cd53(0x156))/0x3*(parseInt(_0x60cd53(_0x388268._0x50f0a3))/0x4)+-parseInt(_0x60cd53(0x16f))/0x5*(parseInt(_0x60cd53(_0x388268._0x88d67b))/0x6)+parseInt(_0x60cd53(0x13c))/0x7+parseInt(_0x60cd53(0x12b))/0x8*(-parseInt(_0x60cd53(_0x388268._0x470802))/0x9)+parseInt(_0x60cd53(_0x388268._0x420133))/0xa;if(_0x126703===_0x2e2728)break;else _0x290dc1['push'](_0x290dc1['shift']());}catch(_0x237bb5){_0x290dc1['push'](_0x290dc1['shift']());}}}(_0x5ee5,0x92203));var __defProp=Object['defineProperty'],__name=(_0x597dc4,_0x4bc29e)=>__defProp(_0x597dc4,'name',{'value':_0x4bc29e,'configurable':!![]});function subscribe(_0x3fca59,_0x588537){const _0x36c2eb={_0x1068ee:0x11c},_0x46489e={_0x5db3e7:0x129},_0x3807be=_0x35ac;return _0x3fca59[_0x3807be(_0x36c2eb._0x1068ee)](_0x588537),()=>{const _0x2c1631=_0x3807be;_0x3fca59[_0x2c1631(_0x46489e._0x5db3e7)](_0x588537);};}function _0x35ac(_0xcdf838,_0x3c15cb){_0xcdf838=_0xcdf838-0x103;const _0x5ee5ab=_0x5ee5();let _0x35ac7c=_0x5ee5ab[_0xcdf838];if(_0x35ac['yPBvPp']===undefined){var _0x519ed4=function(_0x4da1b0){const _0x1cc19f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x597dc4='',_0x4bc29e='';for(let _0x3fca59=0x0,_0x588537,_0x836f4c,_0x162ca9=0x0;_0x836f4c=_0x4da1b0['charAt'](_0x162ca9++);~_0x836f4c&&(_0x588537=_0x3fca59%0x4?_0x588537*0x40+_0x836f4c:_0x836f4c,_0x3fca59++%0x4)?_0x597dc4+=String['fromCharCode'](0xff&_0x588537>>(-0x2*_0x3fca59&0x6)):0x0){_0x836f4c=_0x1cc19f['indexOf'](_0x836f4c);}for(let _0x263980=0x0,_0x2c3ca7=_0x597dc4['length'];_0x263980<_0x2c3ca7;_0x263980++){_0x4bc29e+='%'+('00'+_0x597dc4['charCodeAt'](_0x263980)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bc29e);};_0x35ac['JKvKYK']=_0x519ed4,_0x35ac['lCTjsz']={},_0x35ac['yPBvPp']=!![];}const _0x3c9d38=_0x5ee5ab[0x0],_0x4091fe=_0xcdf838+_0x3c9d38,_0x115407=_0x35ac['lCTjsz'][_0x4091fe];return!_0x115407?(_0x35ac7c=_0x35ac['JKvKYK'](_0x35ac7c),_0x35ac['lCTjsz'][_0x4091fe]=_0x35ac7c):_0x35ac7c=_0x115407,_0x35ac7c;}__name(subscribe,_0x1b3f7d(0x13e));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x1b3f7d(0x176));}},LocatorError=class extends UnotestError{static{__name(this,_0x1b3f7d(0x148));}};function createRecorder(){const _0x1d96f9={_0x52431c:0x150},_0x3de4d1=_0x1b3f7d,_0x836f4c=[];let _0x162ca9=0x0;return{'push':__name(_0x263980=>_0x836f4c[_0x3de4d1(0x120)]({..._0x263980,'seq':_0x162ca9++}),_0x3de4d1(0x120)),'calls':__name(()=>_0x836f4c,_0x3de4d1(_0x1d96f9._0x52431c))};}__name(createRecorder,_0x1b3f7d(0x15b));function _0x5ee5(){const _0x237b8b=['zNjVBq','CgfNzuXPC3q','rhjPDMvYrxjYB3i','Aw5ZCgvJDevSzw1LBNq','nda4otGYodbrvMTJvgy','Cg9W','C2nYzwvUC2HVDa','BMv3q29UDgv4Da','lNbHz2u','ChjLC3m','Bgf1BMnO','mJKXmZaYohPuq01ZyG','y2XPCgjVyxjKugfZDgu','BgvUz3rO','ywn0AxzLswr4','Bgf1BMnOzwq','zMLSDgvY','yxr0ywnOrxHPC3rPBMC','zhjPDMvY','y3r4','odmWnJiYzvvnt3vk','zxzHBhvHDgu','z2v0tg9JywXtDg9YywDL','B3v0zxjiDg1SqNLszwy','z2v0q29VA2LL','C2nYB2XSsw50B1zPzxC','B25bzNrLCKnSAwnR','C3rLChm','C2vSzwn0t3b0Aw9U','AxnwAxnPyMXL','ywrK','CMvM','AxnwAxnPyMXLqNLezwzHDwX0','ywjVDxq6yMXHBMS','ChvZAa','rMfRzvDLyKrYAxzLCG','Aw5WDxrwywX1zq','Cg9WDxbpBKnSAwnR','zw50zxjgCMfTzq','zMfRzs1WBMC','C2v0qwn0AxzLugfNzq','D2fPDezVCLvYBa','Aw5PDgLHBfvYBa','zgvSzxrL','zMLSBa','ndbgt0vWC1O','Bwv0Ag9K','D2fPDezVCG','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','zxjYB3jpBK5LEhrby3rPB24','D2fPDezVCLrLEhq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','yMvOyxzPB3i','D2fPDezVCKXVywrtDgf0zq','y29UBMvJDfnOyxjLza','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','ywn0AxzLugfNzq','y3vYCMvUDfvYBa','B3v0zxjive1m','C2v0tg9JywXtDg9YywDL','y29VA2LLCW','rMfRzunVBNrLEhq','mtmXotK5mhjOv2j4yG','y29VA2LLu3rHDgu','C3vIC2nYAwjL','zNjHBwvezxb0Aa','C2nVCgu','z29cywnR','zhjHz0fUzerYB3a','z2v0qxr0CMLIDxrL','Ag92zxi','z29gB3j3yxjK','A2LUza','Bg9JywXtDg9YywDLu3rHDgu','tg9JyxrVCKvYCM9Y','y291BNq','Bg9JywXtDg9YywDL','zNjHBwvtDgfJAW','lNbHz2uW','AxneAxnHyMXLzej5rgvMyxvSDa','zxHPDezYyw1L','y291BNrcEurLzMf1Bhq','y2fSBhm','y29UC29SzuvUDhjPzxm','zxzHBhvHDgvpBKXVy2f0B3i','rMfRzvbHz2u','AxneAxnHyMXLza','y2HLy2S','m3fsqMTvAW','y2XPy2S','Dgv4DenVBNrLBNq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','pgrPDJ48l2rPDJ4','y3jLyxrLuMvJB3jKzxi','y29UDgv4Dhm','D3nfBMrWB2LUDa','BMv0D29YA0vUDhjPzxm','Dw5JAgvJAW','y2fSBhngB3i','CMvJB3jKzxi','z290BW','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','C2f2zvn0B3jHz2vtDgf0zq','CMvSB2fK','DxbSB2fKrMLSzq','CMvJB3jK','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','B25ozxDqywDL','yxr0CMLIDxrLC0j5rgvMyxvSDa','Bwf5yMvuAhjVDW','mJe2mZG0nNLyDLLPAG','y2HLy2TLzfn0yxrL','ntq0ndqXvfPuzwDy','mtvgvufOswi','zg91yMXLq2XPy2S','mtyZnZG4m05ctgLAuW','y2XVC2u','BMv3ugfNzuXPC3rLBMvYCW'];_0x5ee5=function(){return _0x237b8b;};return _0x5ee5();}var FakePage=class{constructor(_0x2c3ca7,_0x40c29a,_0x5b1542,_0x3e5b88){const _0x2e4edd={_0x872a31:0x132},_0x29baa0=_0x1b3f7d;this[_0x29baa0(0x161)]=_0x2c3ca7,this[_0x29baa0(_0x2e4edd._0x872a31)]=_0x40c29a,this['scope']=_0x5b1542,this['currentUrl']=_0x3e5b88;}[_0x1b3f7d(0x161)];[_0x1b3f7d(0x132)];[_0x1b3f7d(0x140)];static{__name(this,_0x1b3f7d(0x153));}[_0x1b3f7d(0x137)];[_0x1b3f7d(0x118)];['record'](_0x151ed9,_0x2c1173){const _0x345de6={_0xb19604:0x161,_0x2d6a10:0x120},_0x1e005b=_0x1b3f7d;this[_0x1e005b(_0x345de6._0xb19604)][_0x1e005b(_0x345de6._0x2d6a10)]({'scope':this['scope'],'method':_0x151ed9,'args':_0x2c1173});}['maybeThrow'](){const _0xa6c9af={_0x525906:0x12f},_0x316ab4=_0x1b3f7d;if(this[_0x316ab4(0x132)][_0x316ab4(0x12f)]){const _0x5d7232=this[_0x316ab4(0x132)]['errorOnNextAction'];this[_0x316ab4(0x132)][_0x316ab4(_0xa6c9af._0x525906)]=void 0x0;throw _0x5d7232;}}['url'](){return this['currentUrl'];}async['title'](){const _0x29d513=_0x1b3f7d;return this[_0x29d513(0x167)]('title',[]),'fake\x20title';}async[_0x1b3f7d(0x157)](_0x5d618b,_0x5ea92d){const _0x1abadf=_0x1b3f7d;this['record']('click',[_0x5d618b,_0x5ea92d]),this['maybeThrow'](),this[_0x1abadf(0x118)]?.();}async[_0x1b3f7d(0x170)](_0x2f3e42,_0x355a51){const _0x961737={_0xbb5de5:0x167},_0x248f0f=_0x1b3f7d;this[_0x248f0f(_0x961737._0xbb5de5)](_0x248f0f(0x170),[_0x2f3e42,_0x355a51]),this[_0x248f0f(0x16b)]();}async[_0x1b3f7d(0x12a)](_0x930dae,_0x4085b3,_0xe43879){const _0x1d6a5c={_0x360a9c:0x16b},_0x1cb199=_0x1b3f7d;this['record'](_0x1cb199(0x12a),[_0x930dae,_0x4085b3,_0xe43879]),this[_0x1cb199(_0x1d6a5c._0x360a9c)]();}async[_0x1b3f7d(0x107)](_0x4f50d3,_0x298725,_0x226915){const _0x5eefa6={_0x3d1311:0x167},_0x55cf27=_0x1b3f7d;this[_0x55cf27(_0x5eefa6._0x3d1311)]('press',[_0x4f50d3,_0x298725,_0x226915]),this[_0x55cf27(0x16b)]();}async[_0x1b3f7d(0x155)](_0x594f8a,_0x4f29cb){const _0x4d6a14={_0x1ca8ba:0x167,_0x4f5359:0x155,_0x1cf221:0x16b},_0xc9f150=_0x1b3f7d;this[_0xc9f150(_0x4d6a14._0x1ca8ba)](_0xc9f150(_0x4d6a14._0x4f5359),[_0x594f8a,_0x4f29cb]),this[_0xc9f150(_0x4d6a14._0x1cf221)]();}async[_0x1b3f7d(0x15f)](_0x17f52a,_0x29afdc){const _0x5cb69c={_0xf4619c:0x167,_0x255b53:0x16b},_0x4d9320=_0x1b3f7d;this[_0x4d9320(_0x5cb69c._0xf4619c)]('uncheck',[_0x17f52a,_0x29afdc]),this[_0x4d9320(_0x5cb69c._0x255b53)]();}async[_0x1b3f7d(0x11a)](_0x4d8d46,_0x3dff60,_0x4be9b7){const _0x13777c={_0x2ecbc9:0x167,_0x5ed2de:0x11a,_0x4618e3:0x16b},_0x369373=_0x1b3f7d;this[_0x369373(_0x13777c._0x2ecbc9)](_0x369373(_0x13777c._0x5ed2de),[_0x4d8d46,_0x3dff60,_0x4be9b7]),this[_0x369373(_0x13777c._0x4618e3)]();}async[_0x1b3f7d(0x144)](_0x45b810,_0x22d286){const _0x31fbf5={_0x3d9dbc:0x16b},_0x5a18c3=_0x1b3f7d;this[_0x5a18c3(0x167)]('hover',[_0x45b810,_0x22d286]),this[_0x5a18c3(_0x31fbf5._0x3d9dbc)]();}async[_0x1b3f7d(0x117)](_0x21d430){const _0x6256a5={_0x2eb577:0x167},_0x22663f=_0x1b3f7d;this[_0x22663f(_0x6256a5._0x2eb577)](_0x22663f(0x117),[_0x21d430]),this[_0x22663f(0x16b)]();}async[_0x1b3f7d(0x142)](_0x43a6d6,_0x920c84,_0xf2de1a){const _0x3ab3cf={_0xbb69fd:0x167,_0xe46c6b:0x142,_0x248031:0x16b},_0x26d1a7=_0x1b3f7d;this[_0x26d1a7(_0x3ab3cf._0xbb69fd)](_0x26d1a7(_0x3ab3cf._0xe46c6b),[_0x43a6d6,_0x920c84,_0xf2de1a]),this[_0x26d1a7(_0x3ab3cf._0x248031)]();}async[_0x1b3f7d(0x166)](_0x404aff,_0x57a0cb){const _0x149304={_0x3afac9:0x167},_0x1ccd17=_0x1b3f7d;this[_0x1ccd17(_0x149304._0x3afac9)](_0x1ccd17(0x166),[_0x404aff,_0x57a0cb]),this[_0x1ccd17(0x16b)]();}async['clipboardPaste'](_0x6ba27d,_0x37c45a){const _0x41dc7e={_0x54377a:0x10a},_0x139419=_0x1b3f7d;this[_0x139419(0x167)](_0x139419(_0x41dc7e._0x54377a),[_0x6ba27d,_0x37c45a]),this[_0x139419(0x16b)]();}async[_0x1b3f7d(0x149)](_0x197c5b){const _0x5523a6={_0x1dbc20:0x149},_0x2b53d6=_0x1b3f7d;return this['record'](_0x2b53d6(_0x5523a6._0x1dbc20),[_0x197c5b]),this[_0x2b53d6(0x132)][_0x2b53d6(0x14f)]??0x1;}async[_0x1b3f7d(0x158)](_0x5b974b){const _0x44ffbd={_0x472afb:0x132},_0x4da538=_0x1b3f7d;return this[_0x4da538(0x167)](_0x4da538(0x158),[_0x5b974b]),this[_0x4da538(_0x44ffbd._0x472afb)][_0x4da538(0x159)]??'';}async[_0x1b3f7d(0x122)](_0x5be067){const _0x137fae=_0x1b3f7d;return this['record'](_0x137fae(0x122),[_0x5be067]),this[_0x137fae(0x132)]['inputValueByDefault']??'';}async[_0x1b3f7d(0x16d)](_0x3f77a6){const _0x582c44={_0x2bc151:0x167,_0x162256:0x16d},_0x26e0f2=_0x1b3f7d;return this[_0x26e0f2(_0x582c44._0x2bc151)](_0x26e0f2(_0x582c44._0x162256),[_0x3f77a6]),this[_0x26e0f2(0x132)]['checkedStateByDefault']??null;}async[_0x1b3f7d(0x11b)](_0x5c569a){const _0x77731e={_0x2f274e:0x167,_0x1e5dd7:0x11b,_0x78d70f:0x11e},_0x16f2ed=_0x1b3f7d;return this[_0x16f2ed(_0x77731e._0x2f274e)](_0x16f2ed(_0x77731e._0x1e5dd7),[_0x5c569a]),this['behavior'][_0x16f2ed(_0x77731e._0x78d70f)]??!![];}async[_0x1b3f7d(0x154)](_0x2225b6){const _0x355b52={_0x160e82:0x167,_0x3186ff:0x14d},_0x9a0040=_0x1b3f7d;return this[_0x9a0040(_0x355b52._0x160e82)](_0x9a0040(0x154),[_0x2225b6]),this[_0x9a0040(0x132)][_0x9a0040(_0x355b52._0x3186ff)]??![];}async[_0x1b3f7d(0x143)](_0x1fe5f0,_0x5a1416){const _0x51eabe={_0x2a3748:0x132,_0x22f03a:0x16a},_0x50b115=_0x1b3f7d;return this[_0x50b115(0x167)](_0x50b115(0x143),[_0x1fe5f0,_0x5a1416]),this[_0x50b115(_0x51eabe._0x2a3748)][_0x50b115(_0x51eabe._0x22f03a)]?.[_0x5a1416]??null;}async[_0x1b3f7d(0x12d)](_0x952a51,_0x35a60d){const _0xccff37={_0x5efcee:0x167},_0xa48725=_0x1b3f7d;this[_0xa48725(_0xccff37._0x5efcee)](_0xa48725(0x12d),[_0x952a51,_0x35a60d]);}async[_0x1b3f7d(0x127)](_0x2f6278,_0x2536d9){const _0xf6e5f3={_0x112bc5:0x167},_0x11966c=_0x1b3f7d;this[_0x11966c(_0xf6e5f3._0x112bc5)](_0x11966c(0x127),[_0x2f6278,_0x2536d9]);}async[_0x1b3f7d(0x130)](_0x2bffa9,_0x4e51b3){const _0x2c6508={_0x1af70d:0x167,_0x4b89bd:0x130},_0x3fcba5=_0x1b3f7d;this[_0x3fcba5(_0x2c6508._0x1af70d)](_0x3fcba5(_0x2c6508._0x4b89bd),[_0x2bffa9,_0x4e51b3]);}async['waitForNavigation'](_0x159470){const _0x1c99be={_0x25885a:0x167},_0x43f31c=_0x1b3f7d;this[_0x43f31c(_0x1c99be._0x25885a)]('waitForNavigation',[_0x159470]);}async[_0x1b3f7d(0x133)](_0x825e22,_0x137e16){this['record']('waitForLoadState',[_0x825e22,_0x137e16]);}async[_0x1b3f7d(0x162)](_0x4ab11e,_0x1f3f7e){const _0x55a69b={_0xd63d48:0x167,_0x4dffb5:0x162},_0x50c817=_0x1b3f7d;this[_0x50c817(_0x55a69b._0xd63d48)](_0x50c817(_0x55a69b._0x4dffb5),[_0x4ab11e,_0x1f3f7e]),this[_0x50c817(0x137)]=_0x4ab11e;}async[_0x1b3f7d(0x165)](_0x15803d){const _0x4ced96={_0x56a516:0x165},_0x41e401=_0x1b3f7d;this[_0x41e401(0x167)](_0x41e401(_0x4ced96._0x56a516),[_0x15803d]);}async[_0x1b3f7d(0x141)](_0x14b00a){const _0x4d5f5f={_0x2b4ac1:0x167,_0x132d71:0x141},_0x5f8e9=_0x1b3f7d;this[_0x5f8e9(_0x4d5f5f._0x2b4ac1)](_0x5f8e9(_0x4d5f5f._0x132d71),[_0x14b00a]);}async[_0x1b3f7d(0x145)](_0x4ac0a7){const _0x3aff05=_0x1b3f7d;this[_0x3aff05(0x167)](_0x3aff05(0x145),[_0x4ac0a7]);}async['evaluate'](_0x1eb9ee){const _0x54b231={_0x5486ef:0x167},_0x36fbde=_0x1b3f7d;return this[_0x36fbde(_0x54b231._0x5486ef)](_0x36fbde(0x113),[_0x1eb9ee]),void 0x0;}async[_0x1b3f7d(0x152)](_0xf984c7,_0x851dd6){const _0x3ddd79={_0x576485:0x152},_0x455467=_0x1b3f7d;return this['record'](_0x455467(_0x3ddd79._0x576485),[_0xf984c7,_0x851dd6]),void 0x0;}async[_0x1b3f7d(0x177)](_0x3bedee){const _0x24a5e2={_0x4879aa:0x10b,_0x51dc4f:0x11d},_0x3aa927=_0x1b3f7d;this[_0x3aa927(0x167)](_0x3aa927(0x177),[_0x3bedee]);if(_0x3bedee[_0x3aa927(0x119)][_0x3aa927(_0x24a5e2._0x4879aa)]!==0x1||_0x3bedee['steps'][0x0]['kind']!==_0x3aa927(0x11d))return null;const _0x17bb6f=_0x3bedee[_0x3aa927(0x119)][0x0][_0x3aa927(_0x24a5e2._0x51dc4f)],_0xf0163a=this[_0x3aa927(0x132)]['elementHintByRef']?.[_0x17bb6f];return _0xf0163a??null;}async[_0x1b3f7d(0x104)](_0x13f1eb){const _0x3e4a4e={_0x3760e9:0x174},_0x812595=_0x1b3f7d;return this['record'](_0x812595(0x104),[_0x13f1eb]),Buffer[_0x812595(_0x3e4a4e._0x3760e9)](_0x812595(0x125));}async['outerHTML'](_0x2df4d7){const _0x516794={_0x21bc53:0x138,_0xeac98d:0x119,_0x35ef7e:0x119,_0x4093d8:0x11d,_0x33313a:0x115,_0x2006cf:0x15a},_0x4d7826=_0x1b3f7d;this[_0x4d7826(0x167)](_0x4d7826(_0x516794._0x21bc53),[_0x2df4d7]);if(_0x2df4d7[_0x4d7826(_0x516794._0xeac98d)][_0x4d7826(0x10b)]===0x1&&_0x2df4d7[_0x4d7826(_0x516794._0x35ef7e)][0x0][_0x4d7826(0x146)]===_0x4d7826(_0x516794._0x4093d8)){const _0x2734c9=_0x2df4d7['steps'][0x0][_0x4d7826(_0x516794._0x4093d8)];return this[_0x4d7826(0x132)][_0x4d7826(_0x516794._0x33313a)]?.[_0x2734c9]??'<div\x20data-unotest-ref=\x22'+_0x2734c9+'\x22></div>';}return _0x4d7826(_0x516794._0x2006cf);}},FakeContext=class{constructor(_0x1567ba,_0x5e0112,_0x5bfa53){const _0x25cdf0={_0x2dbfd1:0x161,_0xd9a839:0x128,_0x1bf21b:0x118,_0xfdab7c:0x14a},_0x20e768={_0x142b37:0x123},_0x5989d4=_0x1b3f7d;this[_0x5989d4(_0x25cdf0._0x2dbfd1)]=_0x1567ba,this[_0x5989d4(0x132)]=_0x5e0112,this[_0x5989d4(0x140)]=_0x5bfa53;const _0x2a658a=new FakePage(_0x1567ba,_0x5e0112,_0x5bfa53+_0x5989d4(0x14c),_0x5e0112[_0x5989d4(_0x25cdf0._0xd9a839)]??_0x5989d4(0x11f));_0x5e0112[_0x5989d4(0x123)]&&(_0x2a658a[_0x5989d4(_0x25cdf0._0x1bf21b)]=()=>{const _0x29e2b7=_0x5989d4;this['emitFakePopup'](_0x5e0112[_0x29e2b7(_0x20e768._0x142b37)]);}),this['pageList']=[_0x2a658a],this['localStorageState']={..._0x5e0112[_0x5989d4(_0x25cdf0._0xfdab7c)]??{}},this['cookieState']={..._0x5e0112[_0x5989d4(0x13a)]??{}};}[_0x1b3f7d(0x161)];['behavior'];[_0x1b3f7d(0x140)];static{__name(this,_0x1b3f7d(0x13b));}[_0x1b3f7d(0x175)];[_0x1b3f7d(0x10c)]=0x0;[_0x1b3f7d(0x14b)]=[];[_0x1b3f7d(0x147)];[_0x1b3f7d(0x13d)];[_0x1b3f7d(0x173)]=new Set();[_0x1b3f7d(0x167)](_0x4915c0,_0x5c775a){const _0x3ba894={_0x531235:0x161,_0x1367fb:0x120},_0x14ddf3=_0x1b3f7d;this[_0x14ddf3(_0x3ba894._0x531235)][_0x14ddf3(_0x3ba894._0x1367fb)]({'scope':this[_0x14ddf3(0x140)],'method':_0x4915c0,'args':_0x5c775a});}['pages'](){const _0x5d5364={_0x4b57e4:0x175},_0x19fc96=_0x1b3f7d;return this[_0x19fc96(_0x5d5364._0x4b57e4)];}[_0x1b3f7d(0x136)](){const _0x2e9b1c={_0x281377:0x175,_0xfd94ba:0x10c,_0x40e135:0x131},_0xfecd11=_0x1b3f7d,_0x1e1520=this[_0xfecd11(_0x2e9b1c._0x281377)][this[_0xfecd11(_0x2e9b1c._0xfd94ba)]];if(!_0x1e1520)throw new DriverError(_0xfecd11(_0x2e9b1c._0x40e135),{'activeIdx':this['activeIdx']});return _0x1e1520;}[_0x1b3f7d(0x151)](){const _0x4f4b13=_0x1b3f7d;return this[_0x4f4b13(0x132)][_0x4f4b13(0x151)]??[];}[_0x1b3f7d(0x15e)](){const _0x574f7f=_0x1b3f7d;return this[_0x574f7f(0x132)]['networkEntries']??[];}async[_0x1b3f7d(0x126)](_0x3a926d){const _0x2c739a={_0x12f1f3:0x175,_0x24eaf3:0x10b,_0x38b161:0x10c,_0x595cf3:0x14b},_0x421a3e=_0x1b3f7d;this[_0x421a3e(0x167)]('setActivePage',[_0x3a926d]);if(_0x3a926d<0x0||_0x3a926d>=this[_0x421a3e(0x175)][_0x421a3e(0x10b)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x3a926d,'available':this[_0x421a3e(_0x2c739a._0x12f1f3)][_0x421a3e(_0x2c739a._0x24eaf3)]});this[_0x421a3e(_0x2c739a._0x38b161)]=_0x3a926d,this[_0x421a3e(_0x2c739a._0x595cf3)]['length']=0x0;}[_0x1b3f7d(0x169)](_0x4b9a7f){const _0x47ca64={_0x179909:0x173},_0x532916=_0x1b3f7d;return subscribe(this[_0x532916(_0x47ca64._0x179909)],_0x4b9a7f);}['emitFakePopup'](_0x4935a4){const _0x3dfb9b={_0x4372a8:0x140,_0x29960f:0x106,_0x3b3926:0x10b,_0x50e9cf:0x161,_0x516597:0x132,_0x2d7ac2:0x173},_0x3fd955=_0x1b3f7d,_0x5d1f7a=this[_0x3fd955(_0x3dfb9b._0x4372a8)]+_0x3fd955(_0x3dfb9b._0x29960f)+this[_0x3fd955(0x175)][_0x3fd955(_0x3dfb9b._0x3b3926)],_0x4a8818=new FakePage(this[_0x3fd955(_0x3dfb9b._0x50e9cf)],this[_0x3fd955(_0x3dfb9b._0x516597)],_0x5d1f7a,_0x4935a4);this['pageList'][_0x3fd955(0x120)](_0x4a8818);const _0x3cd7e=this['pageList'][_0x3fd955(_0x3dfb9b._0x3b3926)]-0x1;for(const _0x4f787a of this[_0x3fd955(_0x3dfb9b._0x2d7ac2)]){try{_0x4f787a({'index':_0x3cd7e,'url':_0x4935a4});}catch{}}return _0x3cd7e;}['closeFakePage'](_0x5171cf){const _0x470923={_0x4b2d21:0x175},_0x2ce678=_0x1b3f7d;if(_0x5171cf<0x0||_0x5171cf>=this['pageList'][_0x2ce678(0x10b)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x5171cf,'available':this[_0x2ce678(_0x470923._0x4b2d21)][_0x2ce678(0x10b)]});this[_0x2ce678(0x175)]['splice'](_0x5171cf,0x1);}async[_0x1b3f7d(0x124)](_0x477810){const _0x4b34a7={_0x3f8751:0x167,_0x5071e3:0x124,_0x5b5542:0x119,_0x2de7e4:0x10b,_0x1ee02a:0x163,_0x5a2448:0x120},_0x3af548=_0x1b3f7d;this[_0x3af548(_0x4b34a7._0x3f8751)](_0x3af548(_0x4b34a7._0x5071e3),[_0x477810]);if(!_0x477810[_0x3af548(_0x4b34a7._0x5b5542)][_0x3af548(_0x4b34a7._0x2de7e4)])throw new LocatorError(_0x3af548(_0x4b34a7._0x1ee02a),{'locator':_0x477810});this[_0x3af548(0x14b)][_0x3af548(_0x4b34a7._0x5a2448)](_0x477810);}async[_0x1b3f7d(0x14e)](){const _0x48d625={_0x47c453:0x167,_0x3f570f:0x12e},_0x157a42=_0x1b3f7d;this[_0x157a42(_0x48d625._0x47c453)](_0x157a42(0x14e),[]);if(this['frameStack']['length']===0x0)throw new DriverError(_0x157a42(_0x48d625._0x3f570f),{});this['frameStack'][_0x157a42(0x103)]();}async[_0x1b3f7d(0x139)](_0x2a6907,_0x12a710){const _0xf1e229={_0x388bd6:0x167,_0x2993e:0x139,_0x36f305:0x147},_0x3d3ed6=_0x1b3f7d;this[_0x3d3ed6(_0xf1e229._0x388bd6)](_0x3d3ed6(_0xf1e229._0x2993e),[_0x2a6907,_0x12a710]),this[_0x3d3ed6(_0xf1e229._0x36f305)][_0x2a6907]=_0x12a710;}async['getLocalStorage'](_0x15afe0){const _0x51070e={_0x532734:0x114},_0x346251=_0x1b3f7d;return this[_0x346251(0x167)](_0x346251(_0x51070e._0x532734),[_0x15afe0]),this['localStorageState'][_0x15afe0]??null;}async['setCookie'](_0x5d7234,_0x821fad,_0x32c501){const _0x56978b={_0x1407f5:0x167},_0x5ba1e0=_0x1b3f7d;this[_0x5ba1e0(_0x56978b._0x1407f5)]('setCookie',[_0x5d7234,_0x821fad,_0x32c501]),this[_0x5ba1e0(0x13d)][_0x5d7234]=_0x821fad;}async[_0x1b3f7d(0x116)](_0x589144){const _0x3f8af1={_0x3a415a:0x116},_0x296032=_0x1b3f7d;return this[_0x296032(0x167)](_0x296032(_0x3f8af1._0x3a415a),[_0x589144]),this['cookieState'][_0x589144]??null;}async[_0x1b3f7d(0x164)](_0x38f93b){const _0x453f81=_0x1b3f7d;this[_0x453f81(0x167)](_0x453f81(0x164),[_0x38f93b]);}async[_0x1b3f7d(0x113)](_0x18a1af){const _0x52ea21={_0x4d5baf:0x113},_0x829abd=_0x1b3f7d;return this['record'](_0x829abd(_0x52ea21._0x4d5baf),[_0x18a1af]),void 0x0;}async[_0x1b3f7d(0x172)](){const _0x4379b9={_0x5cc4b6:0x167},_0x1bb5d3=_0x1b3f7d;this[_0x1bb5d3(_0x4379b9._0x5cc4b6)]('close',[]);}[_0x1b3f7d(0x13f)](){const _0x373e6a={_0x472a94:0x14b},_0x236441=_0x1b3f7d;return this[_0x236441(_0x373e6a._0x472a94)][_0x236441(0x10b)];}},FakeWebDriver=class{constructor(_0x1703db={}){this['behavior']=_0x1703db,this['recorder']=createRecorder();}[_0x1b3f7d(0x132)];static{__name(this,_0x1b3f7d(0x121));}[_0x1b3f7d(0x10d)]=![];['recorder'];['contexts']=[];async[_0x1b3f7d(0x108)](_0x1109d8){const _0x335dd7={_0x5b30d0:0x120,_0xcfc371:0x110,_0x185fae:0x10d},_0x3909fb=_0x1b3f7d;this['recorder'][_0x3909fb(_0x335dd7._0x5b30d0)]({'scope':_0x3909fb(_0x335dd7._0xcfc371),'method':_0x3909fb(0x108),'args':[_0x1109d8]}),this[_0x3909fb(_0x335dd7._0x185fae)]=!![];}async[_0x1b3f7d(0x105)](_0x53c2bc){const _0x1a42d5={_0x4142a5:0x110,_0xdecd05:0x105,_0x566af8:0x10d,_0x627ef6:0x161,_0x388b88:0x132,_0x52c417:0x111,_0x387844:0x15c,_0x174bd5:0x120},_0x26cdcf=_0x1b3f7d;this['recorder'][_0x26cdcf(0x120)]({'scope':_0x26cdcf(_0x1a42d5._0x4142a5),'method':_0x26cdcf(_0x1a42d5._0xdecd05),'args':[_0x53c2bc]});if(!this[_0x26cdcf(_0x1a42d5._0x566af8)])throw new DriverError(_0x26cdcf(0x168),{});const _0x1541f5=new FakeContext(this[_0x26cdcf(_0x1a42d5._0x627ef6)],this[_0x26cdcf(_0x1a42d5._0x388b88)],_0x26cdcf(_0x1a42d5._0x52c417)+this[_0x26cdcf(_0x1a42d5._0x387844)]['length']);return this[_0x26cdcf(0x15c)][_0x26cdcf(_0x1a42d5._0x174bd5)](_0x1541f5),_0x1541f5;}async[_0x1b3f7d(0x172)](){const _0x18d675={_0x110c56:0x161,_0x2bd052:0x120,_0x4d5835:0x110},_0x51705b=_0x1b3f7d;this[_0x51705b(_0x18d675._0x110c56)][_0x51705b(_0x18d675._0x2bd052)]({'scope':_0x51705b(_0x18d675._0x4d5835),'method':'close','args':[]}),this[_0x51705b(0x10d)]=![];}[_0x1b3f7d(0x15d)](){return void 0x0;}async[_0x1b3f7d(0x134)](){const _0x372a21=_0x1b3f7d;throw new DriverError(_0x372a21(0x135),{});}[_0x1b3f7d(0x10f)](){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x1b3f7d(0x150)](){const _0x2e2d93={_0x52af54:0x150},_0x457ca1=_0x1b3f7d;return this[_0x457ca1(0x161)][_0x457ca1(_0x2e2d93._0x52af54)]();}[_0x1b3f7d(0x160)](_0x280cc2){const _0x332514={_0x3ffee3:0x150,_0x48c573:0x10e},_0x1fbbb9=_0x1b3f7d;return this[_0x1fbbb9(0x161)][_0x1fbbb9(_0x332514._0x3ffee3)]()[_0x1fbbb9(_0x332514._0x48c573)](_0x56a850=>_0x56a850[_0x1fbbb9(0x12c)]===_0x280cc2);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-
|
|
2
|
-
export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-
|
|
1
|
+
import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-elRn0llQ.js';
|
|
2
|
+
export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-elRn0llQ.js';
|
|
3
3
|
import { Matcher, RegexLiteral } 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';
|