@unotest/web 0.32.0 → 0.35.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/CHANGELOG.md +876 -0
- package/README.md +62 -7
- package/dist/config/schema.d.ts +18 -18
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +9 -9
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -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.d.ts +42 -2
- 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/package.json +9 -9
package/README.md
CHANGED
|
@@ -134,6 +134,56 @@ bundle, so if your config computes `schedules` from its environment, the
|
|
|
134
134
|
box notices the difference and says so instead of silently arming
|
|
135
135
|
another set.
|
|
136
136
|
|
|
137
|
+
### Run on a box
|
|
138
|
+
|
|
139
|
+
Three commands, no token to copy:
|
|
140
|
+
|
|
141
|
+
```sh
|
|
142
|
+
npx @unotest/web login # a link and a code; approve in the browser
|
|
143
|
+
npx @unotest/web box create # rents a box named after the project, size S
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
`login` signs this machine in to unotest cloud — the account that rents
|
|
147
|
+
boxes — and keeps the key in `~/.config/unotest/credentials.json`
|
|
148
|
+
(mode 0600). `box create` creates the box with the environments the
|
|
149
|
+
suite already runs locally (each `unotest/.env.<name>` and its
|
|
150
|
+
`APP_BASE_URL`), asks for a top-up when the balance is short (it prints
|
|
151
|
+
the Checkout link and waits for the payment), waits for the box, writes
|
|
152
|
+
`UNOTEST_BOX_URL` to `unotest/.env` and the push and read tokens to
|
|
153
|
+
`unotest/.secrets`, pushes the suite and prints the viewer's address.
|
|
154
|
+
The tokens live thirty days; `bundle push` and `box …` re-mint them
|
|
155
|
+
through the cloud when a box says they have expired, and `box access`
|
|
156
|
+
does it on demand. `box status` and `box destroy` do what they say;
|
|
157
|
+
`whoami` and `logout` complete the set. In CI, export
|
|
158
|
+
`UNOTEST_CLOUD_TOKEN` instead of signing in.
|
|
159
|
+
|
|
160
|
+
The **Picker** — grounding intent locators on the box's grounder — comes
|
|
161
|
+
with the box today: it lists at €0.05–€0.13 an hour depending on size,
|
|
162
|
+
and that is struck through, nothing is added to the bill. It is still
|
|
163
|
+
never switched on quietly, because that will not always be true.
|
|
164
|
+
`box create --picker` rents the box with it; without the flag a terminal
|
|
165
|
+
is asked once, with the price read from the cloud's own list — the CLI
|
|
166
|
+
has no price of its own — and the answer defaults to no. On a box you already have, `box picker on` and
|
|
167
|
+
`box picker off` switch it without re-creating anything: `on` writes
|
|
168
|
+
`UNOTEST_GROUNDER_MODE=remote` and `UNOTEST_GROUNDER_REMOTE_URL` to
|
|
169
|
+
`unotest/.env` and `UNOTEST_GROUNDER_REMOTE_TOKEN` to `unotest/.secrets`,
|
|
170
|
+
`off` clears the three again — unless they name a grounder that is not
|
|
171
|
+
this box's, which is left alone and reported. `off` also revokes the
|
|
172
|
+
box's Picker token, so a copy of it on another machine stops working
|
|
173
|
+
too: the grounder refuses it once it has re-read the operator's
|
|
174
|
+
revocation list — how often it does that is the operator's own setting. Either way the charge follows at the
|
|
175
|
+
next hourly tick, because a started hour is charged at the rate it
|
|
176
|
+
started with. `box status` says which state a box is in, and — while the
|
|
177
|
+
Picker is on — which models the cloud grounds with: `Our GPU` or
|
|
178
|
+
`External provider (Gemini)`. That is our grounder, not your
|
|
179
|
+
`UNOTEST_GROUNDER_MODE`; a cloud that has not heard from its grounder
|
|
180
|
+
prints nothing rather than a guess.
|
|
181
|
+
|
|
182
|
+
An agent can drive all of it without a terminal: no prompt is shown
|
|
183
|
+
without a TTY, and the exit codes say what happened — 75 the payment was
|
|
184
|
+
not confirmed in time, 76 the terms of service need accepting (a person
|
|
185
|
+
must, in a browser), 77 not signed in.
|
|
186
|
+
|
|
137
187
|
### Sending the suite to a box
|
|
138
188
|
|
|
139
189
|
If your team runs a box (a machine that keeps the environments, the
|
|
@@ -156,8 +206,11 @@ step. Secrets stay behind: `unotest/.env*` and `.secrets*` never travel,
|
|
|
156
206
|
because environment values belong to the environment and are injected
|
|
157
207
|
over the bundle when it runs. Install hooks (`postinstall`, `prepare`,
|
|
158
208
|
...) are removed from the packed `unotest/package.json`: a box installs
|
|
159
|
-
the suite's dependencies, it does not run a checkout's hooks.
|
|
160
|
-
install scripts
|
|
209
|
+
the suite's dependencies, it does not run a checkout's hooks. Your
|
|
210
|
+
DEPENDENCIES' install scripts do run — a native module builds or fetches
|
|
211
|
+
its binary as usual — because on a box that install happens in a
|
|
212
|
+
container of its own, with the bundle tree as its only writable mount
|
|
213
|
+
and none of the box's state in reach.
|
|
161
214
|
|
|
162
215
|
What would break on the box is refused here instead — a scenario that
|
|
163
216
|
reads a file outside `unotest/`, a missing `unotest/package-lock.json`,
|
|
@@ -244,11 +297,13 @@ started by your editor, so a token that only exists in your shell is a
|
|
|
244
297
|
token the agent never sees. A token added while the server is running is
|
|
245
298
|
picked up on the next call — nothing to restart.
|
|
246
299
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
300
|
+
With a box rented through `box create`, the token is minted for you —
|
|
301
|
+
`box access` re-mints it — and lives thirty days. On a box set up by
|
|
302
|
+
hand you mint it for yourself on the box's guard, where it is shown once
|
|
303
|
+
and can be revoked. Either way it is read-only whatever your role on the
|
|
304
|
+
box — it cannot start a run or change a value. `UNOTEST_BOX_TOKEN` is the
|
|
305
|
+
project's push credential and cannot read runs. `box envs` lists the
|
|
306
|
+
environments a token may look at.
|
|
252
307
|
|
|
253
308
|
## 5. Watch it run — the viewer
|
|
254
309
|
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ declare const RetryConfigSchema: z.ZodObject<{
|
|
|
30
30
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
count: number;
|
|
33
|
-
on: ("
|
|
33
|
+
on: ("transient" | "network" | "crash")[];
|
|
34
34
|
}, {
|
|
35
35
|
count: number;
|
|
36
|
-
on: ("
|
|
36
|
+
on: ("transient" | "network" | "crash")[];
|
|
37
37
|
}>;
|
|
38
38
|
type RetryConfig = z.infer<typeof RetryConfigSchema>;
|
|
39
39
|
declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
@@ -215,15 +215,15 @@ declare const WebServerConfigSchema: z.ZodObject<{
|
|
|
215
215
|
/** How long to wait for the URL to come up after spawning. */
|
|
216
216
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
url: string;
|
|
219
|
-
timeoutMs: number;
|
|
220
218
|
command: string;
|
|
219
|
+
url: string;
|
|
221
220
|
reuseExistingServer: boolean;
|
|
221
|
+
timeoutMs: number;
|
|
222
222
|
}, {
|
|
223
|
-
url: string;
|
|
224
223
|
command: string;
|
|
225
|
-
|
|
224
|
+
url: string;
|
|
226
225
|
reuseExistingServer?: boolean | undefined;
|
|
226
|
+
timeoutMs?: number | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
|
|
229
229
|
declare const UnotestConfigSchema: z.ZodObject<{
|
|
@@ -249,15 +249,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
249
249
|
/** How long to wait for the URL to come up after spawning. */
|
|
250
250
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
url: string;
|
|
253
|
-
timeoutMs: number;
|
|
254
252
|
command: string;
|
|
253
|
+
url: string;
|
|
255
254
|
reuseExistingServer: boolean;
|
|
255
|
+
timeoutMs: number;
|
|
256
256
|
}, {
|
|
257
|
-
url: string;
|
|
258
257
|
command: string;
|
|
259
|
-
|
|
258
|
+
url: string;
|
|
260
259
|
reuseExistingServer?: boolean | undefined;
|
|
260
|
+
timeoutMs?: number | undefined;
|
|
261
261
|
}>>;
|
|
262
262
|
browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
|
|
263
263
|
channel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodNull]>>;
|
|
@@ -276,10 +276,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
276
276
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
count: number;
|
|
279
|
-
on: ("
|
|
279
|
+
on: ("transient" | "network" | "crash")[];
|
|
280
280
|
}, {
|
|
281
281
|
count: number;
|
|
282
|
-
on: ("
|
|
282
|
+
on: ("transient" | "network" | "crash")[];
|
|
283
283
|
}>;
|
|
284
284
|
failureBundle: z.ZodObject<{
|
|
285
285
|
/** Tier 1 is always on by D-16. Schema lock — not user-toggleable. */
|
|
@@ -461,7 +461,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
461
461
|
};
|
|
462
462
|
retry: {
|
|
463
463
|
count: number;
|
|
464
|
-
on: ("
|
|
464
|
+
on: ("transient" | "network" | "crash")[];
|
|
465
465
|
};
|
|
466
466
|
failureBundle: {
|
|
467
467
|
tier1: true;
|
|
@@ -508,10 +508,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
508
508
|
};
|
|
509
509
|
baseUrl?: string | undefined;
|
|
510
510
|
webServer?: {
|
|
511
|
-
url: string;
|
|
512
|
-
timeoutMs: number;
|
|
513
511
|
command: string;
|
|
512
|
+
url: string;
|
|
514
513
|
reuseExistingServer: boolean;
|
|
514
|
+
timeoutMs: number;
|
|
515
515
|
} | undefined;
|
|
516
516
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
517
517
|
storageState?: string | undefined;
|
|
@@ -523,7 +523,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
523
523
|
};
|
|
524
524
|
retry: {
|
|
525
525
|
count: number;
|
|
526
|
-
on: ("
|
|
526
|
+
on: ("transient" | "network" | "crash")[];
|
|
527
527
|
};
|
|
528
528
|
failureBundle: {
|
|
529
529
|
tier2: boolean;
|
|
@@ -564,10 +564,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
564
564
|
};
|
|
565
565
|
baseUrl?: string | undefined;
|
|
566
566
|
webServer?: {
|
|
567
|
-
url: string;
|
|
568
567
|
command: string;
|
|
569
|
-
|
|
568
|
+
url: string;
|
|
570
569
|
reuseExistingServer?: boolean | undefined;
|
|
570
|
+
timeoutMs?: number | undefined;
|
|
571
571
|
} | undefined;
|
|
572
572
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
573
573
|
storageState?: string | undefined;
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4720f=_0x34a9;(function(_0x826596,_0x7378e2){var _0x580c74={_0x11bd5d:0x1e6,_0x566ad7:0x20e,_0x2cc2df:0x1e7,_0x4f593a:0x1f2},_0x567a47=_0x34a9,_0x4a992f=_0x826596();while(!![]){try{var _0x5b42ba=parseInt(_0x567a47(0x20b))/0x1*(-parseInt(_0x567a47(_0x580c74._0x11bd5d))/0x2)+-parseInt(_0x567a47(_0x580c74._0x566ad7))/0x3*(-parseInt(_0x567a47(0x21a))/0x4)+-parseInt(_0x567a47(0x1f3))/0x5+-parseInt(_0x567a47(0x216))/0x6*(parseInt(_0x567a47(0x21c))/0x7)+parseInt(_0x567a47(_0x580c74._0x2cc2df))/0x8*(-parseInt(_0x567a47(0x1e2))/0x9)+parseInt(_0x567a47(_0x580c74._0x4f593a))/0xa+parseInt(_0x567a47(0x215))/0xb;if(_0x5b42ba===_0x7378e2)break;else _0x4a992f['push'](_0x4a992f['shift']());}catch(_0x100435){_0x4a992f['push'](_0x4a992f['shift']());}}}(_0x4934,0x56da4));function _0x34a9(_0x1f9538,_0x26fab8){_0x1f9538=_0x1f9538-0x1e2;var _0x49348b=_0x4934();var _0x34a95a=_0x49348b[_0x1f9538];if(_0x34a9['ySfopf']===undefined){var _0x3c2b13=function(_0x4bdaa8){var _0x258dfe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1b1b5d='',_0x2cc6fe='';for(var _0x33b163=0x0,_0x2a4240,_0x1d3fdb,_0x13f262=0x0;_0x1d3fdb=_0x4bdaa8['charAt'](_0x13f262++);~_0x1d3fdb&&(_0x2a4240=_0x33b163%0x4?_0x2a4240*0x40+_0x1d3fdb:_0x1d3fdb,_0x33b163++%0x4)?_0x1b1b5d+=String['fromCharCode'](0xff&_0x2a4240>>(-0x2*_0x33b163&0x6)):0x0){_0x1d3fdb=_0x258dfe['indexOf'](_0x1d3fdb);}for(var _0x3aaedc=0x0,_0x3e47d7=_0x1b1b5d['length'];_0x3aaedc<_0x3e47d7;_0x3aaedc++){_0x2cc6fe+='%'+('00'+_0x1b1b5d['charCodeAt'](_0x3aaedc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cc6fe);};_0x34a9['tKVIST']=_0x3c2b13,_0x34a9['YXCgrC']={},_0x34a9['ySfopf']=!![];}var _0x382cd8=_0x49348b[0x0],_0x3de38f=_0x1f9538+_0x382cd8,_0x27a13c=_0x34a9['YXCgrC'][_0x3de38f];return!_0x27a13c?(_0x34a95a=_0x34a9['tKVIST'](_0x34a95a),_0x34a9['YXCgrC'][_0x3de38f]=_0x34a95a):_0x34a95a=_0x27a13c,_0x34a95a;}import{z}from'zod';var BrowserSchema=z[_0x4720f(0x211)]([_0x4720f(0x1f7),_0x4720f(0x1e5),_0x4720f(0x20a)]),BrowserChannelSchema=z['union']([z[_0x4720f(0x1f5)](_0x4720f(0x1e3)),z[_0x4720f(0x1f5)](_0x4720f(0x1ed)),z[_0x4720f(0x1f5)](_0x4720f(0x20d)),z[_0x4720f(0x213)]()])['optional'](),ViewportSchema=z[_0x4720f(0x221)]({'width':z['number']()[_0x4720f(0x218)]()[_0x4720f(0x220)](),'height':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()[_0x4720f(0x220)]()}),RetryReasonSchema=z['enum'](['transient','network',_0x4720f(0x210)]),RetryConfigSchema=z[_0x4720f(0x221)]({'count':z['number']()[_0x4720f(0x218)]()[_0x4720f(0x204)](0x0)[_0x4720f(0x21b)](0xa),'on':z[_0x4720f(0x1e9)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x4720f(0x221)]({'tier1':z[_0x4720f(0x1f5)](!![])[_0x4720f(0x1ef)](!![]),'tier2':z[_0x4720f(0x1ee)](),'tier3':z[_0x4720f(0x221)]({'network':z['boolean'](),'video':z['boolean']()}),'retention':z[_0x4720f(0x221)]({'runs':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()[_0x4720f(0x220)](),'days':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()['positive']()}),'storageDir':z[_0x4720f(0x203)]()[_0x4720f(0x204)](0x1)}),DialogPolicySchema=z[_0x4720f(0x211)]([_0x4720f(0x224),'dismiss','manual']),LinterRuleIdSchema=z['enum']([_0x4720f(0x209),'lint:xpath',_0x4720f(0x21e),'lint:pause-explicit',_0x4720f(0x1ea),_0x4720f(0x1fc),_0x4720f(0x1f0),'lint:mustache-in-dsl','lint:goto-concat',_0x4720f(0x1e4),'lint:echo-assert',_0x4720f(0x1f9),_0x4720f(0x219),_0x4720f(0x208),_0x4720f(0x1ff),_0x4720f(0x200),_0x4720f(0x1f6),_0x4720f(0x1e8),_0x4720f(0x207),_0x4720f(0x1eb),'validator:step-coverage',_0x4720f(0x1fd),_0x4720f(0x223),_0x4720f(0x1f4),_0x4720f(0x1fb),_0x4720f(0x1fe),_0x4720f(0x21d),'validator:unsupported-statement','validator:unsupported-expression',_0x4720f(0x206),_0x4720f(0x222),_0x4720f(0x1ec),'validator:wrapped-format']),LinterSeveritySchema=z['enum']([_0x4720f(0x21f),'warn',_0x4720f(0x217)]),LinterConfigSchema=z['object']({'enabled':z[_0x4720f(0x1ee)](),'rules':z[_0x4720f(0x201)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=z[_0x4720f(0x221)]({'enabled':z[_0x4720f(0x1ee)]()[_0x4720f(0x1ef)](!![]),'concurrency':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()[_0x4720f(0x220)]()['default'](0x1)}),ScheduleSchema=z[_0x4720f(0x221)]({'collection':z[_0x4720f(0x203)]()[_0x4720f(0x204)](0x1),'cron':z[_0x4720f(0x203)]()[_0x4720f(0x204)](0x1),'env':z[_0x4720f(0x203)]()[_0x4720f(0x204)](0x1)['optional'](),'prepare':z['string']()[_0x4720f(0x204)](0x1)[_0x4720f(0x205)]()}),McpConfigSchema=z[_0x4720f(0x221)]({'transport':z[_0x4720f(0x1f5)]('stdio')}),SandboxConfigSchema=z[_0x4720f(0x221)]({'shellCwd':z[_0x4720f(0x203)]()[_0x4720f(0x205)](),'shellTimeoutMs':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()[_0x4720f(0x220)]()[_0x4720f(0x205)](),'exportSecrets':z[_0x4720f(0x1e9)](z[_0x4720f(0x203)]())[_0x4720f(0x205)](),'database':z['string']()[_0x4720f(0x205)](),'apiBaseUrl':z[_0x4720f(0x203)]()[_0x4720f(0x212)]()[_0x4720f(0x205)](),'uploadDir':z[_0x4720f(0x203)]()['optional']()}),WebServerConfigSchema=z[_0x4720f(0x221)]({'command':z[_0x4720f(0x203)]()['min'](0x1),'url':z[_0x4720f(0x203)]()['url'](),'reuseExistingServer':z[_0x4720f(0x1ee)]()[_0x4720f(0x1ef)](!![]),'timeoutMs':z['number']()[_0x4720f(0x218)]()[_0x4720f(0x220)]()[_0x4720f(0x1ef)](0xea60)}),UnotestConfigSchema=z[_0x4720f(0x221)]({'baseUrl':z[_0x4720f(0x203)]()[_0x4720f(0x212)]()[_0x4720f(0x205)](),'webServer':WebServerConfigSchema[_0x4720f(0x205)](),'browsers':z[_0x4720f(0x1e9)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x4720f(0x203)]()[_0x4720f(0x205)](),'testDir':z['string']()[_0x4720f(0x204)](0x1),'helpersDir':z[_0x4720f(0x203)]()[_0x4720f(0x204)](0x1),'defaultTimeoutMs':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()['positive'](),'defaultNavigationTimeoutMs':z[_0x4720f(0x20f)]()[_0x4720f(0x218)]()[_0x4720f(0x220)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':z['array'](ScheduleSchema)[_0x4720f(0x1ef)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':['chromium'],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x4720f(0x1fa)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4720f(0x1f1)},'dialogPolicy':_0x4720f(0x224),'testDir':_0x4720f(0x20c),'helpersDir':_0x4720f(0x202),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x4720f(0x1f8),'lint:xpath':_0x4720f(0x1f8),'lint:obfuscated-class':_0x4720f(0x1f8),'lint:pause-explicit':_0x4720f(0x1f8),'lint:disambig-by-index':_0x4720f(0x21f),'lint:evaluate-discouraged':_0x4720f(0x1f8),'lint:scenario-in-root':'error','lint:mustache-in-dsl':'error','lint:goto-concat':_0x4720f(0x1f8),'lint:regex-invalid':_0x4720f(0x217),'lint:echo-assert':'warn','lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x4720f(0x1f8),'lint:legacy-layout':_0x4720f(0x1f8),'lint:external-variable-undeclared':_0x4720f(0x217),'lint:one-test-per-file':'warn','validator:unknown-function':_0x4720f(0x217)}},'mcp':{'transport':_0x4720f(0x214)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};function _0x4934(){var _0x1af210=['BNvSBa','C3rKAw8','mty5mdqWmdHlt2zKz3O','nLfPEePAAG','zxjYB3i','Aw50','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','mtj3AunpvvO','Bwf4','mtKYnJeXm3PUz0PmEG','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','B2zM','Cg9ZAxrPDMu','B2jQzwn0','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DMfSAwrHDg9YoM1LDgeTC2HHCgu','ywnJzxb0','mJDxsu55swG','y2HYB21L','BgLUDdPYzwDLEc1PBNzHBgLK','zMLYzwzVEa','ntHTqujjr2m','mteWmZK0ngnMvKffqW','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yxjYyxK','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoMXPC3qTyxjN','BxnLzgDL','yM9VBgvHBG','zgvMyxvSDa','BgLUDdPZy2vUyxjPBY1PBI1YB290','lNvUB3rLC3qVzMfPBhvYzxm','mty0mdy4mgDfz25vsW','mZm2mteYnw1btfvZBW','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','BgL0zxjHBa','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','y2HYB21PDw0','D2fYBG','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','DhjHBNnPzw50','DMfSAwrHDg9YoMzVCI1ZAgfWzq','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoMLMlxnOyxbL','BgLUDdPSzwDHy3KTBgf5B3v0','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','CMvJB3jK','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','C3rYAw5N','BwLU','B3b0Aw9UywW','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMfYAxr5','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','BgLUDdPKzwvWlwnZCW','D2vIA2L0','mtq5ogrOBNPivW','Dw5VDgvZDc9LmMu','y2HYB21LlwjLDge','ntK3ntDtuffktva','BNvTyMvY','y3jHC2G','zw51Bq','DxjS'];_0x4934=function(){return _0x1af210;};return _0x4934();}export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x270b(_0xcec87e,_0x436d56){_0xcec87e=_0xcec87e-0x18f;const _0x182f06=_0x182f();let _0x270bfa=_0x182f06[_0xcec87e];if(_0x270b['QHqkUi']===undefined){var _0xeae874=function(_0x278cbe){const _0x590767='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3812e5='',_0x444a60='';for(let _0xfe7289=0x0,_0x1daf50,_0x4e1ade,_0x1f8ccb=0x0;_0x4e1ade=_0x278cbe['charAt'](_0x1f8ccb++);~_0x4e1ade&&(_0x1daf50=_0xfe7289%0x4?_0x1daf50*0x40+_0x4e1ade:_0x4e1ade,_0xfe7289++%0x4)?_0x3812e5+=String['fromCharCode'](0xff&_0x1daf50>>(-0x2*_0xfe7289&0x6)):0x0){_0x4e1ade=_0x590767['indexOf'](_0x4e1ade);}for(let _0x539e05=0x0,_0x20b1ef=_0x3812e5['length'];_0x539e05<_0x20b1ef;_0x539e05++){_0x444a60+='%'+('00'+_0x3812e5['charCodeAt'](_0x539e05)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x444a60);};_0x270b['QOmeZq']=_0xeae874,_0x270b['OcTQhQ']={},_0x270b['QHqkUi']=!![];}const _0x55aff7=_0x182f06[0x0],_0x2f9ef9=_0xcec87e+_0x55aff7,_0x41686f=_0x270b['OcTQhQ'][_0x2f9ef9];return!_0x41686f?(_0x270bfa=_0x270b['QOmeZq'](_0x270bfa),_0x270b['OcTQhQ'][_0x2f9ef9]=_0x270bfa):_0x270bfa=_0x41686f,_0x270bfa;}const _0x2db01d=_0x270b;(function(_0x51b598,_0x5bd198){const _0x5b4d6a={_0x2a3eab:0x1a7,_0x3f395c:0x1f2,_0x4ed4bb:0x1be,_0x1af903:0x190,_0xf09f55:0x1a2},_0x32f4d2=_0x270b,_0xc9d200=_0x51b598();while(!![]){try{const _0x3f9628=-parseInt(_0x32f4d2(0x20c))/0x1*(-parseInt(_0x32f4d2(_0x5b4d6a._0x2a3eab))/0x2)+-parseInt(_0x32f4d2(0x1ce))/0x3*(-parseInt(_0x32f4d2(0x1d2))/0x4)+-parseInt(_0x32f4d2(0x1e0))/0x5+-parseInt(_0x32f4d2(_0x5b4d6a._0x3f395c))/0x6*(-parseInt(_0x32f4d2(_0x5b4d6a._0x4ed4bb))/0x7)+parseInt(_0x32f4d2(0x1ec))/0x8+parseInt(_0x32f4d2(_0x5b4d6a._0x1af903))/0x9+-parseInt(_0x32f4d2(_0x5b4d6a._0xf09f55))/0xa;if(_0x3f9628===_0x5bd198)break;else _0xc9d200['push'](_0xc9d200['shift']());}catch(_0x355051){_0xc9d200['push'](_0xc9d200['shift']());}}}(_0x182f,0x3e8a9));var __defProp=Object[_0x2db01d(0x195)],__name=(_0x3812e5,_0x444a60)=>__defProp(_0x3812e5,_0x2db01d(0x20b),{'value':_0x444a60,'configurable':!![]});function _0x182f(){const _0x38faf6=['zMLSBa','D2fPDezVCK5HDMLNyxrPB24','zgvSzxrL','z2v0tg9JywXtDg9YywDL','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zxzHBhvHDgvszxn1Bhq','y2XPy2S','mZm2ntGWoevoCwHwza','zhjPDMvY','z29cywnR','Bwf5yMvuAhjVDW','y29VA2LLu3rHDgu','C2vSzwn0t3b0Aw9U','mtj4yMfJCNa','Aw5WDxrwywX1zq','B25bzNrLCKnSAwnR','Aw5PDgLHBfvYBa','Aw5UzxjuzxH0qNLezwzHDwX0','z29gB3j3yxjK','iJ48l2rPDJ4','C2v0qwn0AxzLugfNzq','BMv3q29UDgv4Da','DgL0Bgu','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','ywn0AxzLswr4','yxr0CMLIDxrLC0j5rgvMyxvSDa','ChjLC3m','Bg9JywXtDg9YywDL','lNbHz2u','yMvOyxzPB3i','y2XPCgjVyxjKugfZDgu','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','BgvUz3rO','D2fPDezVCLrLEhq','rMfRzvbHz2u','zw1PDezHA2vqB3b1Ca','C2nYB2XSsw50B1zPzxC','BMfTzq','odK5odzfCvL6t1m','yxr0ywnOrxHPC3rPBMC','z290BW','Bgf1BMnOzwq','mJCXntKZmgjhzNr2qW','Aw5WDxrwywX1zuj5rgvMyxvSDa','y29VA2LLCW','z2v0qxr0CMLIDxrL','C2nYzwvUC2HVDa','zgvMAw5LuhjVCgvYDhK','Bg9JywXtDg9YywDLu3rHDgu','Cg9WDxbpBKnSAwnR','ChvZAa','y29UBMvJDfnOyxjLza','AxnwAxnPyMXL','zMfRzs1WBMC','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y29UC29SzuvUDhjPzxm','BMv3ugfNzuXPC3rLBMvYCW','y3jLyxrLuMvJB3jKzxi','zxzHBhvHDgvpBKXVy2f0B3i','CgfNzuXPC3q','mtu0ndiXmZbms2v0rMS','C3vIC2nYAwjL','C2nVCgu','B3v0zxjiDg1SqNLszwy','lNbHz2uW','ofj4AKfWDG','zNjHBwvtDgfJAW','zMfRzsb0AxrSzq','z2v0q29VA2LL','zxjYB3jpBK5LEhrby3rPB24','pgrPDJ48l2rPDJ4','DhLWzq','C2nYzwvUC2HVDej5DgvZ','D2fPDezVCG','D2fPDezVCKXVywrtDgf0zq','y2XVC2u','Bwv0Ag9K','zg91yMXLq2XPy2S','tg9JyxrVCKvYCM9Y','y2HLy2TLzfn0yxrLqNLezwzHDwX0','Aw5ZCgvJDevSzw1LBNq','Dgv4DenVBNrLBNq','CMvJB3jK','y29UDgv4Dhm','zw50zxjgCMfTzq','zNvUy3rPB24','zxzHBhvHDgu','B3v0zxjive1m','mtCWmdi5m0f1v3fyqW','zhjHz0fUzerYB3a','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','y3vYCMvUDfvYBa','D3nfBMrWB2LUDa','Bgf1BMnO','rMfRzunVBNrLEhq','CgfNzxm','A2LUza','C3rLChm','y2fSBhngB3i','rMfRzvDLyKrYAxzLCG','C2v0q29VA2LL','DxbSB2fKrMLSzq','y2XVC2vgywTLugfNzq','y3r4','mtq1ndG3muPsqNrgDG','Dw5JAgvJAW','y291BNq','BMv0D29YA0vUDhjPzxm','nermEKXxAW','AxneAxnHyMXLza','CMvJB3jKzxi','B25ozxDqywDL','Aw5UzxjuzxH0','CMvSB2fK','Ag92zxi','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','CMvM','y2HLy2S','AxnwAxnPyMXLqNLezwzHDwX0','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','ywjVDxq6yMXHBMS','mti2nda2nwX2t0H2vG','D2fPDezVCLvYBa','ywn0AxzLugfNzq','y2fSBhm','zxHPDezYyw1L'];_0x182f=function(){return _0x38faf6;};return _0x182f();}function subscribe(_0xfe7289,_0x1daf50){const _0x5e8af3={_0x151b40:0x1e7};return _0xfe7289['add'](_0x1daf50),()=>{const _0x1ad85d=_0x270b;_0xfe7289[_0x1ad85d(_0x5e8af3._0x151b40)](_0x1daf50);};}__name(subscribe,_0x2db01d(0x1a3));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x2db01d(0x1b4));}};function createRecorder(){const _0x40a333={_0x5ca034:0x1e3},_0x204f7f=_0x2db01d,_0x4e1ade=[];let _0x1f8ccb=0x0;return{'push':__name(_0x539e05=>_0x4e1ade[_0x204f7f(0x198)]({..._0x539e05,'seq':_0x1f8ccb++}),'push'),'calls':__name(()=>_0x4e1ade,_0x204f7f(_0x40a333._0x5ca034))};}__name(createRecorder,_0x2db01d(0x19f));var FakePage=class{constructor(_0x20b1ef,_0x5b30f0,_0x22b6a3,_0x49dac7){const _0x1769af=_0x2db01d;this[_0x1769af(0x1d4)]=_0x20b1ef,this[_0x1769af(0x203)]=_0x5b30f0,this[_0x1769af(0x1a4)]=_0x22b6a3,this['currentUrl']=_0x49dac7;}[_0x2db01d(0x1d4)];['behavior'];[_0x2db01d(0x1a4)];static{__name(this,_0x2db01d(0x208));}[_0x2db01d(0x1c1)];[_0x2db01d(0x1f4)];[_0x2db01d(0x1b8)](_0x274f52,_0x3fcaa3){const _0x57dcb2={_0x3c0f5c:0x1d4,_0x3b8cb1:0x198},_0x3eea20=_0x2db01d;this[_0x3eea20(_0x57dcb2._0x3c0f5c)][_0x3eea20(_0x57dcb2._0x3b8cb1)]({'scope':this[_0x3eea20(0x1a4)],'method':_0x274f52,'args':_0x3fcaa3});}[_0x2db01d(0x1ef)](){const _0x25be34={_0x3fd481:0x1ab},_0x3773d4=_0x2db01d;if(this[_0x3773d4(0x203)][_0x3773d4(_0x25be34._0x3fd481)]){const _0x3547c5=this[_0x3773d4(0x203)][_0x3773d4(_0x25be34._0x3fd481)];this['behavior']['errorOnNextAction']=void 0x0;throw _0x3547c5;}}['url'](){const _0x3971c9=_0x2db01d;return this[_0x3971c9(0x1c1)];}async['title'](){const _0x45b82f={_0x41df3c:0x1fb,_0x25672b:0x1a9},_0x4162b6=_0x2db01d;return this[_0x4162b6(0x1b8)](_0x4162b6(_0x45b82f._0x41df3c),[]),_0x4162b6(_0x45b82f._0x25672b);}async[_0x2db01d(0x1eb)](_0x4d7d1e,_0x3af385){const _0x5ed5a5={_0x4cb928:0x1b8,_0x334f82:0x1eb},_0x1c67e6=_0x2db01d;this[_0x1c67e6(_0x5ed5a5._0x4cb928)](_0x1c67e6(_0x5ed5a5._0x334f82),[_0x4d7d1e,_0x3af385]),this[_0x1c67e6(0x1ef)](),this[_0x1c67e6(0x1f4)]?.();}async[_0x2db01d(0x1b3)](_0x193341,_0x3a51d6){const _0x313edd={_0x9544ba:0x1b3},_0x1583d4=_0x2db01d;this[_0x1583d4(0x1b8)](_0x1583d4(_0x313edd._0x9544ba),[_0x193341,_0x3a51d6]),this[_0x1583d4(0x1ef)]();}async[_0x2db01d(0x1e5)](_0x3e5b52,_0x510674,_0x2ac214){const _0x8bdbd6={_0x52ddaa:0x1b8,_0x41bfea:0x1ef},_0x32bff7=_0x2db01d;this[_0x32bff7(_0x8bdbd6._0x52ddaa)]('fill',[_0x3e5b52,_0x510674,_0x2ac214]),this[_0x32bff7(_0x8bdbd6._0x41bfea)]();}async[_0x2db01d(0x200)](_0x352c29,_0x51c5aa,_0x4eab7b){const _0xdaa25e=_0x2db01d;this['record'](_0xdaa25e(0x200),[_0x352c29,_0x51c5aa,_0x4eab7b]),this[_0xdaa25e(0x1ef)]();}async[_0x2db01d(0x1dc)](_0x59225b,_0x5624f6){const _0x5321b4=_0x2db01d;this[_0x5321b4(0x1b8)](_0x5321b4(0x1dc),[_0x59225b,_0x5624f6]),this[_0x5321b4(0x1ef)]();}async[_0x2db01d(0x1cf)](_0x4a6545,_0x52526a){const _0x3d425a={_0x5e87ae:0x1cf},_0x4b5182=_0x2db01d;this['record'](_0x4b5182(_0x3d425a._0x5e87ae),[_0x4a6545,_0x52526a]),this[_0x4b5182(0x1ef)]();}async[_0x2db01d(0x1f1)](_0xb1f341,_0x4692c5,_0x3ddd2e){const _0x185220={_0x3696b9:0x1ef},_0x2d006f=_0x2db01d;this[_0x2d006f(0x1b8)](_0x2d006f(0x1f1),[_0xb1f341,_0x4692c5,_0x3ddd2e]),this[_0x2d006f(_0x185220._0x3696b9)]();}async[_0x2db01d(0x1d8)](_0x2dc21a,_0x4c07db){const _0x20eabf={_0x27216d:0x1ef},_0x9f50e7=_0x2db01d;this[_0x9f50e7(0x1b8)]('hover',[_0x2dc21a,_0x4c07db]),this[_0x9f50e7(_0x20eabf._0x27216d)]();}async[_0x2db01d(0x20a)](_0x5be87e){const _0x1661ae=_0x2db01d;this[_0x1661ae(0x1b8)]('scrollIntoView',[_0x5be87e]),this[_0x1661ae(0x1ef)]();}async[_0x2db01d(0x1bf)](_0x2817da,_0x330a27,_0x1e2531){const _0x317a9d=_0x2db01d;this['record'](_0x317a9d(0x1bf),[_0x2817da,_0x330a27,_0x1e2531]),this[_0x317a9d(0x1ef)]();}async[_0x2db01d(0x1cb)](_0x35fb1b,_0x166d66){const _0x44730c={_0xa7ea83:0x1b8,_0xbc97a8:0x1cb},_0xe54936=_0x2db01d;this[_0xe54936(_0x44730c._0xa7ea83)](_0xe54936(_0x44730c._0xbc97a8),[_0x35fb1b,_0x166d66]),this[_0xe54936(0x1ef)]();}async['clipboardPaste'](_0x2e5f90,_0x1b0959){const _0x5edaee=_0x2db01d;this[_0x5edaee(0x1b8)](_0x5edaee(0x204),[_0x2e5f90,_0x1b0959]),this[_0x5edaee(0x1ef)]();}async[_0x2db01d(0x1d0)](_0x4a7d63){const _0x1ab594=_0x2db01d;return this[_0x1ab594(0x1b8)](_0x1ab594(0x1d0),[_0x4a7d63]),this['behavior']['countByDefault']??0x1;}async[_0x2db01d(0x1b7)](_0x11de74){const _0x5d2e6e={_0x84d4e0:0x1e9},_0x38ef61=_0x2db01d;return this[_0x38ef61(0x1b8)]('textContent',[_0x11de74]),this[_0x38ef61(0x203)][_0x38ef61(_0x5d2e6e._0x84d4e0)]??'';}async[_0x2db01d(0x1d6)](_0x3b385a){const _0x35604c={_0xc0fda5:0x1b8,_0x4303d4:0x1d6,_0x54a0f7:0x1f6,_0x4713ac:0x1e9},_0x97e297=_0x2db01d;return this[_0x97e297(_0x35604c._0xc0fda5)](_0x97e297(_0x35604c._0x4303d4),[_0x3b385a]),this['behavior'][_0x97e297(_0x35604c._0x54a0f7)]??this[_0x97e297(0x203)][_0x97e297(_0x35604c._0x4713ac)]??'';}async['inputValue'](_0x2b203b){const _0x2a90de={_0x4058ec:0x1b8},_0x464ea0=_0x2db01d;return this[_0x464ea0(_0x2a90de._0x4058ec)](_0x464ea0(0x1f3),[_0x2b203b]),this[_0x464ea0(0x203)][_0x464ea0(0x191)]??'';}async['checkedState'](_0x6912fc){const _0x46a184={_0x375c35:0x1b8,_0x2d9018:0x203},_0x46c71b=_0x2db01d;return this[_0x46c71b(_0x46a184._0x375c35)]('checkedState',[_0x6912fc]),this[_0x46c71b(_0x46a184._0x2d9018)][_0x46c71b(0x1b5)]??null;}async[_0x2db01d(0x19a)](_0x497344){const _0x2fb6d4={_0x21b55e:0x1b8,_0x1f20b4:0x19a,_0x406ecb:0x1dd},_0x7ffab2=_0x2db01d;return this[_0x7ffab2(_0x2fb6d4._0x21b55e)](_0x7ffab2(_0x2fb6d4._0x1f20b4),[_0x497344]),this[_0x7ffab2(0x203)][_0x7ffab2(_0x2fb6d4._0x406ecb)]??!![];}async[_0x2db01d(0x1d3)](_0x33a33d){const _0x527b6b=_0x2db01d;return this[_0x527b6b(0x1b8)](_0x527b6b(0x1d3),[_0x33a33d]),this[_0x527b6b(0x203)]['isDisabledByDefault']??![];}async[_0x2db01d(0x193)](_0x2aefb5,_0x2a0714){const _0x26b33c={_0x50cbcd:0x1b8,_0x3218d7:0x193},_0x2fddf8=_0x2db01d;return this[_0x2fddf8(_0x26b33c._0x50cbcd)](_0x2fddf8(_0x26b33c._0x3218d7),[_0x2aefb5,_0x2a0714]),this['behavior'][_0x2fddf8(0x1ff)]?.[_0x2a0714]??null;}async['waitFor'](_0x156a1c,_0x51be78){const _0xe59a87=_0x2db01d;this[_0xe59a87(0x1b8)](_0xe59a87(0x1af),[_0x156a1c,_0x51be78]);}async[_0x2db01d(0x1e1)](_0x3a3ac8,_0x93fd3d){const _0x378aee={_0x5ce11a:0x1e1},_0x589eb2=_0x2db01d;this[_0x589eb2(0x1b8)](_0x589eb2(_0x378aee._0x5ce11a),[_0x3a3ac8,_0x93fd3d]);}async[_0x2db01d(0x207)](_0x5404fd,_0x53416e){const _0x5aadda={_0x2cb6b1:0x1b8},_0x317af1=_0x2db01d;this[_0x317af1(_0x5aadda._0x2cb6b1)](_0x317af1(0x207),[_0x5404fd,_0x53416e]);}async[_0x2db01d(0x1e6)](_0x456366){const _0x515e1c={_0x2f7ad7:0x1e6},_0x2ecfdd=_0x2db01d;this['record'](_0x2ecfdd(_0x515e1c._0x2f7ad7),[_0x456366]);}async[_0x2db01d(0x1b0)](_0x9bb2c4,_0x53ecbb){const _0x1eb10a=_0x2db01d;this[_0x1eb10a(0x1b8)](_0x1eb10a(0x1b0),[_0x9bb2c4,_0x53ecbb]);}async[_0x2db01d(0x20e)](_0x521280,_0x183824){const _0x5f2db2=_0x2db01d;this[_0x5f2db2(0x1b8)](_0x5f2db2(0x20e),[_0x521280,_0x183824]),this[_0x5f2db2(0x1c1)]=_0x521280;}async[_0x2db01d(0x1d7)](_0x3ad58f){const _0x34b0da={_0x37fc43:0x1d7},_0x223647=_0x2db01d;this['record'](_0x223647(_0x34b0da._0x37fc43),[_0x3ad58f]);}async[_0x2db01d(0x1ee)](_0x384fe4){const _0x251b5c=_0x2db01d;this[_0x251b5c(0x1b8)](_0x251b5c(0x1ee),[_0x384fe4]);}async[_0x2db01d(0x1f7)](_0x48af38){const _0x4fc490=_0x2db01d;this['record'](_0x4fc490(0x1f7),[_0x48af38]);}async[_0x2db01d(0x1bc)](_0x3ad62b){const _0x58c11f=_0x2db01d;return this[_0x58c11f(0x1b8)](_0x58c11f(0x1bc),[_0x3ad62b]),this['behavior'][_0x58c11f(0x1ea)];}async[_0x2db01d(0x1a0)](_0x1aae5e,_0x26b3e6){const _0x53a67a=_0x2db01d;return this[_0x53a67a(0x1b8)](_0x53a67a(0x1a0),[_0x1aae5e,_0x26b3e6]),void 0x0;}async['inspectElement'](_0x50f023){const _0x4c212e={_0x5c787f:0x206},_0x372ed8=_0x2db01d;this['record'](_0x372ed8(0x1b6),[_0x50f023]);if(_0x50f023['steps'][_0x372ed8(_0x4c212e._0x5c787f)]!==0x1||_0x50f023['steps'][0x0]['kind']!=='ref')return null;const _0x1c28ab=_0x50f023['steps'][0x0][_0x372ed8(0x1db)],_0xc225f8=this[_0x372ed8(0x203)]['elementHintByRef']?.[_0x1c28ab];return _0xc225f8??null;}async[_0x2db01d(0x194)](_0x74b236){const _0x2ef6d5={_0x2b96a4:0x1ae},_0x2bfad4=_0x2db01d;return this['record']('screenshot',[_0x74b236]),this[_0x2bfad4(_0x2ef6d5._0x2b96a4)](_0x74b236?.['type']);}async['screenshotElement'](_0x1af0f7,_0x5bc980){const _0x372bd6={_0x51faff:0x1b8},_0x19780b=_0x2db01d;return this[_0x19780b(_0x372bd6._0x51faff)]('screenshotElement',[_0x1af0f7,_0x5bc980]),this[_0x19780b(0x1ae)](_0x5bc980?.[_0x19780b(0x1ad)]);}[_0x2db01d(0x1ae)](_0x385419){const _0x5be542={_0x14625b:0x203,_0x156dbd:0x1ae},_0x521f6d=_0x2db01d,_0x4fea5b=this[_0x521f6d(_0x5be542._0x14625b)][_0x521f6d(_0x5be542._0x156dbd)];if(_0x4fea5b===void 0x0)return Buffer['from'](_0x521f6d(0x19b));return typeof _0x4fea5b===_0x521f6d(0x1bb)?_0x4fea5b(_0x385419):_0x4fea5b;}async[_0x2db01d(0x1bd)](_0x382a60){const _0x437560={_0x408683:0x1c7,_0x11886e:0x1db,_0x4cc33c:0x1a5,_0x4aa25e:0x1fd,_0x1caab2:0x1f8},_0x5bb1cf=_0x2db01d;this[_0x5bb1cf(0x1b8)](_0x5bb1cf(0x1bd),[_0x382a60]);if(_0x382a60[_0x5bb1cf(0x1c7)][_0x5bb1cf(0x206)]===0x1&&_0x382a60[_0x5bb1cf(_0x437560._0x408683)][0x0][_0x5bb1cf(0x1c6)]==='ref'){const _0x2d7ed8=_0x382a60[_0x5bb1cf(0x1c7)][0x0][_0x5bb1cf(_0x437560._0x11886e)];return this['behavior'][_0x5bb1cf(_0x437560._0x4cc33c)]?.[_0x2d7ed8]??_0x5bb1cf(_0x437560._0x4aa25e)+_0x2d7ed8+_0x5bb1cf(_0x437560._0x1caab2);}return _0x5bb1cf(0x1ac);}},FakeContext=class{constructor(_0x3dad51,_0x540831,_0x18ed14){const _0xd396b7={_0x1e7fe5:0x203,_0x16f54f:0x1a4,_0x3f41bf:0x1f5,_0x12a152:0x1a1,_0x5d6c73:0x201,_0x109505:0x192},_0x128680=_0x2db01d;this[_0x128680(0x1d4)]=_0x3dad51,this[_0x128680(_0xd396b7._0x1e7fe5)]=_0x540831,this[_0x128680(_0xd396b7._0x16f54f)]=_0x18ed14;const _0x26b63d=new FakePage(_0x3dad51,_0x540831,_0x18ed14+_0x128680(0x1a6),_0x540831[_0x128680(_0xd396b7._0x3f41bf)]??_0x128680(0x1df));_0x540831[_0x128680(0x197)]&&(_0x26b63d[_0x128680(0x1f4)]=()=>{const _0x81774a=_0x128680;this[_0x81774a(0x209)](_0x540831['popupOnClick']);}),this[_0x128680(_0xd396b7._0x12a152)]=[_0x26b63d],this['localStorageState']={..._0x540831[_0x128680(_0xd396b7._0x5d6c73)]??{}},this[_0x128680(0x1f0)]={..._0x540831[_0x128680(_0xd396b7._0x109505)]??{}};}[_0x2db01d(0x1d4)];[_0x2db01d(0x203)];[_0x2db01d(0x1a4)];static{__name(this,_0x2db01d(0x1c4));}[_0x2db01d(0x1a1)];[_0x2db01d(0x1fe)]=0x0;[_0x2db01d(0x1a8)]=[];[_0x2db01d(0x196)];[_0x2db01d(0x1f0)];[_0x2db01d(0x19e)]=new Set();[_0x2db01d(0x1b8)](_0x594729,_0x144e4c){const _0x42845b={_0x2ea408:0x198},_0x52fb0e=_0x2db01d;this[_0x52fb0e(0x1d4)][_0x52fb0e(_0x42845b._0x2ea408)]({'scope':this['scope'],'method':_0x594729,'args':_0x144e4c});}[_0x2db01d(0x1c5)](){const _0x32f325=_0x2db01d;return this[_0x32f325(0x1a1)];}[_0x2db01d(0x1e2)](){const _0x49fa03=_0x2db01d,_0x532288=this['pageList'][this['activeIdx']];if(!_0x532288)throw new DriverError(_0x49fa03(0x1d9),{'activeIdx':this['activeIdx']});return _0x532288;}[_0x2db01d(0x19d)](){const _0x262d14={_0x4ca2f6:0x19d},_0x7e679=_0x2db01d;return this[_0x7e679(0x203)][_0x7e679(_0x262d14._0x4ca2f6)]??[];}['networkEntries'](){const _0x6f2251=_0x2db01d;return this['behavior'][_0x6f2251(0x1d1)]??[];}async['setActivePage'](_0x3638be){const _0x3dc3c1={_0x43f520:0x1f9,_0x25b327:0x1a1,_0x47132e:0x206,_0x16b200:0x1a8},_0x51a75f=_0x2db01d;this['record'](_0x51a75f(_0x3dc3c1._0x43f520),[_0x3638be]);if(_0x3638be<0x0||_0x3638be>=this[_0x51a75f(_0x3dc3c1._0x25b327)]['length'])throw new DriverError(_0x51a75f(0x1da),{'index':_0x3638be,'available':this[_0x51a75f(_0x3dc3c1._0x25b327)][_0x51a75f(_0x3dc3c1._0x47132e)]});this['activeIdx']=_0x3638be,this[_0x51a75f(_0x3dc3c1._0x16b200)][_0x51a75f(0x206)]=0x0;}[_0x2db01d(0x1d5)](_0x36c1e1){const _0x83d9fc=_0x2db01d;return subscribe(this[_0x83d9fc(0x19e)],_0x36c1e1);}['emitFakePopup'](_0xdb665d){const _0x4ea23d={_0x257986:0x1a4,_0x3b1d7f:0x1d4,_0x3d6da0:0x1a1,_0x3f86f3:0x206,_0x18bc00:0x19e},_0x4c621b=_0x2db01d,_0x59a463=this[_0x4c621b(_0x4ea23d._0x257986)]+_0x4c621b(0x202)+this['pageList']['length'],_0x2a3ba8=new FakePage(this[_0x4c621b(_0x4ea23d._0x3b1d7f)],this['behavior'],_0x59a463,_0xdb665d);this[_0x4c621b(_0x4ea23d._0x3d6da0)][_0x4c621b(0x198)](_0x2a3ba8);const _0x82588e=this[_0x4c621b(_0x4ea23d._0x3d6da0)][_0x4c621b(_0x4ea23d._0x3f86f3)]-0x1;for(const _0x305af9 of this[_0x4c621b(_0x4ea23d._0x18bc00)]){try{_0x305af9({'index':_0x82588e,'url':_0xdb665d});}catch{}}return _0x82588e;}[_0x2db01d(0x1cc)](_0x361246){const _0x41d0b8={_0x126b41:0x206},_0x33cebc=_0x2db01d;if(_0x361246<0x0||_0x361246>=this['pageList'][_0x33cebc(_0x41d0b8._0x126b41)])throw new DriverError(_0x33cebc(0x1da),{'index':_0x361246,'available':this[_0x33cebc(0x1a1)][_0x33cebc(0x206)]});this['pageList']['splice'](_0x361246,0x1);}async[_0x2db01d(0x1ba)](_0x43015a){const _0xf71510={_0x547437:0x1ba,_0x12d157:0x1c0,_0x49b1df:0x1a8,_0x1efbb2:0x198},_0x3edf8e=_0x2db01d;this['record'](_0x3edf8e(_0xf71510._0x547437),[_0x43015a]);if(!_0x43015a['steps'][_0x3edf8e(0x206)])throw new LocatorError(_0x3edf8e(_0xf71510._0x12d157),{'locator':_0x43015a});this[_0x3edf8e(_0xf71510._0x49b1df)][_0x3edf8e(_0xf71510._0x1efbb2)](_0x43015a);}async['exitFrame'](){const _0x5d4b6e={_0x5b58c0:0x1e4,_0x1241f8:0x1a8,_0x3f8e0d:0x1fc},_0x290273=_0x2db01d;this[_0x290273(0x1b8)](_0x290273(_0x5d4b6e._0x5b58c0),[]);if(this[_0x290273(_0x5d4b6e._0x1241f8)][_0x290273(0x206)]===0x0)throw new DriverError(_0x290273(_0x5d4b6e._0x3f8e0d),{});this[_0x290273(0x1a8)]['pop']();}async['setLocalStorage'](_0x49b1ca,_0x6edc){const _0x5ccc6d=_0x2db01d;this[_0x5ccc6d(0x1b8)]('setLocalStorage',[_0x49b1ca,_0x6edc]),this[_0x5ccc6d(0x196)][_0x49b1ca]=_0x6edc;}async[_0x2db01d(0x1e8)](_0x129a84){const _0xf6f082={_0x564d7e:0x1e8},_0x4f743d=_0x2db01d;return this[_0x4f743d(0x1b8)](_0x4f743d(_0xf6f082._0x564d7e),[_0x129a84]),this['localStorageState'][_0x129a84]??null;}async['setCookie'](_0x177437,_0x375ce6,_0x3db6db){const _0x5f3d82={_0x1ea3f9:0x1f0},_0x1386b7=_0x2db01d;this['record'](_0x1386b7(0x1ca),[_0x177437,_0x375ce6,_0x3db6db]),this[_0x1386b7(_0x5f3d82._0x1ea3f9)][_0x177437]=_0x375ce6;}async[_0x2db01d(0x1aa)](_0xe89973){const _0x4af7ec={_0x399a2c:0x1aa,_0x7c05f5:0x1f0},_0x45e2b7=_0x2db01d;return this['record'](_0x45e2b7(_0x4af7ec._0x399a2c),[_0xe89973]),this[_0x45e2b7(_0x4af7ec._0x7c05f5)][_0xe89973]??null;}async['saveStorageState'](_0x93f1f6){const _0x415723=_0x2db01d;this[_0x415723(0x1b8)]('saveStorageState',[_0x93f1f6]);}async[_0x2db01d(0x1bc)](_0x198e0c){const _0x536623=_0x2db01d;return this[_0x536623(0x1b8)]('evaluate',[_0x198e0c]),void 0x0;}async[_0x2db01d(0x1b1)](){const _0x4f8130=_0x2db01d;this[_0x4f8130(0x1b8)]('close',[]);}['frameDepth'](){const _0x4abe32={_0x2c2b5c:0x1a8},_0x429321=_0x2db01d;return this[_0x429321(_0x4abe32._0x2c2b5c)]['length'];}},FakeWebDriver=class{constructor(_0x3af242={}){const _0x36606e=_0x2db01d;this[_0x36606e(0x203)]=_0x3af242,this['recorder']=createRecorder();}[_0x2db01d(0x203)];static{__name(this,_0x2db01d(0x1c9));}[_0x2db01d(0x18f)]=![];[_0x2db01d(0x1d4)];[_0x2db01d(0x1b9)]=[];async[_0x2db01d(0x1c3)](_0x341d21){const _0x40e533={_0xd5500b:0x1d4,_0x5517c1:0x198},_0xcbbbed=_0x2db01d;this[_0xcbbbed(_0x40e533._0xd5500b)][_0xcbbbed(_0x40e533._0x5517c1)]({'scope':_0xcbbbed(0x1ed),'method':_0xcbbbed(0x1c3),'args':[_0x341d21]}),this['launched']=!![];}async[_0x2db01d(0x1fa)](_0x5d6d2c){const _0x1858d9={_0x30bdad:0x1d4,_0x43ef23:0x198,_0x363e78:0x1fa,_0xb7abe0:0x18f,_0x3d0fae:0x198},_0x5535ab=_0x2db01d;this[_0x5535ab(_0x1858d9._0x30bdad)][_0x5535ab(_0x1858d9._0x43ef23)]({'scope':_0x5535ab(0x1ed),'method':_0x5535ab(_0x1858d9._0x363e78),'args':[_0x5d6d2c]});if(!this[_0x5535ab(_0x1858d9._0xb7abe0)])throw new DriverError(_0x5535ab(0x1de),{});const _0x1a0646=new FakeContext(this[_0x5535ab(0x1d4)],this[_0x5535ab(0x203)],_0x5535ab(0x1cd)+this['contexts']['length']);return this[_0x5535ab(0x1b9)][_0x5535ab(_0x1858d9._0x3d0fae)](_0x1a0646),_0x1a0646;}async[_0x2db01d(0x1b1)](){const _0x57c22d={_0x117b34:0x198},_0x3bc9f1=_0x2db01d;this['recorder'][_0x3bc9f1(_0x57c22d._0x117b34)]({'scope':'driver','method':_0x3bc9f1(0x1b1),'args':[]}),this['launched']=![];}[_0x2db01d(0x1c2)](){return void 0x0;}async[_0x2db01d(0x199)](){const _0x2f1e3f=_0x2db01d;throw new DriverError(_0x2f1e3f(0x19c),{});}[_0x2db01d(0x20d)](_0x434b49){const _0x155c8d=_0x2db01d;throw new DriverError(_0x155c8d(0x205),{});}[_0x2db01d(0x1e3)](){const _0x1746c7={_0x47ff54:0x1d4},_0x1ec0f7=_0x2db01d;return this[_0x1ec0f7(_0x1746c7._0x47ff54)][_0x1ec0f7(0x1e3)]();}[_0x2db01d(0x1c8)](_0x44e421){const _0x452a55=_0x2db01d;return this[_0x452a55(0x1d4)]['calls']()['filter'](_0x2bc8a4=>_0x2bc8a4[_0x452a55(0x1b2)]===_0x44e421);}};export{FakeWebDriver};
|
|
1
|
+
const _0x5a9d21=_0x5961;(function(_0x13b4cc,_0x30ab44){const _0x2761fd={_0x403a6c:0x175,_0x4d1484:0x1c4,_0x284157:0x1b7,_0x1a641d:0x161},_0x15d443=_0x5961,_0x3ef846=_0x13b4cc();while(!![]){try{const _0x3cef68=parseInt(_0x15d443(0x187))/0x1+parseInt(_0x15d443(_0x2761fd._0x403a6c))/0x2+-parseInt(_0x15d443(0x1b9))/0x3*(-parseInt(_0x15d443(_0x2761fd._0x4d1484))/0x4)+-parseInt(_0x15d443(0x188))/0x5+parseInt(_0x15d443(_0x2761fd._0x284157))/0x6*(-parseInt(_0x15d443(0x1d3))/0x7)+-parseInt(_0x15d443(_0x2761fd._0x1a641d))/0x8+parseInt(_0x15d443(0x1cf))/0x9;if(_0x3cef68===_0x30ab44)break;else _0x3ef846['push'](_0x3ef846['shift']());}catch(_0x45a651){_0x3ef846['push'](_0x3ef846['shift']());}}}(_0x2065,0x4f4d9));var __defProp=Object[_0x5a9d21(0x174)],__name=(_0x43a279,_0x3ecc7d)=>__defProp(_0x43a279,_0x5a9d21(0x176),{'value':_0x3ecc7d,'configurable':!![]});function subscribe(_0x36ed07,_0x27a6f0){const _0x532a7f=_0x5a9d21;return _0x36ed07[_0x532a7f(0x1cb)](_0x27a6f0),()=>{const _0x2c70f9=_0x532a7f;_0x36ed07[_0x2c70f9(0x1d4)](_0x27a6f0);};}function _0x2065(){const _0x203bba=['nZG1nZa4uxHvDxv4','zgvSzxrL','AxneAxnHyMXLza','y2fSBhngB3i','rhjPDMvYrxjYB3i','B25ozxDqywDL','AxnwAxnPyMXL','ChvZAa','y2XVC2u','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','zxzHBhvHDgvpBKXVy2f0B3i','zNvUy3rPB24','ndiZmZm0nhL6zMncvq','Bwf5yMvuAhjVDW','CgfNzxm','zhjHz0fUzerYB3a','Bgf1BMnOzwq','C2f2zvn0B3jHz2vtDgf0zq','D2fPDezVCLrLEhq','y2fSBhm','D2fPDezVCLvYBa','zw1PDezHA2vqB3b1Ca','C2nYB2XSsw50B1zPzxC','zNjHBwvtDgfJAW','zxzHBhvHDgvszxn1Bhq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','z2v0q29VA2LL','zMLSDgvY','y2HLy2TLzfn0yxrLqNLezwzHDwX0','ywn0AxzLswr4','y2HLy2TLzfn0yxrL','zgvMAw5LuhjVCgvYDhK','otm4odG0yMjAvNfu','BMfTzq','BMv3ugfNzuXPC3rLBMvYCW','C2v0q29VA2LL','y3jLyxrLuMvJB3jKzxi','Aw5WDxrwywX1zuj5rgvMyxvSDa','z2v0qxr0CMLIDxrL','yMvOyxzPB3i','CgfNzuXPC3q','AxnwAxnPyMXLqNLezwzHDwX0','z29gB3j3yxjK','ywn0AxzLugfNzq','Aw5UzxjuzxH0','C2vSzwn0t3b0Aw9U','iJ48l2rPDJ4','Bg9JywXtDg9YywDLu3rHDgu','ywjVDxq6yMXHBMS','DxjS','oda2nJjOwNjeC3C','nZq0mZm1AfbXB3zw','DxbSB2fKrMLSzq','C3bSAwnL','y29VA2LLu3rHDgu','C3rLChm','BMv0D29YA0vUDhjPzxm','y3vYCMvUDfvYBa','C3vIC2nYAwjL','z290BW','y29UBMvJDfnOyxjLza','z29cywnR','y29UC29SzuvUDhjPzxm','yxr0CMLIDxrLC0j5rgvMyxvSDa','C2v0tg9JywXtDg9YywDL','C2v0qwn0AxzLugfNzq','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','Dgv4DenVBNrLBNq','zxHPDezYyw1L','y2HLy2S','DgL0Bgu','y291BNrcEurLzMf1Bhq','zxzHBhvHDgu','Cg9W','zNjHBwvezxb0Aa','CMvJB3jKzxi','Cg9WDxbpBKnSAwnR','C2nYzwvUC2HVDa','lNbHz2u','zxjYB3jpBK5LEhrby3rPB24','zg91yMXLq2XPy2S','DhLWzq','CMvJB3jK','y3r4','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','pgrPDJ48l2rPDJ4','BMv3q29UDgv4Da','B25bzNrLCKnSAwnR','Bgf1BMnO','zMLSBa','D2fPDezVCG','Aw5ZCgvJDevSzw1LBNq','z2v0tg9JywXtDg9YywDL','y2XVC2vgywTLugfNzq','y291BNq','D2fPDezVCKXVywrtDgf0zq','D3nfBMrWB2LUDa','Dw5JAgvJAW','mtHxrwrcCuG','C2nVCgu','nJG0m29OqwfmuG','zhjPDMvY','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','Aw5UzxjuzxH0qNLezwzHDwX0','y29UDgv4Dhm','CMvM','zw50zxjgCMfTzq','rMfRzvbHz2u','zwXLBwvUDeHPBNrcEvjLzG','BgvUz3rO','yxr0ywnOrxHPC3rPBMC','mta3nNviEhPfDq','lNbHz2uW','B3v0zxjiDg1SqNLszwy','zNjVBq','Aw5WDxrwywX1zq','D2fPDezVCK5HDMLNyxrPB24','rMfRzunVBNrLEhq','ywrK','B3v0zxjive1m','CMvSB2fK','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','mtu4mZa5mxPyt2jYBq','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','AxneAxnHyMXLzej5rgvMyxvSDa','y29VA2LLCW'];_0x2065=function(){return _0x203bba;};return _0x2065();}__name(subscribe,_0x5a9d21(0x18f));import{UnotestError}from'@unotest/core';function _0x5961(_0x4fb701,_0x32f960){_0x4fb701=_0x4fb701-0x161;const _0x206560=_0x2065();let _0x59610e=_0x206560[_0x4fb701];if(_0x5961['QpDJsA']===undefined){var _0x257709=function(_0x390f4d){const _0x5e4b3b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43a279='',_0x3ecc7d='';for(let _0x36ed07=0x0,_0x27a6f0,_0x1d5538,_0x178bc9=0x0;_0x1d5538=_0x390f4d['charAt'](_0x178bc9++);~_0x1d5538&&(_0x27a6f0=_0x36ed07%0x4?_0x27a6f0*0x40+_0x1d5538:_0x1d5538,_0x36ed07++%0x4)?_0x43a279+=String['fromCharCode'](0xff&_0x27a6f0>>(-0x2*_0x36ed07&0x6)):0x0){_0x1d5538=_0x5e4b3b['indexOf'](_0x1d5538);}for(let _0x6229a3=0x0,_0x47d9c6=_0x43a279['length'];_0x6229a3<_0x47d9c6;_0x6229a3++){_0x3ecc7d+='%'+('00'+_0x43a279['charCodeAt'](_0x6229a3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3ecc7d);};_0x5961['TNVATu']=_0x257709,_0x5961['XQIrHA']={},_0x5961['QpDJsA']=!![];}const _0x4297a8=_0x206560[0x0],_0x3702ec=_0x4fb701+_0x4297a8,_0x4b259c=_0x5961['XQIrHA'][_0x3702ec];return!_0x4b259c?(_0x59610e=_0x5961['TNVATu'](_0x59610e),_0x5961['XQIrHA'][_0x3702ec]=_0x59610e):_0x59610e=_0x4b259c,_0x59610e;}var DriverError=class extends UnotestError{static{__name(this,_0x5a9d21(0x1d7));}},LocatorError=class extends UnotestError{static{__name(this,'LocatorError');}};function createRecorder(){const _0x58c492={_0x5af74d:0x1da},_0x7673d2=_0x5a9d21,_0x1d5538=[];let _0x178bc9=0x0;return{'push':__name(_0x6229a3=>_0x1d5538[_0x7673d2(0x1da)]({..._0x6229a3,'seq':_0x178bc9++}),_0x7673d2(_0x58c492._0x5af74d)),'calls':__name(()=>_0x1d5538,'calls')};}__name(createRecorder,_0x5a9d21(0x179));var FakePage=class{constructor(_0x47d9c6,_0x3d8efc,_0x30da08,_0x4499a8){const _0x2f3f65={_0x3cba12:0x1a0,_0x286be1:0x17c,_0xf7b93b:0x1b8,_0x5e9d3d:0x18e},_0x249b4f=_0x5a9d21;this[_0x249b4f(_0x2f3f65._0x3cba12)]=_0x47d9c6,this[_0x249b4f(_0x2f3f65._0x286be1)]=_0x3d8efc,this[_0x249b4f(_0x2f3f65._0xf7b93b)]=_0x30da08,this[_0x249b4f(_0x2f3f65._0x5e9d3d)]=_0x4499a8;}[_0x5a9d21(0x1a0)];['behavior'];[_0x5a9d21(0x1b8)];static{__name(this,_0x5a9d21(0x1c0));}[_0x5a9d21(0x18e)];[_0x5a9d21(0x1ac)];['record'](_0x3c75ea,_0x4517f1){const _0x291fcd={_0x41345a:0x1a0,_0x29e554:0x1da,_0x2bed46:0x1b8},_0x124dde=_0x5a9d21;this[_0x124dde(_0x291fcd._0x41345a)][_0x124dde(_0x291fcd._0x29e554)]({'scope':this[_0x124dde(_0x291fcd._0x2bed46)],'method':_0x3c75ea,'args':_0x4517f1});}[_0x5a9d21(0x162)](){const _0x2efeb9={_0x38ecb7:0x1a4,_0x16a88c:0x1a4},_0x278cc2=_0x5a9d21;if(this[_0x278cc2(0x17c)][_0x278cc2(_0x2efeb9._0x38ecb7)]){const _0x3f71ea=this[_0x278cc2(0x17c)][_0x278cc2(_0x2efeb9._0x16a88c)];this[_0x278cc2(0x17c)][_0x278cc2(0x1a4)]=void 0x0;throw _0x3f71ea;}}[_0x5a9d21(0x186)](){const _0x11de51=_0x5a9d21;return this[_0x11de51(0x18e)];}async['title'](){const _0x5ba6da=_0x5a9d21;return this[_0x5ba6da(0x1a7)](_0x5ba6da(0x19b),[]),'fake\x20title';}async['click'](_0x276453,_0x148b8e){const _0xe5e6e6={_0x56b477:0x1ac},_0x5c526e=_0x5a9d21;this['record']('click',[_0x276453,_0x148b8e]),this[_0x5c526e(0x162)](),this[_0x5c526e(_0xe5e6e6._0x56b477)]?.();}async['doubleClick'](_0x3f4dae,_0x5df536){const _0x3799bb=_0x5a9d21;this[_0x3799bb(0x1a7)](_0x3799bb(0x1a5),[_0x3f4dae,_0x5df536]),this['maybeThrow']();}async[_0x5a9d21(0x1ae)](_0x5d7865,_0x752cde,_0x10ccc5){const _0x1447f9={_0x2c3a83:0x1a7},_0x34fef5=_0x5a9d21;this[_0x34fef5(_0x1447f9._0x2c3a83)](_0x34fef5(0x1ae),[_0x5d7865,_0x752cde,_0x10ccc5]),this[_0x34fef5(0x162)]();}async['press'](_0x30a5be,_0x39e9ed,_0x58327a){const _0x17efba={_0x316b8e:0x162},_0x2c0308=_0x5a9d21;this['record']('press',[_0x30a5be,_0x39e9ed,_0x58327a]),this[_0x2c0308(_0x17efba._0x316b8e)]();}async[_0x5a9d21(0x19a)](_0x29c618,_0x268ec1){const _0x594dcd={_0x292d7c:0x162},_0x3daf41=_0x5a9d21;this[_0x3daf41(0x1a7)](_0x3daf41(0x19a),[_0x29c618,_0x268ec1]),this[_0x3daf41(_0x594dcd._0x292d7c)]();}async['uncheck'](_0x1e5f51,_0x38c6eb){const _0x3f486f={_0x12a24b:0x1b6},_0x1e3071=_0x5a9d21;this[_0x1e3071(0x1a7)](_0x1e3071(_0x3f486f._0x12a24b),[_0x1e5f51,_0x38c6eb]),this[_0x1e3071(0x162)]();}async['selectOption'](_0x155456,_0x4e8aed,_0x95896e){const _0x10f366={_0x358607:0x1a7,_0x20ff7c:0x182},_0x36f9e1=_0x5a9d21;this[_0x36f9e1(_0x10f366._0x358607)](_0x36f9e1(_0x10f366._0x20ff7c),[_0x155456,_0x4e8aed,_0x95896e]),this['maybeThrow']();}async['hover'](_0x175d1e,_0x20a64f){const _0x44659f=_0x5a9d21;this['record']('hover',[_0x175d1e,_0x20a64f]),this[_0x44659f(0x162)]();}async[_0x5a9d21(0x16b)](_0x99037f){const _0x2ffeaa={_0x5670af:0x1a7,_0x1846cc:0x16b},_0xb96843=_0x5a9d21;this[_0xb96843(_0x2ffeaa._0x5670af)](_0xb96843(_0x2ffeaa._0x1846cc),[_0x99037f]),this[_0xb96843(0x162)]();}async[_0x5a9d21(0x164)](_0x4af69f,_0x55c73e,_0xb00d50){const _0x5bf981=_0x5a9d21;this['record'](_0x5bf981(0x164),[_0x4af69f,_0x55c73e,_0xb00d50]),this[_0x5bf981(0x162)]();}async[_0x5a9d21(0x189)](_0x11c77d,_0xc3f4b7){const _0x73cb09={_0x4350c6:0x1a7},_0x34a6cd=_0x5a9d21;this[_0x34a6cd(_0x73cb09._0x4350c6)]('uploadFile',[_0x11c77d,_0xc3f4b7]),this[_0x34a6cd(0x162)]();}async['clipboardPaste'](_0x2a0f21,_0xaa5edf){const _0xa681b9={_0x337a9e:0x1a7},_0x366e9d=_0x5a9d21;this[_0x366e9d(_0xa681b9._0x337a9e)]('clipboardPaste',[_0x2a0f21,_0xaa5edf]),this['maybeThrow']();}async[_0x5a9d21(0x1b3)](_0x59ef90){const _0x216abb={_0x42cd49:0x1a7,_0x51d1fa:0x17c,_0x405fb5:0x19c},_0x420a7a=_0x5a9d21;return this[_0x420a7a(_0x216abb._0x42cd49)](_0x420a7a(0x1b3),[_0x59ef90]),this[_0x420a7a(_0x216abb._0x51d1fa)][_0x420a7a(_0x216abb._0x405fb5)]??0x1;}async[_0x5a9d21(0x198)](_0x5ad963){const _0x433347={_0x2d2470:0x1a7,_0x32e436:0x198},_0x4819da=_0x5a9d21;return this[_0x4819da(_0x433347._0x2d2470)](_0x4819da(_0x433347._0x32e436),[_0x5ad963]),this[_0x4819da(0x17c)][_0x4819da(0x16e)]??'';}async[_0x5a9d21(0x181)](_0x5af389){const _0x34d6d5={_0x53a07a:0x1a7,_0x1e1cb4:0x1bc,_0x104519:0x17c},_0x1561cf=_0x5a9d21;return this[_0x1561cf(_0x34d6d5._0x53a07a)](_0x1561cf(0x181),[_0x5af389]),this['behavior'][_0x1561cf(_0x34d6d5._0x1e1cb4)]??this[_0x1561cf(_0x34d6d5._0x104519)]['textContentByDefault']??'';}async[_0x5a9d21(0x1c8)](_0x370064){const _0x5e80d1={_0x570bfc:0x17a},_0x1fc97f=_0x5a9d21;return this[_0x1fc97f(0x1a7)](_0x1fc97f(0x1c8),[_0x370064]),this[_0x1fc97f(0x17c)][_0x1fc97f(_0x5e80d1._0x570bfc)]??'';}async[_0x5a9d21(0x173)](_0x26b529){const _0x55bcf4={_0x55db37:0x17c,_0x2b6d15:0x171},_0x416e89=_0x5a9d21;return this[_0x416e89(0x1a7)](_0x416e89(0x173),[_0x26b529]),this[_0x416e89(_0x55bcf4._0x55db37)][_0x416e89(_0x55bcf4._0x2b6d15)]??null;}async['isVisible'](_0x471bfc){const _0x542c1d={_0x4ff2d1:0x1d9,_0x1331a8:0x17c},_0x52af38=_0x5a9d21;return this[_0x52af38(0x1a7)](_0x52af38(_0x542c1d._0x4ff2d1),[_0x471bfc]),this[_0x52af38(_0x542c1d._0x1331a8)][_0x52af38(0x17e)]??!![];}async['isDisabled'](_0x1d6fe0){const _0x2e4a4a={_0x5b85ad:0x1a7,_0x5be00a:0x1d5,_0x2858fc:0x1d1},_0x32342f=_0x5a9d21;return this[_0x32342f(_0x2e4a4a._0x5b85ad)](_0x32342f(_0x2e4a4a._0x5be00a),[_0x1d6fe0]),this[_0x32342f(0x17c)][_0x32342f(_0x2e4a4a._0x2858fc)]??![];}async[_0x5a9d21(0x17b)](_0x45fb0b,_0x367450){const _0x43c885=_0x5a9d21;return this[_0x43c885(0x1a7)]('getAttribute',[_0x45fb0b,_0x367450]),this['behavior'][_0x43c885(0x194)]?.[_0x367450]??null;}async['waitFor'](_0xa21ad9,_0x219b71){const _0x31bece={_0x2f6ffe:0x1a7,_0x39aa1a:0x1af},_0x4c04d8=_0x5a9d21;this[_0x4c04d8(_0x31bece._0x2f6ffe)](_0x4c04d8(_0x31bece._0x39aa1a),[_0xa21ad9,_0x219b71]);}async['waitForUrl'](_0xde9133,_0x857ebf){const _0xf090de={_0x348504:0x1a7},_0x11aa85=_0x5a9d21;this[_0x11aa85(_0xf090de._0x348504)](_0x11aa85(0x169),[_0xde9133,_0x857ebf]);}async[_0x5a9d21(0x167)](_0xfc6bfc,_0x18f402){const _0x325f72={_0x4084aa:0x1a7},_0x3e2661=_0x5a9d21;this[_0x3e2661(_0x325f72._0x4084aa)](_0x3e2661(0x167),[_0xfc6bfc,_0x18f402]);}async[_0x5a9d21(0x1c9)](_0x22c384){const _0x251bc9=_0x5a9d21;this[_0x251bc9(0x1a7)]('waitForNavigation',[_0x22c384]);}async[_0x5a9d21(0x1b4)](_0x4551c8,_0x38b253){const _0x274644={_0x5cd89f:0x1b4},_0x483880=_0x5a9d21;this['record'](_0x483880(_0x274644._0x5cd89f),[_0x4551c8,_0x38b253]);}async[_0x5a9d21(0x190)](_0x1a91c1,_0x4533fd){const _0x3274e8=_0x5a9d21;this[_0x3274e8(0x1a7)]('goto',[_0x1a91c1,_0x4533fd]),this[_0x3274e8(0x18e)]=_0x1a91c1;}async[_0x5a9d21(0x1cd)](_0x3f4018){const _0x2d7ad5=_0x5a9d21;this['record'](_0x2d7ad5(0x1cd),[_0x3f4018]);}async[_0x5a9d21(0x192)](_0x360984){const _0x2a227f={_0x4f3682:0x192},_0x363777=_0x5a9d21;this[_0x363777(0x1a7)](_0x363777(_0x2a227f._0x4f3682),[_0x360984]);}async[_0x5a9d21(0x17f)](_0x43bc9c){const _0x2f3333={_0x315e9f:0x1a7,_0x5b92fe:0x17f},_0x28980d=_0x5a9d21;this[_0x28980d(_0x2f3333._0x315e9f)](_0x28980d(_0x2f3333._0x5b92fe),[_0x43bc9c]);}async[_0x5a9d21(0x19d)](_0x29943a){const _0x3f505f={_0x56b421:0x19d,_0x445665:0x16d},_0x3c3dfc=_0x5a9d21;return this['record'](_0x3c3dfc(_0x3f505f._0x56b421),[_0x29943a]),this[_0x3c3dfc(0x17c)][_0x3c3dfc(_0x3f505f._0x445665)];}async['evaluateOnLocator'](_0x15bcdc,_0x169d77){const _0xf45fb3=_0x5a9d21;return this['record'](_0xf45fb3(0x1dd),[_0x15bcdc,_0x169d77]),void 0x0;}async[_0x5a9d21(0x1b0)](_0x39b04e){const _0x4b20bd={_0x41e9ac:0x1a7,_0x2e3045:0x18c,_0xe8bdfc:0x1c1},_0x5cfb10=_0x5a9d21;this[_0x5cfb10(_0x4b20bd._0x41e9ac)](_0x5cfb10(0x1b0),[_0x39b04e]);if(_0x39b04e[_0x5cfb10(_0x4b20bd._0x2e3045)][_0x5cfb10(0x1c2)]!==0x1||_0x39b04e[_0x5cfb10(_0x4b20bd._0x2e3045)][0x0]['kind']!==_0x5cfb10(0x1be))return null;const _0x49f1e8=_0x39b04e['steps'][0x0]['ref'],_0x4e586f=this['behavior'][_0x5cfb10(_0x4b20bd._0xe8bdfc)]?.[_0x49f1e8];return _0x4e586f??null;}async[_0x5a9d21(0x1a2)](_0x41d13e){const _0x327674={_0x26f0f1:0x1a7,_0xce4e5c:0x1a2},_0x315cb8=_0x5a9d21;return this[_0x315cb8(_0x327674._0x26f0f1)](_0x315cb8(_0x327674._0xce4e5c),[_0x41d13e]),this['screenshotBytes'](_0x41d13e?.[_0x315cb8(0x1a6)]);}async['screenshotElement'](_0x16901e,_0x28a0c2){const _0x4a5a3c={_0x11f8d3:0x1a7},_0x522634=_0x5a9d21;return this[_0x522634(_0x4a5a3c._0x11f8d3)]('screenshotElement',[_0x16901e,_0x28a0c2]),this['screenshotBytes'](_0x28a0c2?.['type']);}['screenshotBytes'](_0x34a6bc){const _0x5bfdda={_0x44eefe:0x1c7,_0x503577:0x1de},_0x1643e2=_0x5a9d21,_0x21199e=this['behavior']['screenshotBytes'];if(_0x21199e===void 0x0)return Buffer[_0x1643e2(_0x5bfdda._0x44eefe)]('fake-png');return typeof _0x21199e===_0x1643e2(_0x5bfdda._0x503577)?_0x21199e(_0x34a6bc):_0x21199e;}async[_0x5a9d21(0x1cc)](_0x207bae){const _0x5a0fe8={_0x1518bb:0x1a7,_0x40eba2:0x18c,_0x2f920f:0x1c2,_0x275b0b:0x18c,_0x5b896c:0x1bb,_0x34dca9:0x1aa},_0x46f93b=_0x5a9d21;this[_0x46f93b(_0x5a0fe8._0x1518bb)]('outerHTML',[_0x207bae]);if(_0x207bae[_0x46f93b(_0x5a0fe8._0x40eba2)][_0x46f93b(_0x5a0fe8._0x2f920f)]===0x1&&_0x207bae[_0x46f93b(_0x5a0fe8._0x40eba2)][0x0]['kind']===_0x46f93b(0x1be)){const _0x28c45f=_0x207bae[_0x46f93b(_0x5a0fe8._0x275b0b)][0x0][_0x46f93b(0x1be)];return this[_0x46f93b(0x17c)][_0x46f93b(0x1c6)]?.[_0x28c45f]??_0x46f93b(_0x5a0fe8._0x5b896c)+_0x28c45f+_0x46f93b(0x183);}return _0x46f93b(_0x5a0fe8._0x34dca9);}},FakeContext=class{constructor(_0x103c2a,_0x316b52,_0x5e9bdc){const _0x949d90={_0x1e8dc0:0x1a0,_0x22f2ca:0x1ac,_0x598082:0x17d,_0x14eac6:0x18b},_0x7d2fde={_0x506aca:0x1a1},_0x3c559e=_0x5a9d21;this[_0x3c559e(_0x949d90._0x1e8dc0)]=_0x103c2a,this[_0x3c559e(0x17c)]=_0x316b52,this[_0x3c559e(0x1b8)]=_0x5e9bdc;const _0x5f476e=new FakePage(_0x103c2a,_0x316b52,_0x5e9bdc+_0x3c559e(0x1c5),_0x316b52['initialUrl']??_0x3c559e(0x185));_0x316b52['popupOnClick']&&(_0x5f476e[_0x3c559e(_0x949d90._0x22f2ca)]=()=>{const _0x127d56=_0x3c559e;this[_0x127d56(0x16a)](_0x316b52[_0x127d56(_0x7d2fde._0x506aca)]);}),this[_0x3c559e(_0x949d90._0x598082)]=[_0x5f476e],this[_0x3c559e(0x184)]={..._0x316b52['localStorage']??{}},this[_0x3c559e(_0x949d90._0x14eac6)]={..._0x316b52[_0x3c559e(0x1d2)]??{}};}[_0x5a9d21(0x1a0)];['behavior'];[_0x5a9d21(0x1b8)];static{__name(this,_0x5a9d21(0x1ca));}[_0x5a9d21(0x17d)];['activeIdx']=0x0;[_0x5a9d21(0x16c)]=[];[_0x5a9d21(0x184)];[_0x5a9d21(0x18b)];[_0x5a9d21(0x177)]=new Set();[_0x5a9d21(0x1a7)](_0x2e738d,_0x51aad1){const _0xdbcd47={_0x168617:0x1b8},_0x35b3f4=_0x5a9d21;this[_0x35b3f4(0x1a0)][_0x35b3f4(0x1da)]({'scope':this[_0x35b3f4(_0xdbcd47._0x168617)],'method':_0x2e738d,'args':_0x51aad1});}[_0x5a9d21(0x163)](){const _0x279433={_0x101bb3:0x17d},_0x9d33e4=_0x5a9d21;return this[_0x9d33e4(_0x279433._0x101bb3)];}[_0x5a9d21(0x180)](){const _0x1ea026={_0x55af4d:0x172,_0x4b1feb:0x1a9},_0x278917=_0x5a9d21,_0x6353b4=this[_0x278917(0x17d)][this[_0x278917(_0x1ea026._0x55af4d)]];if(!_0x6353b4)throw new DriverError(_0x278917(_0x1ea026._0x4b1feb),{'activeIdx':this[_0x278917(_0x1ea026._0x55af4d)]});return _0x6353b4;}[_0x5a9d21(0x193)](){const _0x500117={_0xa4b306:0x193},_0x460570=_0x5a9d21;return this[_0x460570(0x17c)][_0x460570(_0x500117._0xa4b306)]??[];}[_0x5a9d21(0x18d)](){const _0x1ae8ae={_0x380c3c:0x18d},_0x4d30bc=_0x5a9d21;return this[_0x4d30bc(0x17c)][_0x4d30bc(_0x1ae8ae._0x380c3c)]??[];}async[_0x5a9d21(0x196)](_0x516ebf){const _0x2c68c6={_0x492f4f:0x196,_0xe22b7e:0x1c2,_0x3dbbf4:0x1dc,_0x176144:0x16c},_0x11a278=_0x5a9d21;this[_0x11a278(0x1a7)](_0x11a278(_0x2c68c6._0x492f4f),[_0x516ebf]);if(_0x516ebf<0x0||_0x516ebf>=this[_0x11a278(0x17d)][_0x11a278(_0x2c68c6._0xe22b7e)])throw new DriverError(_0x11a278(_0x2c68c6._0x3dbbf4),{'index':_0x516ebf,'available':this['pageList'][_0x11a278(0x1c2)]});this[_0x11a278(0x172)]=_0x516ebf,this[_0x11a278(_0x2c68c6._0x176144)]['length']=0x0;}[_0x5a9d21(0x1d8)](_0x1a2735){return subscribe(this['newPageListeners'],_0x1a2735);}['emitFakePopup'](_0x585d50){const _0x35a556={_0x2c586f:0x1a3,_0x5c21a2:0x1da,_0x118c8d:0x177},_0xb5ee16=_0x5a9d21,_0x7299c1=this['scope']+_0xb5ee16(_0x35a556._0x2c586f)+this[_0xb5ee16(0x17d)]['length'],_0x8b18f1=new FakePage(this[_0xb5ee16(0x1a0)],this['behavior'],_0x7299c1,_0x585d50);this['pageList'][_0xb5ee16(_0x35a556._0x5c21a2)](_0x8b18f1);const _0x365cd8=this[_0xb5ee16(0x17d)]['length']-0x1;for(const _0x759452 of this[_0xb5ee16(_0x35a556._0x118c8d)]){try{_0x759452({'index':_0x365cd8,'url':_0x585d50});}catch{}}return _0x365cd8;}[_0x5a9d21(0x1b2)](_0x49cd8b){const _0x2dcb17={_0x5ee6ff:0x1dc,_0xc42d28:0x1c2,_0x1eb6cf:0x18a},_0x376d23=_0x5a9d21;if(_0x49cd8b<0x0||_0x49cd8b>=this[_0x376d23(0x17d)][_0x376d23(0x1c2)])throw new DriverError(_0x376d23(_0x2dcb17._0x5ee6ff),{'index':_0x49cd8b,'available':this['pageList'][_0x376d23(_0x2dcb17._0xc42d28)]});this[_0x376d23(0x17d)][_0x376d23(_0x2dcb17._0x1eb6cf)](_0x49cd8b,0x1);}async[_0x5a9d21(0x1bf)](_0x5b9f58){const _0x2e8cfc={_0x42e527:0x1a7,_0x4e85f1:0x1bf},_0x1dc200=_0x5a9d21;this[_0x1dc200(_0x2e8cfc._0x42e527)](_0x1dc200(_0x2e8cfc._0x4e85f1),[_0x5b9f58]);if(!_0x5b9f58[_0x1dc200(0x18c)][_0x1dc200(0x1c2)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x5b9f58});this['frameStack']['push'](_0x5b9f58);}async[_0x5a9d21(0x199)](){const _0x53202e={_0x2a0cc6:0x1a7,_0x249ebb:0x199,_0x60b95e:0x16c,_0x4b7b8f:0x1ce},_0x31a8bb=_0x5a9d21;this[_0x31a8bb(_0x53202e._0x2a0cc6)](_0x31a8bb(_0x53202e._0x249ebb),[]);if(this[_0x31a8bb(_0x53202e._0x60b95e)][_0x31a8bb(0x1c2)]===0x0)throw new DriverError(_0x31a8bb(_0x53202e._0x4b7b8f),{});this[_0x31a8bb(0x16c)][_0x31a8bb(0x19e)]();}async['setLocalStorage'](_0x3227f5,_0x21f586){const _0x3189e0={_0x7bbd36:0x195},_0x24d8e1=_0x5a9d21;this[_0x24d8e1(0x1a7)](_0x24d8e1(_0x3189e0._0x7bbd36),[_0x3227f5,_0x21f586]),this[_0x24d8e1(0x184)][_0x3227f5]=_0x21f586;}async[_0x5a9d21(0x1b1)](_0x57464f){const _0x246ddf={_0x20c71c:0x1b1},_0x2273a6=_0x5a9d21;return this[_0x2273a6(0x1a7)](_0x2273a6(_0x246ddf._0x20c71c),[_0x57464f]),this[_0x2273a6(0x184)][_0x57464f]??null;}async['setCookie'](_0x559782,_0x2f4e19,_0x5b9b3f){const _0x316a34={_0x2fd736:0x178,_0x46dab9:0x18b},_0x18c20d=_0x5a9d21;this[_0x18c20d(0x1a7)](_0x18c20d(_0x316a34._0x2fd736),[_0x559782,_0x2f4e19,_0x5b9b3f]),this[_0x18c20d(_0x316a34._0x46dab9)][_0x559782]=_0x2f4e19;}async[_0x5a9d21(0x16f)](_0x298269){const _0x44db3f={_0x45ffdb:0x18b},_0x2081d1=_0x5a9d21;return this['record'](_0x2081d1(0x16f),[_0x298269]),this[_0x2081d1(_0x44db3f._0x45ffdb)][_0x298269]??null;}async[_0x5a9d21(0x166)](_0xdf1f24){const _0x37163e=_0x5a9d21;this[_0x37163e(0x1a7)](_0x37163e(0x166),[_0xdf1f24]);}async['evaluate'](_0x5a1234){const _0x299996={_0x5e9bed:0x19d},_0x1382fa=_0x5a9d21;return this['record'](_0x1382fa(_0x299996._0x5e9bed),[_0x5a1234]),void 0x0;}async[_0x5a9d21(0x1db)](){const _0x2a08fe=_0x5a9d21;this[_0x2a08fe(0x1a7)]('close',[]);}[_0x5a9d21(0x19f)](){const _0x37d8e7={_0x58f156:0x1c2},_0x7aff93=_0x5a9d21;return this[_0x7aff93(0x16c)][_0x7aff93(_0x37d8e7._0x58f156)];}},FakeWebDriver=class{constructor(_0x417a36={}){const _0x3a7d00=_0x5a9d21;this[_0x3a7d00(0x17c)]=_0x417a36,this[_0x3a7d00(0x1a0)]=createRecorder();}['behavior'];static{__name(this,'FakeWebDriver');}[_0x5a9d21(0x165)]=![];['recorder'];[_0x5a9d21(0x1bd)]=[];async[_0x5a9d21(0x1ad)](_0x385a0a){const _0x160dbd={_0x2c9cbb:0x1da,_0x52d98d:0x1ad,_0x1d461d:0x165},_0x4a5d6d=_0x5a9d21;this['recorder'][_0x4a5d6d(_0x160dbd._0x2c9cbb)]({'scope':'driver','method':_0x4a5d6d(_0x160dbd._0x52d98d),'args':[_0x385a0a]}),this[_0x4a5d6d(_0x160dbd._0x1d461d)]=!![];}async[_0x5a9d21(0x1ab)](_0x3e6b53){const _0x21e444={_0x3f06f0:0x1da,_0x4c0731:0x1ba,_0x538a75:0x165,_0x3ea35f:0x197,_0x178a41:0x1a0,_0x512bfa:0x1c2,_0x1fcb46:0x1bd},_0x191a55=_0x5a9d21;this[_0x191a55(0x1a0)][_0x191a55(_0x21e444._0x3f06f0)]({'scope':_0x191a55(_0x21e444._0x4c0731),'method':_0x191a55(0x1ab),'args':[_0x3e6b53]});if(!this[_0x191a55(_0x21e444._0x538a75)])throw new DriverError(_0x191a55(_0x21e444._0x3ea35f),{});const _0x4f59f5=new FakeContext(this[_0x191a55(_0x21e444._0x178a41)],this['behavior'],_0x191a55(0x1a8)+this[_0x191a55(0x1bd)][_0x191a55(_0x21e444._0x512bfa)]);return this[_0x191a55(_0x21e444._0x1fcb46)]['push'](_0x4f59f5),_0x4f59f5;}async[_0x5a9d21(0x1db)](){const _0x3ea8bf={_0x264418:0x165},_0x30b103=_0x5a9d21;this[_0x30b103(0x1a0)]['push']({'scope':_0x30b103(0x1ba),'method':'close','args':[]}),this[_0x30b103(_0x3ea8bf._0x264418)]=![];}[_0x5a9d21(0x1b5)](){return void 0x0;}async[_0x5a9d21(0x191)](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x5a9d21(0x1c3)](_0x352a9b){const _0x69ad48={_0x3e518e:0x1d0},_0x47e44a=_0x5a9d21;throw new DriverError(_0x47e44a(_0x69ad48._0x3e518e),{});}[_0x5a9d21(0x168)](){const _0x4226fc={_0x150027:0x1a0},_0x4ef717=_0x5a9d21;return this[_0x4ef717(_0x4226fc._0x150027)][_0x4ef717(0x168)]();}[_0x5a9d21(0x1d6)](_0x2a45ae){const _0x1477c4={_0x568e6a:0x168},_0x38cb05=_0x5a9d21;return this[_0x38cb05(0x1a0)][_0x38cb05(_0x1477c4._0x568e6a)]()[_0x38cb05(0x170)](_0x2da986=>_0x2da986['method']===_0x2a45ae);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -69,6 +69,15 @@ declare function chainGetByTitle(loc: LocatorValue, text: Matcher, options?: {
|
|
|
69
69
|
exact?: boolean;
|
|
70
70
|
}): LocatorValue;
|
|
71
71
|
|
|
72
|
+
interface Logger {
|
|
73
|
+
info(msg: string, ...rest: unknown[]): void;
|
|
74
|
+
warn(msg: string, ...rest: unknown[]): void;
|
|
75
|
+
error(msg: string, ...rest: unknown[]): void;
|
|
76
|
+
debug(msg: string, ...rest: unknown[]): void;
|
|
77
|
+
step(msg: string, ...rest: unknown[]): void;
|
|
78
|
+
child(prefix: string): Logger;
|
|
79
|
+
}
|
|
80
|
+
|
|
72
81
|
/** Read-only lookup over external scenario variables. */
|
|
73
82
|
interface VariableStore {
|
|
74
83
|
has(name: string): boolean;
|
|
@@ -79,15 +88,6 @@ interface VariableStore {
|
|
|
79
88
|
describeSources?(): string;
|
|
80
89
|
}
|
|
81
90
|
|
|
82
|
-
interface Logger {
|
|
83
|
-
info(msg: string, ...rest: unknown[]): void;
|
|
84
|
-
warn(msg: string, ...rest: unknown[]): void;
|
|
85
|
-
error(msg: string, ...rest: unknown[]): void;
|
|
86
|
-
debug(msg: string, ...rest: unknown[]): void;
|
|
87
|
-
step(msg: string, ...rest: unknown[]): void;
|
|
88
|
-
child(prefix: string): Logger;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
91
|
interface Judge {
|
|
92
92
|
/** Produce a structured verdict. A clean `fail` is a RESULT (returned);
|
|
93
93
|
* infrastructure faults throw JudgeUnavailableError / ConfigError. */
|