@unotest/web 0.27.0 → 0.29.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 +1 -1
- package/.claude/skills/write-e2e-test-ground/SKILL.md +1 -1
- package/CHANGELOG.md +138 -0
- package/README.md +33 -16
- package/dist/config/schema.d.ts +12 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +0 -1
- 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.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.d.ts +2 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +1 -1
- package/guides/dsl-reference.md +14 -2
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +1 -1
|
@@ -677,7 +677,7 @@ definitions.
|
|
|
677
677
|
|
|
678
678
|
- **Production data mutation.** `apiCall` / `dbExec` against a
|
|
679
679
|
production base URL is a footgun — the `sandbox.*` pin model in
|
|
680
|
-
`unotest.config.{js,mjs,ts}` prevents it. Don't bypass.
|
|
680
|
+
`unotest/unotest.config.{js,mjs,ts}` prevents it. Don't bypass.
|
|
681
681
|
- **Browser automation for scraping.** This is an E2E testing tool;
|
|
682
682
|
scraping violates many target sites' terms of service.
|
|
683
683
|
- **Calling external LLM APIs.** `agent_fix` builds prompts for the
|
|
@@ -811,7 +811,7 @@ definitions.
|
|
|
811
811
|
|
|
812
812
|
- **Production data mutation.** `apiCall` / `dbExec` against a
|
|
813
813
|
production base URL is a footgun — the `sandbox.*` pin model in
|
|
814
|
-
`unotest.config.{js,mjs,ts}` prevents it. Don't bypass.
|
|
814
|
+
`unotest/unotest.config.{js,mjs,ts}` prevents it. Don't bypass.
|
|
815
815
|
- **Browser automation for scraping.** This is an E2E testing tool;
|
|
816
816
|
scraping violates many target sites' terms of service.
|
|
817
817
|
- **Calling external LLM APIs.** `agent_fix` builds prompts for the
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,143 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.29.0] - 2026-09-02
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ab296ff: New `env push`, `env set` and `env rm` commands send an environment's
|
|
8
|
+
values to a box — the target, the variables and the secrets a suite runs
|
|
9
|
+
with there — from the same files a local run reads (`unotest/.env`,
|
|
10
|
+
`.env.<env>`, `.secrets`, `.secrets.<env>`), or from files named with
|
|
11
|
+
`--env-file` / `--secrets-file`. `.env*` become the box environment's
|
|
12
|
+
variables, `.secrets*` its secrets and `APP_BASE_URL` its target;
|
|
13
|
+
`UNOTEST_*` and empty values stay home and are listed as skipped. A push
|
|
14
|
+
replaces the box's layers and reports what it removed; `env set` reads
|
|
15
|
+
one value from stdin, never from the command line. Values never print.
|
|
16
|
+
The commands use the project token of `bundle push`, minted on the box
|
|
17
|
+
with the new `--values` scope — a token without it is refused, so a CI
|
|
18
|
+
token that pushes suites cannot rewrite an environment's credentials.
|
|
19
|
+
`@unotest/protocol` carries the wire (`box-values.ts`) and `TARGET_ENV_VAR`.
|
|
20
|
+
The viewer's messages about box-held variables now point at these
|
|
21
|
+
commands instead of the box's shell.
|
|
22
|
+
- 64108b8: The Variables panel of a viewer on a box now lists what the box injects
|
|
23
|
+
into every run of the environment — the target URL, the operator's
|
|
24
|
+
variables and the names of the environment's secrets — as read-only rows
|
|
25
|
+
with a `box` badge. It used to read `unotest/.env*`, which never travel
|
|
26
|
+
in a bundle, and show an empty panel next to a full run history; a
|
|
27
|
+
secret's value is still never sent, only its name. The box passes the
|
|
28
|
+
names through `UNOTEST_BOX_VARIABLE_NAMES` / `UNOTEST_BOX_SECRET_NAMES`
|
|
29
|
+
(constants in `@unotest/protocol`); writes to such a key are refused
|
|
30
|
+
with 409 and point at `boxd.config.mjs` / `boxd.mjs secret set`.
|
|
31
|
+
- 64108b8: `UNOTEST_BROWSER` and `UNOTEST_BROWSER_CHANNEL` now exist as per-run
|
|
32
|
+
overrides of `browsers[0]` and `channel` in `unotest.config.*`.
|
|
33
|
+
`UNOTEST_BROWSER` was shown in the CI manual and the `.env.example`
|
|
34
|
+
template, but nothing read it — a browser matrix ran Chromium three
|
|
35
|
+
times. A value outside `chromium | firefox | webkit` (or `chrome |
|
|
36
|
+
msedge | chrome-beta | bundled`) is an error, not a silent default. The
|
|
37
|
+
config travels with the suite in a bundle, so a `channel: "chrome"`
|
|
38
|
+
written on a laptop used to ask a box for a Google Chrome it does not
|
|
39
|
+
have; a box now sets `UNOTEST_BROWSER_CHANNEL=bundled` for every run and
|
|
40
|
+
the run log names each override. Constants: `BROWSER_ENV`,
|
|
41
|
+
`BROWSER_CHANNEL_ENV`, `BUNDLED_BROWSER_CHANNEL` in `@unotest/protocol`.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 64108b8: `init` without `--force` still leaves an existing `unotest/.env.example`
|
|
46
|
+
alone, but the skip now names the keys the current template declares
|
|
47
|
+
that the file does not — a project seeded on an older version never
|
|
48
|
+
learnt about `UNOTEST_STEP_SCREENSHOTS`, because nothing compared its
|
|
49
|
+
file with the template. The file is not touched.
|
|
50
|
+
`declaredEnvKeys()` in `@unotest/protocol` reads active and
|
|
51
|
+
commented-out keys alike. The DSL reference now documents
|
|
52
|
+
`UNOTEST_STEP_SCREENSHOTS` next to `screenshot()`: readers of that page
|
|
53
|
+
concluded the every-step mode did not exist.
|
|
54
|
+
- 64108b8: `shell()` tells a missing working directory apart from a missing
|
|
55
|
+
binary. Node reports both as `ENOENT`, and the old message sent people
|
|
56
|
+
looking for a tool that was there all along while the real cause was a
|
|
57
|
+
`sandbox.shellCwd` that exists on the laptop and not in CI or on a box.
|
|
58
|
+
The directory is checked before the spawn and the new
|
|
59
|
+
`ShellCwdMissingError` names it and where it came from.
|
|
60
|
+
- Updated dependencies [ab296ff]
|
|
61
|
+
- Updated dependencies [64108b8]
|
|
62
|
+
- Updated dependencies [64108b8]
|
|
63
|
+
- Updated dependencies [64108b8]
|
|
64
|
+
- @unotest/protocol@0.29.0
|
|
65
|
+
- @unotest/viewer@0.29.0
|
|
66
|
+
- @unotest/core@0.29.0
|
|
67
|
+
- @unotest/dsl@0.29.0
|
|
68
|
+
- @unotest/grounder-client@0.29.0
|
|
69
|
+
|
|
70
|
+
## [0.28.0] - 2026-09-01
|
|
71
|
+
|
|
72
|
+
### Minor Changes
|
|
73
|
+
|
|
74
|
+
- 6f385ec: **BREAKING.** The suite is its own npm package now:
|
|
75
|
+
`unotest/package.json` pins `@unotest/web`, `unotest.config.*` moved
|
|
76
|
+
into `unotest/`, and a bundle carries that directory and nothing above
|
|
77
|
+
it.
|
|
78
|
+
|
|
79
|
+
A bundle used to carry the project's root `package.json` and lockfile,
|
|
80
|
+
and a box ran `npm ci` over the whole product tree to obtain one
|
|
81
|
+
dependency. On a real customer that failed outright: their own peer
|
|
82
|
+
conflict (`@nestjs/core@10` against `@nestjs/websockets@11`) was hidden
|
|
83
|
+
locally behind `legacy-peer-deps=true` in `~/.npmrc`, which does not
|
|
84
|
+
travel in a bundle and must not — registry tokens live there. The
|
|
85
|
+
bundle arrived, the install died, the environment never got it. The
|
|
86
|
+
same class of failure was waiting for anyone with a private registry, a
|
|
87
|
+
native build or a `prepare` hook. Fixing it by editing the customer's
|
|
88
|
+
dependency stack is not an option: a test runner has no business in the
|
|
89
|
+
dependency graph of the application it tests.
|
|
90
|
+
|
|
91
|
+
What follows from it: we no longer dictate your package manager (the
|
|
92
|
+
"your project locks with pnpm, and a box installs with `npm ci`"
|
|
93
|
+
refusal is gone — npm is now only about `unotest/`), a box install
|
|
94
|
+
shrinks from the product tree to the suite's own dependencies, and
|
|
95
|
+
upgrading `@unotest/web` can no longer collide with your application.
|
|
96
|
+
|
|
97
|
+
The CLI finds the project root by walking UP for `unotest/e2e`, the way
|
|
98
|
+
git finds a repository, so `cd unotest && npx @unotest/web e2e <name>`
|
|
99
|
+
works as well as running from the root. Relative path arguments resolve
|
|
100
|
+
against the directory you typed them in.
|
|
101
|
+
|
|
102
|
+
Migrating from 0.27:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
npx @unotest/web init
|
|
106
|
+
git mv unotest.config.mjs unotest/unotest.config.mjs
|
|
107
|
+
npm install --prefix unotest
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
and drop `@unotest/web` from your application's `package.json`. The old
|
|
111
|
+
layout is diagnosed rather than ignored: a config left at the project
|
|
112
|
+
root fails the load with these instructions, because the alternative is
|
|
113
|
+
a suite running silently on defaults — no `baseUrl`, no `sandbox`, no
|
|
114
|
+
schedules.
|
|
115
|
+
|
|
116
|
+
Two traps worth knowing about, both named by that diagnostic:
|
|
117
|
+
|
|
118
|
+
- `unotest/jsconfig.json` — an `include` written for the old layout
|
|
119
|
+
points at `../node_modules`, where the package no longer is, and
|
|
120
|
+
editor autocomplete for the DSL dies silently. It is your file, so
|
|
121
|
+
nothing rewrites it: `../node_modules/` becomes `./node_modules/`.
|
|
122
|
+
- a config that derives paths from its own location
|
|
123
|
+
(`dirname(fileURLToPath(import.meta.url))`) now sits one level
|
|
124
|
+
deeper, so those paths need a `..`.
|
|
125
|
+
|
|
126
|
+
On the box side: bundles pushed before 0.28.0 are refused with an
|
|
127
|
+
explicit message instead of being installed — push them again from
|
|
128
|
+
0.28.0 or newer. Without that, `npm ci` in a `unotest/` that has no
|
|
129
|
+
manifest would walk up the tree (that is how npm behaves), install the
|
|
130
|
+
old root manifest, and leave the box `unhealthy` for twenty minutes
|
|
131
|
+
without saying why.
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- @unotest/viewer@0.28.0
|
|
136
|
+
- @unotest/core@0.28.0
|
|
137
|
+
- @unotest/dsl@0.28.0
|
|
138
|
+
- @unotest/grounder-client@0.28.0
|
|
139
|
+
- @unotest/protocol@0.28.0
|
|
140
|
+
|
|
3
141
|
## [0.27.0] - 2026-08-31
|
|
4
142
|
|
|
5
143
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ Hand-written setups can keep declaring `schedules: [...]` in
|
|
|
97
97
|
target:
|
|
98
98
|
|
|
99
99
|
```js
|
|
100
|
-
// unotest.config.mjs
|
|
100
|
+
// unotest/unotest.config.mjs
|
|
101
101
|
export default {
|
|
102
102
|
schedules: [
|
|
103
103
|
{ collection: "smoke", cron: "0 * * * *" },
|
|
@@ -138,23 +138,26 @@ schedules and the history in one place), tests get there by being pushed:
|
|
|
138
138
|
npx @unotest/web bundle push --box https://tests.example.com
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
It packs `unotest
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
141
|
+
It packs `unotest/` — the suite package, with its config, its
|
|
142
|
+
`package.json` and its lockfile — and nothing else. Your application's
|
|
143
|
+
manifest and dependencies do not travel and are never installed on the
|
|
144
|
+
box, which is why a box can run a suite for a project whose own
|
|
145
|
+
dependency graph it could not resolve in the first place.
|
|
146
|
+
|
|
147
|
+
**The box never reads your repository**: it holds no key to it, so
|
|
148
|
+
nothing is there that you did not send. Uncommitted work is included and
|
|
149
|
+
marked *wip*, which is what makes this a fast loop rather than a release
|
|
150
|
+
step. Secrets stay behind: `unotest/.env*` and `.secrets*` never travel,
|
|
151
|
+
because environment values belong to the environment and are injected
|
|
152
|
+
over the bundle when it runs. Install hooks (`postinstall`, `prepare`,
|
|
153
|
+
...) are removed from the packed `unotest/package.json`: a box installs
|
|
154
|
+
the suite's dependencies, it does not run a checkout's hooks. Dependency
|
|
155
|
+
install scripts (native modules) run as normal.
|
|
153
156
|
|
|
154
157
|
What would break on the box is refused here instead — a scenario that
|
|
155
|
-
reads a file outside `unotest/`, a missing
|
|
156
|
-
pin. The bundle's id is a hash of its content, so
|
|
157
|
-
suite is a no-op.
|
|
158
|
+
reads a file outside `unotest/`, a missing `unotest/package-lock.json`,
|
|
159
|
+
no `@unotest/web` pin. The bundle's id is a hash of its content, so
|
|
160
|
+
pushing an unchanged suite is a no-op.
|
|
158
161
|
|
|
159
162
|
From a CI job, push and run in one command:
|
|
160
163
|
|
|
@@ -169,6 +172,20 @@ back to GitHub. `--pr` makes a newer push withdraw the older runs of the
|
|
|
169
172
|
same pull request that are still waiting, so three pushes in five minutes
|
|
170
173
|
cost one suite. Recipe: `guides/manuals/ci-setup.md`.
|
|
171
174
|
|
|
175
|
+
The values a suite runs with on the box — `APP_BASE_URL`, its `.env`
|
|
176
|
+
settings, its secrets — are sent separately, from the same files a local
|
|
177
|
+
run reads:
|
|
178
|
+
|
|
179
|
+
```sh
|
|
180
|
+
npx @unotest/web env push dev # .env + .env.dev + .secrets + .secrets.dev
|
|
181
|
+
printf '%s' "$KEY" | npx @unotest/web env set dev API_KEY --secret
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
`.env*` become the environment's variables, `.secrets*` its secrets,
|
|
185
|
+
`APP_BASE_URL` its target; `UNOTEST_*` stay home. A value never prints.
|
|
186
|
+
The token must be minted with `--values` on the box. Admins also see and
|
|
187
|
+
change them on the box's admin page. Manual: `guides/manuals/box-values.md`.
|
|
188
|
+
|
|
172
189
|
## 5. Watch it run — the viewer
|
|
173
190
|
|
|
174
191
|
`npx @unotest/web viewer` opens a local UI (no cloud, no account):
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -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]>>;
|
|
@@ -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;
|
|
@@ -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 _0x4a6152=_0x5995;function _0x1341(){var _0x209fe8=['y3jHC2G','ywnJzxb0','y2HYB21PDw0','mZG1nwneBfrcEq','y2HYB21L','zgvMyxvSDa','odyXrvLwDhfd','DMfSAwrHDg9YoMLMlxnOyxbL','D2vIA2L0','DMfSAwrHDg9YoMXPC3qTyxjN','zw51Bq','yM9VBgvHBG','mZe2mtu4mfPjr2DVtW','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','Dw5PB24','CMvJB3jK','mJK1ntjkzuvvu2m','DMfSAwrHDg9YoNn0zxaTC2HHCgu','Cg9ZAxrPDMu','B2jQzwn0','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoMfYAxr5','BNvTyMvY','C3rYAw5N','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','Aw50','mJe2mJC3ohL2uLnqzq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','Dw5VDgvZDc9LmMu','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','nZiYnZCYmejXwxDlqG','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','y2HYB21LlwjLDge','DhjHBNnPzw50','BxnLzgDL','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','yxjYyxK','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','zMLYzwzVEa','D2fYBG','B3b0Aw9UywW','BgLUDdP4Cgf0Aa','BwfUDwfS','mZy0neL5uLL1za','mteXmZa1nvHhreHAzW','BgL0zxjHBa','BgLUDdPWyxvZzs1LEhbSAwnPDa','C3rKAw8','DxjS','DMfSAwrHDg9YoM1LDgeTC2HHCgu','mtu5otKWDhHbt1fH','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BNvSBa','B2zM','BwLU','BgLUDdPZy2vUyxjPBY1PBI1YB290','Bwf4','zxjYB3i'];_0x1341=function(){return _0x209fe8;};return _0x1341();}(function(_0x168c9e,_0x24fb0d){var _0x1ed447={_0x31b43a:0xa8,_0x2c65b2:0x95,_0x37f246:0x7b,_0x5095a9:0x84,_0x498d3c:0x6f,_0x292e09:0x7e},_0x746667=_0x5995,_0x42ac26=_0x168c9e();while(!![]){try{var _0x109fcf=parseInt(_0x746667(_0x1ed447._0x31b43a))/0x1+-parseInt(_0x746667(_0x1ed447._0x2c65b2))/0x2+-parseInt(_0x746667(_0x1ed447._0x37f246))/0x3*(-parseInt(_0x746667(0xa7))/0x4)+parseInt(_0x746667(_0x1ed447._0x5095a9))/0x5+parseInt(_0x746667(_0x1ed447._0x498d3c))/0x6+parseInt(_0x746667(_0x1ed447._0x292e09))/0x7*(-parseInt(_0x746667(0x89))/0x8)+-parseInt(_0x746667(0x9a))/0x9;if(_0x109fcf===_0x24fb0d)break;else _0x42ac26['push'](_0x42ac26['shift']());}catch(_0x22c62f){_0x42ac26['push'](_0x42ac26['shift']());}}}(_0x1341,0x936c0));import{z}from'zod';function _0x5995(_0x59be4b,_0x230267){_0x59be4b=_0x59be4b-0x6b;var _0x134156=_0x1341();var _0x59957a=_0x134156[_0x59be4b];if(_0x5995['NMVKkd']===undefined){var _0x78a2b9=function(_0x2ded07){var _0x1d1d48='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x35649c='',_0x5ba1b2='';for(var _0x4fed8b=0x0,_0x5de7a5,_0x48a6f4,_0x30bdc0=0x0;_0x48a6f4=_0x2ded07['charAt'](_0x30bdc0++);~_0x48a6f4&&(_0x5de7a5=_0x4fed8b%0x4?_0x5de7a5*0x40+_0x48a6f4:_0x48a6f4,_0x4fed8b++%0x4)?_0x35649c+=String['fromCharCode'](0xff&_0x5de7a5>>(-0x2*_0x4fed8b&0x6)):0x0){_0x48a6f4=_0x1d1d48['indexOf'](_0x48a6f4);}for(var _0x1dc017=0x0,_0x249991=_0x35649c['length'];_0x1dc017<_0x249991;_0x1dc017++){_0x5ba1b2+='%'+('00'+_0x35649c['charCodeAt'](_0x1dc017)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ba1b2);};_0x5995['zNDKId']=_0x78a2b9,_0x5995['DRcWjo']={},_0x5995['NMVKkd']=!![];}var _0x181910=_0x134156[0x0],_0x502fa8=_0x59be4b+_0x181910,_0x420fae=_0x5995['DRcWjo'][_0x502fa8];return!_0x420fae?(_0x59957a=_0x5995['zNDKId'](_0x59957a),_0x5995['DRcWjo'][_0x502fa8]=_0x59957a):_0x59957a=_0x420fae,_0x59957a;}var BrowserSchema=z[_0x4a6152(0x82)]([_0x4a6152(0x7a),_0x4a6152(0xa2),_0x4a6152(0x80)]),BrowserChannelSchema=z[_0x4a6152(0x87)]([z['literal'](_0x4a6152(0x7c)),z[_0x4a6152(0xa9)](_0x4a6152(0x9e)),z['literal'](_0x4a6152(0x9c)),z[_0x4a6152(0x72)]()])['optional'](),ViewportSchema=z[_0x4a6152(0x8c)]({'width':z[_0x4a6152(0x91)]()['int']()[_0x4a6152(0x8b)](),'height':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)]()}),RetryReasonSchema=z[_0x4a6152(0x82)]([_0x4a6152(0x9d),'network',_0x4a6152(0x78)]),RetryConfigSchema=z[_0x4a6152(0x8c)]({'count':z['number']()['int']()[_0x4a6152(0x74)](0x0)[_0x4a6152(0x76)](0xa),'on':z[_0x4a6152(0xa0)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x4a6152(0x8c)]({'tier1':z['literal'](!![])[_0x4a6152(0x7d)](!![]),'tier2':z[_0x4a6152(0x83)](),'tier3':z[_0x4a6152(0x8c)]({'network':z[_0x4a6152(0x83)](),'video':z[_0x4a6152(0x83)]()}),'retention':z[_0x4a6152(0x8c)]({'runs':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)](),'days':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()['positive']()}),'storageDir':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1)}),DialogPolicySchema=z[_0x4a6152(0x82)]([_0x4a6152(0x79),'dismiss',_0x4a6152(0xa6)]),LinterRuleIdSchema=z[_0x4a6152(0x82)](['lint:deep-css',_0x4a6152(0xa5),'lint:obfuscated-class',_0x4a6152(0x6b),_0x4a6152(0x85),_0x4a6152(0x9b),_0x4a6152(0x75),'lint:mustache-in-dsl',_0x4a6152(0x98),'lint:regex-invalid','lint:echo-assert',_0x4a6152(0xa1),_0x4a6152(0x9f),'lint:flow-returns-value','validator:unknown-function',_0x4a6152(0x90),'validator:arg-kind',_0x4a6152(0x8d),_0x4a6152(0x8a),_0x4a6152(0x6e),_0x4a6152(0x70),'validator:for-shape',_0x4a6152(0x7f),_0x4a6152(0x71),_0x4a6152(0x96),_0x4a6152(0x86),_0x4a6152(0x8e),_0x4a6152(0x99),_0x4a6152(0x81),_0x4a6152(0x93)]),LinterSeveritySchema=z[_0x4a6152(0x82)]([_0x4a6152(0x73),_0x4a6152(0xa3),_0x4a6152(0x77)]),LinterConfigSchema=z[_0x4a6152(0x8c)]({'enabled':z[_0x4a6152(0x83)](),'rules':z[_0x4a6152(0x88)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=z[_0x4a6152(0x8c)]({'enabled':z[_0x4a6152(0x83)]()[_0x4a6152(0x7d)](!![]),'concurrency':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)]()[_0x4a6152(0x7d)](0x1)}),ScheduleSchema=z[_0x4a6152(0x8c)]({'collection':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1),'cron':z['string']()['min'](0x1),'env':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1)[_0x4a6152(0xa4)](),'prepare':z[_0x4a6152(0x92)]()['min'](0x1)[_0x4a6152(0xa4)]()}),McpConfigSchema=z['object']({'transport':z[_0x4a6152(0xa9)](_0x4a6152(0x6c))}),SandboxConfigSchema=z[_0x4a6152(0x8c)]({'shellCwd':z[_0x4a6152(0x92)]()[_0x4a6152(0xa4)](),'shellTimeoutMs':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)]()[_0x4a6152(0xa4)](),'exportSecrets':z['array'](z[_0x4a6152(0x92)]())[_0x4a6152(0xa4)](),'database':z[_0x4a6152(0x92)]()['optional'](),'apiBaseUrl':z[_0x4a6152(0x92)]()[_0x4a6152(0x6d)]()[_0x4a6152(0xa4)](),'uploadDir':z[_0x4a6152(0x92)]()[_0x4a6152(0xa4)]()}),WebServerConfigSchema=z[_0x4a6152(0x8c)]({'command':z['string']()[_0x4a6152(0x74)](0x1),'url':z[_0x4a6152(0x92)]()[_0x4a6152(0x6d)](),'reuseExistingServer':z[_0x4a6152(0x83)]()[_0x4a6152(0x7d)](!![]),'timeoutMs':z['number']()['int']()[_0x4a6152(0x8b)]()['default'](0xea60)}),UnotestConfigSchema=z['object']({'baseUrl':z[_0x4a6152(0x92)]()['url']()[_0x4a6152(0xa4)](),'webServer':WebServerConfigSchema['optional'](),'browsers':z[_0x4a6152(0xa0)](BrowserSchema)[_0x4a6152(0x74)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x4a6152(0x92)]()[_0x4a6152(0xa4)](),'testDir':z[_0x4a6152(0x92)]()[_0x4a6152(0x74)](0x1),'helpersDir':z[_0x4a6152(0x92)]()['min'](0x1),'defaultTimeoutMs':z[_0x4a6152(0x91)]()['int']()[_0x4a6152(0x8b)](),'defaultNavigationTimeoutMs':z[_0x4a6152(0x91)]()[_0x4a6152(0x94)]()[_0x4a6152(0x8b)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':z['array'](ScheduleSchema)[_0x4a6152(0x7d)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x4a6152(0x7a)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x4a6152(0x9d)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4a6152(0x8f)},'dialogPolicy':_0x4a6152(0x79),'testDir':_0x4a6152(0x97),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':_0x4a6152(0xa3),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':_0x4a6152(0x73),'lint:evaluate-discouraged':_0x4a6152(0xa3),'lint:scenario-in-root':'error','lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':_0x4a6152(0x77),'lint:echo-assert':_0x4a6152(0xa3),'lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x4a6152(0xa3),'validator:unknown-function':'error'}},'mcp':{'transport':'stdio'},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};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 _0x22a6(_0x509c4c,_0x871368){_0x509c4c=_0x509c4c-0xe3;const _0xb1c7a0=_0xb1c7();let _0x22a656=_0xb1c7a0[_0x509c4c];if(_0x22a6['KfTYOD']===undefined){var _0x4bb0c6=function(_0x426874){const _0x5aca96='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37be77='',_0x1bd526='';for(let _0x109d07=0x0,_0x2e5c09,_0x13d760,_0x44ab43=0x0;_0x13d760=_0x426874['charAt'](_0x44ab43++);~_0x13d760&&(_0x2e5c09=_0x109d07%0x4?_0x2e5c09*0x40+_0x13d760:_0x13d760,_0x109d07++%0x4)?_0x37be77+=String['fromCharCode'](0xff&_0x2e5c09>>(-0x2*_0x109d07&0x6)):0x0){_0x13d760=_0x5aca96['indexOf'](_0x13d760);}for(let _0x3ec69e=0x0,_0x1ad90e=_0x37be77['length'];_0x3ec69e<_0x1ad90e;_0x3ec69e++){_0x1bd526+='%'+('00'+_0x37be77['charCodeAt'](_0x3ec69e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1bd526);};_0x22a6['LWpWII']=_0x4bb0c6,_0x22a6['TbdPNw']={},_0x22a6['KfTYOD']=!![];}const _0x34eae0=_0xb1c7a0[0x0],_0x5ee126=_0x509c4c+_0x34eae0,_0x131500=_0x22a6['TbdPNw'][_0x5ee126];return!_0x131500?(_0x22a656=_0x22a6['LWpWII'](_0x22a656),_0x22a6['TbdPNw'][_0x5ee126]=_0x22a656):_0x22a656=_0x131500,_0x22a656;}const _0xf52122=_0x22a6;(function(_0x17764b,_0x13377c){const _0x370910={_0x2f01ae:0x122,_0x181057:0x116,_0x1f3cfb:0x129,_0xa19085:0x14e,_0x51ca8a:0xfe,_0x5800f5:0x120,_0x390efc:0x11e,_0x542619:0xf8,_0x367f5b:0xec},_0x590bfa=_0x22a6,_0x382183=_0x17764b();while(!![]){try{const _0x120e74=parseInt(_0x590bfa(_0x370910._0x2f01ae))/0x1+-parseInt(_0x590bfa(0x114))/0x2*(parseInt(_0x590bfa(_0x370910._0x181057))/0x3)+-parseInt(_0x590bfa(_0x370910._0x1f3cfb))/0x4*(-parseInt(_0x590bfa(_0x370910._0xa19085))/0x5)+-parseInt(_0x590bfa(0x156))/0x6*(-parseInt(_0x590bfa(_0x370910._0x51ca8a))/0x7)+-parseInt(_0x590bfa(_0x370910._0x5800f5))/0x8*(parseInt(_0x590bfa(0xf0))/0x9)+parseInt(_0x590bfa(_0x370910._0x390efc))/0xa*(-parseInt(_0x590bfa(_0x370910._0x542619))/0xb)+-parseInt(_0x590bfa(_0x370910._0x367f5b))/0xc*(-parseInt(_0x590bfa(0xe7))/0xd);if(_0x120e74===_0x13377c)break;else _0x382183['push'](_0x382183['shift']());}catch(_0x5778cd){_0x382183['push'](_0x382183['shift']());}}}(_0xb1c7,0x69487));var __defProp=Object[_0xf52122(0xeb)],__name=(_0x37be77,_0x1bd526)=>__defProp(_0x37be77,'name',{'value':_0x1bd526,'configurable':!![]});function _0xb1c7(){const _0x545391=['zNjVBq','lNbHz2uW','Aw5PDgLHBfvYBa','pgrPDJ48l2rPDJ4','z2v0qxr0CMLIDxrL','yMvOyxzPB3i','CMvJB3jK','DgL0Bgu','C3vIC2nYAwjL','CMvSB2fK','D2fPDezVCK5HDMLNyxrPB24','tg9JyxrVCKvYCM9Y','C2vSzwn0t3b0Aw9U','B3v0zxjiDg1SqNLszwy','B3v0zxjive1m','Bwv0Ag9K','CMvM','BgvUz3rO','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','AxnwAxnPyMXLqNLezwzHDwX0','Dgv4DenVBNrLBNrcEurLzMf1Bhq','Dgv4DenVBNrLBNq','D2fPDezVCLrLEhq','D2fPDezVCKXVywrtDgf0zq','Ag92zxi','zhjPDMvY','C2v0qwn0AxzLugfNzq','zw50zxjgCMfTzq','Bg9JywXtDg9YywDLu3rHDgu','BMv3q29UDgv4Da','C2v0q29VA2LL','Aw5UzxjuzxH0','C3bSAwnL','y291BNq','otiXnvzXt2joBW','Cg9WDxbpBKnSAwnR','zhjHz0fUzerYB3a','y291BNrcEurLzMf1Bhq','rMfRzvDLyKrYAxzLCG','rMfRzunVBNrLEhq','Aw5WDxrwywX1zq','zMfRzs1WBMC','otyYodjOtfz6zfm','Cg9W','ywrK','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','zwXLBwvUDeHPBNrcEvjLzG','z29cywnR','AxnwAxnPyMXL','ChvZAa','D2fPDezVCLvYBa','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','Bg9JywXtDg9YywDL','mJCZnty2oe1czwjNBq','Bwf5yMvuAhjVDW','C2f2zvn0B3jHz2vtDgf0zq','ywjVDxq6yMXHBMS','zgvMAw5LuhjVCgvYDhK','mJrzsfrbyxe','ywn0AxzLswr4','CgfNzuXPC3q','zNjHBwvtDgfJAW','mtHJveXIsKu','y3vYCMvUDfvYBa','rMfRzvbHz2u','zMLSDgvY','DxjS','BMv0D29YA0vUDhjPzxm','AxneAxnHyMXLzej5rgvMyxvSDa','lNbHz2u','odG2nLDTCuPdyW','y2XVC2u','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zMLSBa','y2XPy2S','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','ndLxtuH6B00','y2XPCgjVyxjKugfZDgu','B25bzNrLCKnSAwnR','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','C2nVCgu','zxzHBhvHDgu','Aw5ZCgvJDevSzw1LBNq','y2fSBhm','zw1PDezHA2vqB3b1Ca','BMv3ugfNzuXPC3rLBMvYCW','CMvJB3jKzxi','Bgf1BMnOzwq','z2v0q29VA2LL','zxjYB3jpBK5LEhrby3rPB24','C3rLChm','A2LUza','y29VA2LLu3rHDgu','zxzHBhvHDgvpBKXVy2f0B3i','ywn0AxzLugfNzq','Aw5WDxrwywX1zuj5rgvMyxvSDa','D3nfBMrWB2LUDa','AxneAxnHyMXLza','ntbxBwvmBvi','C2v0tg9JywXtDg9YywDL','nZy4mZndt1PSDfK','ChjLC3m','C2nYB2XSsw50B1zPzxC','iJ48l2rPDJ4','B25ozxDqywDL','D2fPDezVCG','y29UDgv4Dhm','Dw5JAgvJAW','nde5meLoqLbjCG','z29gB3j3yxjK','mtiWntK0ng5Mve5iBq','Bgf1BMnO','mZu1ntm1AMrhrvnn','Aw5UzxjuzxH0qNLezwzHDwX0','z2v0tg9JywXtDg9YywDL','DxbSB2fKrMLSzq','y2HLy2S','y29UC29SzuvUDhjPzxm','y3jLyxrLuMvJB3jKzxi','mtC4ngzksKvcAa','zMfRzsb0AxrSzq','y2HLy2TLzfn0yxrL'];_0xb1c7=function(){return _0x545391;};return _0xb1c7();}function subscribe(_0x109d07,_0x2e5c09){const _0x3a4800=_0xf52122;return _0x109d07[_0x3a4800(0x158)](_0x2e5c09),()=>{_0x109d07['delete'](_0x2e5c09);};}__name(subscribe,_0xf52122(0x134));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0xf52122(0x137));}};function createRecorder(){const _0xd54785={_0x47f991:0xe3},_0x47067e=_0xf52122,_0x13d760=[];let _0x44ab43=0x0;return{'push':__name(_0x3ec69e=>_0x13d760[_0x47067e(0xe3)]({..._0x3ec69e,'seq':_0x44ab43++}),_0x47067e(_0xd54785._0x47f991)),'calls':__name(()=>_0x13d760,'calls')};}__name(createRecorder,_0xf52122(0x128));var FakePage=class{constructor(_0x1ad90e,_0x17e6a9,_0x3ea58b,_0x3d35d6){const _0x2d5db0={_0x4ebc23:0x102,_0x33b231:0xf1},_0x2cbf64=_0xf52122;this[_0x2cbf64(0x108)]=_0x1ad90e,this['behavior']=_0x17e6a9,this[_0x2cbf64(_0x2d5db0._0x4ebc23)]=_0x3ea58b,this[_0x2cbf64(_0x2d5db0._0x33b231)]=_0x3d35d6;}[_0xf52122(0x108)];[_0xf52122(0x131)];[_0xf52122(0x102)];static{__name(this,_0xf52122(0xf2));}[_0xf52122(0xf1)];['onAfterClick'];[_0xf52122(0x132)](_0x454340,_0x130529){const _0x2fbfaf={_0xfdecb:0xe3},_0x489733=_0xf52122;this['recorder'][_0x489733(_0x2fbfaf._0xfdecb)]({'scope':this[_0x489733(0x102)],'method':_0x454340,'args':_0x130529});}[_0xf52122(0xe8)](){const _0x117af7={_0x5c5530:0x131,_0x1621ca:0x131},_0x264b75=_0xf52122;if(this[_0x264b75(_0x117af7._0x5c5530)][_0x264b75(0x10b)]){const _0x1edcde=this[_0x264b75(_0x117af7._0x1621ca)]['errorOnNextAction'];this[_0x264b75(_0x117af7._0x5c5530)][_0x264b75(0x10b)]=void 0x0;throw _0x1edcde;}}[_0xf52122(0xf4)](){return this['currentUrl'];}async['title'](){const _0x4e7a90={_0x5bf5ea:0x132,_0x53a749:0x133},_0x597c46=_0xf52122;return this[_0x597c46(_0x4e7a90._0x5bf5ea)](_0x597c46(_0x4e7a90._0x53a749),[]),_0x597c46(0x12a);}async[_0xf52122(0xfc)](_0x1795e9,_0x721e89){const _0x5bf517={_0x12e2fc:0x100},_0x141519=_0xf52122;this['record']('click',[_0x1795e9,_0x721e89]),this['maybeThrow'](),this[_0x141519(_0x5bf517._0x12e2fc)]?.();}async['doubleClick'](_0x51cc45,_0x26715e){const _0xe5da96={_0x21e9bf:0x132},_0x487974=_0xf52122;this[_0x487974(_0xe5da96._0x21e9bf)]('doubleClick',[_0x51cc45,_0x26715e]),this[_0x487974(0xe8)]();}async[_0xf52122(0xfb)](_0x1ea40e,_0x4603d0,_0x16a878){const _0x3b54d3={_0x2863a6:0xfb,_0x1c9570:0xe8},_0x455cf6=_0xf52122;this['record'](_0x455cf6(_0x3b54d3._0x2863a6),[_0x1ea40e,_0x4603d0,_0x16a878]),this[_0x455cf6(_0x3b54d3._0x1c9570)]();}async[_0xf52122(0x117)](_0x24b560,_0x595202,_0x404439){const _0x1e0961={_0x310226:0x132},_0x2e5fc7=_0xf52122;this[_0x2e5fc7(_0x1e0961._0x310226)](_0x2e5fc7(0x117),[_0x24b560,_0x595202,_0x404439]),this[_0x2e5fc7(0xe8)]();}async[_0xf52122(0x126)](_0x5ebc19,_0x5edac2){const _0x436f75={_0x367419:0x132},_0x271a43=_0xf52122;this[_0x271a43(_0x436f75._0x367419)](_0x271a43(0x126),[_0x5ebc19,_0x5edac2]),this['maybeThrow']();}async['uncheck'](_0x3b9c53,_0x1f3ccf){const _0x4bf177={_0x484dac:0x132,_0x3b025f:0x11d,_0x1919e1:0xe8},_0x47f142=_0xf52122;this[_0x47f142(_0x4bf177._0x484dac)](_0x47f142(_0x4bf177._0x3b025f),[_0x3b9c53,_0x1f3ccf]),this[_0x47f142(_0x4bf177._0x1919e1)]();}async['selectOption'](_0x46300d,_0x3eb043,_0x6d648e){const _0x1d3103={_0x19a7dd:0x138},_0x7ac6b0=_0xf52122;this['record'](_0x7ac6b0(_0x1d3103._0x19a7dd),[_0x46300d,_0x3eb043,_0x6d648e]),this[_0x7ac6b0(0xe8)]();}async[_0xf52122(0x144)](_0x4693d5,_0x4cfb5e){const _0x32f338={_0x580288:0x132},_0x1ba91f=_0xf52122;this[_0x1ba91f(_0x32f338._0x580288)]('hover',[_0x4693d5,_0x4cfb5e]),this[_0x1ba91f(0xe8)]();}async[_0xf52122(0x118)](_0x135d2e){const _0xf8565f={_0x4ad1fc:0x118,_0x4e4241:0xe8},_0x482a9a=_0xf52122;this[_0x482a9a(0x132)](_0x482a9a(_0xf8565f._0x4ad1fc),[_0x135d2e]),this[_0x482a9a(_0xf8565f._0x4e4241)]();}async[_0xf52122(0x150)](_0x427b91,_0x1c8188,_0xcdc4d5){const _0x2f4c6c={_0x3ba3f4:0xe8},_0x54d058=_0xf52122;this['record'](_0x54d058(0x150),[_0x427b91,_0x1c8188,_0xcdc4d5]),this[_0x54d058(_0x2f4c6c._0x3ba3f4)]();}async[_0xf52122(0x125)](_0x43c079,_0x5731d0){const _0x531114={_0x205781:0x132},_0x5cd378=_0xf52122;this[_0x5cd378(_0x531114._0x205781)](_0x5cd378(0x125),[_0x43c079,_0x5731d0]),this[_0x5cd378(0xe8)]();}async[_0xf52122(0xff)](_0x280ddb,_0xd52532){const _0x135610={_0x5178a1:0xff},_0x2e8e1a=_0xf52122;this[_0x2e8e1a(0x132)](_0x2e8e1a(_0x135610._0x5178a1),[_0x280ddb,_0xd52532]),this['maybeThrow']();}async['count'](_0x148217){const _0x153f81=_0xf52122;return this[_0x153f81(0x132)](_0x153f81(0x14d),[_0x148217]),this['behavior'][_0x153f81(0x151)]??0x1;}async['textContent'](_0x21d3e2){const _0x128f79={_0x4f00da:0x132,_0x36b687:0x131,_0x1bc798:0x140},_0x45e892=_0xf52122;return this[_0x45e892(_0x128f79._0x4f00da)](_0x45e892(0x141),[_0x21d3e2]),this[_0x45e892(_0x128f79._0x36b687)][_0x45e892(_0x128f79._0x1bc798)]??'';}async[_0xf52122(0x14b)](_0x515336){const _0x5a9274={_0x43e56c:0x132,_0x5b9e19:0x123,_0x373909:0x140},_0x53dfdf=_0xf52122;return this[_0x53dfdf(_0x5a9274._0x43e56c)](_0x53dfdf(0x14b),[_0x515336]),this['behavior'][_0x53dfdf(_0x5a9274._0x5b9e19)]??this[_0x53dfdf(0x131)][_0x53dfdf(_0x5a9274._0x373909)]??'';}async[_0xf52122(0x154)](_0x3a5a62){const _0x59c87d={_0x4117e7:0x154,_0x56235e:0x131},_0x17375e=_0xf52122;return this[_0x17375e(0x132)](_0x17375e(_0x59c87d._0x4117e7),[_0x3a5a62]),this[_0x17375e(_0x59c87d._0x56235e)][_0x17375e(0x111)]??'';}async[_0xf52122(0x12b)](_0xbdb5da){const _0x128043={_0x30902b:0x132,_0x37eec8:0x12b,_0x1efcd2:0x131},_0xb4a5b=_0xf52122;return this[_0xb4a5b(_0x128043._0x30902b)](_0xb4a5b(_0x128043._0x37eec8),[_0xbdb5da]),this[_0xb4a5b(_0x128043._0x1efcd2)]['checkedStateByDefault']??null;}async['isVisible'](_0x7f8e5d){const _0x5134da={_0x2f02e2:0x131,_0x543218:0x13f},_0x5b4bcf=_0xf52122;return this[_0x5b4bcf(0x132)](_0x5b4bcf(0x15d),[_0x7f8e5d]),this[_0x5b4bcf(_0x5134da._0x2f02e2)][_0x5b4bcf(_0x5134da._0x543218)]??!![];}async[_0xf52122(0x113)](_0x132b6f){const _0x35cd3f={_0x384805:0x113},_0x1a1a5f=_0xf52122;return this['record'](_0x1a1a5f(_0x35cd3f._0x384805),[_0x132b6f]),this[_0x1a1a5f(0x131)][_0x1a1a5f(0xf6)]??![];}async['getAttribute'](_0x3251b6,_0x1ec8b3){const _0x4a829d={_0x58157b:0x131},_0x2e5872=_0xf52122;return this['record'](_0x2e5872(0x130),[_0x3251b6,_0x1ec8b3]),this[_0x2e5872(_0x4a829d._0x58157b)]['attributesByDefault']?.[_0x1ec8b3]??null;}async[_0xf52122(0x11b)](_0xb32204,_0x2302d8){const _0x518906=_0xf52122;this[_0x518906(0x132)]('waitFor',[_0xb32204,_0x2302d8]);}async[_0xf52122(0xe4)](_0x315f16,_0x5a9c80){const _0x25b415=_0xf52122;this[_0x25b415(0x132)](_0x25b415(0xe4),[_0x315f16,_0x5a9c80]);}async[_0xf52122(0x142)](_0x34ca9e,_0x28be32){const _0x46e7b3=_0xf52122;this[_0x46e7b3(0x132)]('waitForText',[_0x34ca9e,_0x28be32]);}async[_0xf52122(0x136)](_0x3e5242){this['record']('waitForNavigation',[_0x3e5242]);}async[_0xf52122(0x143)](_0x44b9b5,_0x508d19){this['record']('waitForLoadState',[_0x44b9b5,_0x508d19]);}async['goto'](_0x1f8730,_0x49d1b4){const _0x27066a=_0xf52122;this[_0x27066a(0x132)]('goto',[_0x1f8730,_0x49d1b4]),this['currentUrl']=_0x1f8730;}async[_0xf52122(0x135)](_0x2fc558){const _0x39e020={_0x5bf0a7:0x132,_0x5c1255:0x135},_0x7e5af5=_0xf52122;this[_0x7e5af5(_0x39e020._0x5bf0a7)](_0x7e5af5(_0x39e020._0x5c1255),[_0x2fc558]);}async['goBack'](_0x54786f){const _0x358690={_0x3b2e41:0x15c},_0x5c4081=_0xf52122;this[_0x5c4081(0x132)](_0x5c4081(_0x358690._0x3b2e41),[_0x54786f]);}async['goForward'](_0x53b1b4){const _0x539f3e={_0x1a762e:0x132},_0x456d43=_0xf52122;this[_0x456d43(_0x539f3e._0x1a762e)](_0x456d43(0x11f),[_0x53b1b4]);}async[_0xf52122(0x103)](_0x162889){const _0x4e6124={_0x25fd9c:0x103},_0x37f9ad=_0xf52122;return this[_0x37f9ad(0x132)](_0x37f9ad(_0x4e6124._0x25fd9c),[_0x162889]),void 0x0;}async[_0xf52122(0x10f)](_0x4ff392,_0x50d55a){const _0x2df159=_0xf52122;return this[_0x2df159(0x132)]('evaluateOnLocator',[_0x4ff392,_0x50d55a]),void 0x0;}async[_0xf52122(0x104)](_0x1ace52){const _0x534ab5={_0x1cbb88:0x10c,_0xc46343:0x10d,_0x3c70d2:0x13c,_0x2fd06a:0x131},_0x5becb6=_0xf52122;this['record']('inspectElement',[_0x1ace52]);if(_0x1ace52[_0x5becb6(_0x534ab5._0x1cbb88)][_0x5becb6(0x13d)]!==0x1||_0x1ace52[_0x5becb6(0x10c)][0x0][_0x5becb6(_0x534ab5._0xc46343)]!==_0x5becb6(_0x534ab5._0x3c70d2))return null;const _0x444139=_0x1ace52['steps'][0x0][_0x5becb6(_0x534ab5._0x3c70d2)],_0x613751=this[_0x5becb6(_0x534ab5._0x2fd06a)][_0x5becb6(0x15b)]?.[_0x444139];return _0x613751??null;}async['screenshot'](_0x27ed08){const _0x7baffa={_0x4b2714:0x132,_0x780b85:0x155},_0xece8c9=_0xf52122;return this[_0xece8c9(_0x7baffa._0x4b2714)]('screenshot',[_0x27ed08]),Buffer[_0xece8c9(0x12c)](_0xece8c9(_0x7baffa._0x780b85));}async[_0xf52122(0x13a)](_0x562fc0){const _0x25c645={_0x1b2f86:0x132,_0x5bae29:0x10d,_0x22ad7a:0x131,_0xdd4ada:0xfa},_0x5efca0=_0xf52122;this[_0x5efca0(_0x25c645._0x1b2f86)](_0x5efca0(0x13a),[_0x562fc0]);if(_0x562fc0['steps'][_0x5efca0(0x13d)]===0x1&&_0x562fc0[_0x5efca0(0x10c)][0x0][_0x5efca0(_0x25c645._0x5bae29)]===_0x5efca0(0x13c)){const _0x459228=_0x562fc0['steps'][0x0][_0x5efca0(0x13c)];return this[_0x5efca0(_0x25c645._0x22ad7a)][_0x5efca0(0x139)]?.[_0x459228]??_0x5efca0(_0x25c645._0xdd4ada)+_0x459228+_0x5efca0(0x119);}return _0x5efca0(0x12f);}},FakeContext=class{constructor(_0x58d276,_0x49dfe0,_0x5cdf45){const _0x52ceb9={_0x36a7bc:0x108,_0x27b1eb:0xea,_0x36143c:0xe6,_0x397273:0x10e},_0x5cbab7={_0x5d9e9f:0x106,_0x4eec8b:0x14f},_0x36fc44=_0xf52122;this[_0x36fc44(_0x52ceb9._0x36a7bc)]=_0x58d276,this[_0x36fc44(0x131)]=_0x49dfe0,this['scope']=_0x5cdf45;const _0x1e44a3=new FakePage(_0x58d276,_0x49dfe0,_0x5cdf45+_0x36fc44(0x12d),_0x49dfe0[_0x36fc44(0x12e)]??_0x36fc44(_0x52ceb9._0x27b1eb));_0x49dfe0[_0x36fc44(0x14f)]&&(_0x1e44a3[_0x36fc44(0x100)]=()=>{const _0x4973ed=_0x36fc44;this[_0x4973ed(_0x5cbab7._0x5d9e9f)](_0x49dfe0[_0x4973ed(_0x5cbab7._0x4eec8b)]);}),this[_0x36fc44(0xee)]=[_0x1e44a3],this['localStorageState']={..._0x49dfe0[_0x36fc44(_0x52ceb9._0x36143c)]??{}},this[_0x36fc44(_0x52ceb9._0x397273)]={..._0x49dfe0['cookies']??{}};}['recorder'];['behavior'];['scope'];static{__name(this,_0xf52122(0x153));}[_0xf52122(0xee)];[_0xf52122(0xed)]=0x0;[_0xf52122(0xef)]=[];[_0xf52122(0x148)];[_0xf52122(0x10e)];[_0xf52122(0x107)]=new Set();[_0xf52122(0x132)](_0x2a1547,_0x95eb02){const _0x374f91={_0x2a9866:0xe3},_0x27daea=_0xf52122;this['recorder'][_0x27daea(_0x374f91._0x2a9866)]({'scope':this[_0x27daea(0x102)],'method':_0x2a1547,'args':_0x95eb02});}['pages'](){const _0x59d2b7={_0x5d39b1:0xee},_0x33ee24=_0xf52122;return this[_0x33ee24(_0x59d2b7._0x5d39b1)];}[_0xf52122(0x110)](){const _0x334d4a={_0x2a2aff:0xee,_0x2951bf:0x15a},_0x5ca936=_0xf52122,_0x55aab5=this[_0x5ca936(_0x334d4a._0x2a2aff)][this[_0x5ca936(0xed)]];if(!_0x55aab5)throw new DriverError(_0x5ca936(_0x334d4a._0x2951bf),{'activeIdx':this['activeIdx']});return _0x55aab5;}[_0xf52122(0x127)](){const _0x3068a7={_0x51ad3a:0x131},_0x1060c8=_0xf52122;return this[_0x1060c8(_0x3068a7._0x51ad3a)][_0x1060c8(0x127)]??[];}[_0xf52122(0xf5)](){const _0x9d734a={_0x16c38e:0x131},_0x335f20=_0xf52122;return this[_0x335f20(_0x9d734a._0x16c38e)][_0x335f20(0xf5)]??[];}async[_0xf52122(0x146)](_0x54b63e){const _0x2de796={_0x5007c8:0x132,_0x38d53d:0x101,_0x3e6f6d:0xef},_0xf04601=_0xf52122;this[_0xf04601(_0x2de796._0x5007c8)](_0xf04601(0x146),[_0x54b63e]);if(_0x54b63e<0x0||_0x54b63e>=this[_0xf04601(0xee)][_0xf04601(0x13d)])throw new DriverError(_0xf04601(_0x2de796._0x38d53d),{'index':_0x54b63e,'available':this[_0xf04601(0xee)][_0xf04601(0x13d)]});this['activeIdx']=_0x54b63e,this[_0xf04601(_0x2de796._0x3e6f6d)]['length']=0x0;}[_0xf52122(0x11a)](_0x1ca191){return subscribe(this['newPageListeners'],_0x1ca191);}[_0xf52122(0x106)](_0x330f09){const _0x5a5e81={_0x35e89d:0x102,_0xc20859:0xf7,_0x26e529:0xee,_0x39f350:0x13d,_0x23107f:0xee,_0xc851d2:0xe3},_0x4da657=_0xf52122,_0x15975c=this[_0x4da657(_0x5a5e81._0x35e89d)]+_0x4da657(_0x5a5e81._0xc20859)+this[_0x4da657(_0x5a5e81._0x26e529)][_0x4da657(_0x5a5e81._0x39f350)],_0x4c01db=new FakePage(this['recorder'],this['behavior'],_0x15975c,_0x330f09);this[_0x4da657(_0x5a5e81._0x23107f)][_0x4da657(_0x5a5e81._0xc851d2)](_0x4c01db);const _0xc913c8=this[_0x4da657(0xee)][_0x4da657(0x13d)]-0x1;for(const _0x19a1ab of this[_0x4da657(0x107)]){try{_0x19a1ab({'index':_0xc913c8,'url':_0x330f09});}catch{}}return _0xc913c8;}['closeFakePage'](_0x199c99){const _0x257d91={_0x3e82cd:0xee,_0x3b53ab:0x101,_0x282021:0x13d},_0x59b117=_0xf52122;if(_0x199c99<0x0||_0x199c99>=this[_0x59b117(_0x257d91._0x3e82cd)][_0x59b117(0x13d)])throw new DriverError(_0x59b117(_0x257d91._0x3b53ab),{'index':_0x199c99,'available':this['pageList'][_0x59b117(_0x257d91._0x282021)]});this[_0x59b117(_0x257d91._0x3e82cd)][_0x59b117(0x14c)](_0x199c99,0x1);}async['enterFrame'](_0x169134){const _0x15ac00={_0x4e5554:0x147,_0x5d822c:0x10c,_0x5200dc:0x13d,_0x1e710f:0xe3},_0x1d21c9=_0xf52122;this[_0x1d21c9(0x132)](_0x1d21c9(_0x15ac00._0x4e5554),[_0x169134]);if(!_0x169134[_0x1d21c9(_0x15ac00._0x5d822c)][_0x1d21c9(_0x15ac00._0x5200dc)])throw new LocatorError(_0x1d21c9(0x159),{'locator':_0x169134});this[_0x1d21c9(0xef)][_0x1d21c9(_0x15ac00._0x1e710f)](_0x169134);}async['exitFrame'](){const _0x91ea4a={_0x1dfa12:0xe5},_0x43aa82=_0xf52122;this[_0x43aa82(0x132)]('exitFrame',[]);if(this[_0x43aa82(0xef)][_0x43aa82(0x13d)]===0x0)throw new DriverError(_0x43aa82(_0x91ea4a._0x1dfa12),{});this[_0x43aa82(0xef)][_0x43aa82(0x157)]();}async[_0xf52122(0x115)](_0x5b5d5d,_0x3d5942){const _0xd79e6a={_0x3b5156:0x148},_0x417a01=_0xf52122;this[_0x417a01(0x132)]('setLocalStorage',[_0x5b5d5d,_0x3d5942]),this[_0x417a01(_0xd79e6a._0x3b5156)][_0x5b5d5d]=_0x3d5942;}async[_0xf52122(0x124)](_0x4e6fe6){const _0x4143c5={_0x19ef03:0x124,_0x16c04c:0x148},_0x3f0c7c=_0xf52122;return this[_0x3f0c7c(0x132)](_0x3f0c7c(_0x4143c5._0x19ef03),[_0x4e6fe6]),this[_0x3f0c7c(_0x4143c5._0x16c04c)][_0x4e6fe6]??null;}async[_0xf52122(0x14a)](_0x21eee5,_0x54bafe,_0x529e51){const _0x351648={_0x327f4f:0x14a},_0x4293aa=_0xf52122;this[_0x4293aa(0x132)](_0x4293aa(_0x351648._0x327f4f),[_0x21eee5,_0x54bafe,_0x529e51]),this['cookieState'][_0x21eee5]=_0x54bafe;}async[_0xf52122(0x10a)](_0x5953dd){const _0x358f4f={_0x5e71d7:0x10a,_0x3948e0:0x10e},_0x417402=_0xf52122;return this['record'](_0x417402(_0x358f4f._0x5e71d7),[_0x5953dd]),this[_0x417402(_0x358f4f._0x3948e0)][_0x5953dd]??null;}async[_0xf52122(0xe9)](_0x3f7d9f){const _0xe9faff={_0x20f2c4:0x132,_0x285313:0xe9},_0xbc597e=_0xf52122;this[_0xbc597e(_0xe9faff._0x20f2c4)](_0xbc597e(_0xe9faff._0x285313),[_0x3f7d9f]);}async[_0xf52122(0x103)](_0x495c73){const _0x3fde4e={_0x27ee4e:0x103},_0x98d67c=_0xf52122;return this[_0x98d67c(0x132)](_0x98d67c(_0x3fde4e._0x27ee4e),[_0x495c73]),void 0x0;}async[_0xf52122(0xf9)](){const _0x442fdb={_0x53c5f5:0x132},_0x1872f6=_0xf52122;this[_0x1872f6(_0x442fdb._0x53c5f5)]('close',[]);}['frameDepth'](){const _0x3a2034=_0xf52122;return this[_0x3a2034(0xef)]['length'];}},FakeWebDriver=class{constructor(_0x2ea376={}){const _0x38fd4c={_0x58ddd8:0x131,_0x544d9f:0x108},_0x5e3922=_0xf52122;this[_0x5e3922(_0x38fd4c._0x58ddd8)]=_0x2ea376,this[_0x5e3922(_0x38fd4c._0x544d9f)]=createRecorder();}['behavior'];static{__name(this,_0xf52122(0x152));}[_0xf52122(0x109)]=![];['recorder'];[_0xf52122(0x11c)]=[];async[_0xf52122(0x121)](_0x46ac49){const _0x165a5a={_0x59d34:0xe3,_0x1c8f81:0x109},_0x2e225a=_0xf52122;this['recorder'][_0x2e225a(_0x165a5a._0x59d34)]({'scope':_0x2e225a(0x145),'method':'launch','args':[_0x46ac49]}),this[_0x2e225a(_0x165a5a._0x1c8f81)]=!![];}async[_0xf52122(0x149)](_0x19bbb3){const _0x253836={_0x38c11b:0x108,_0x26fa7c:0x149,_0x50b030:0x13e,_0x396c34:0x108,_0x36259c:0x131,_0x47d100:0x11c,_0x548d0b:0xe3},_0x300fcb=_0xf52122;this[_0x300fcb(_0x253836._0x38c11b)][_0x300fcb(0xe3)]({'scope':'driver','method':_0x300fcb(_0x253836._0x26fa7c),'args':[_0x19bbb3]});if(!this[_0x300fcb(0x109)])throw new DriverError(_0x300fcb(_0x253836._0x50b030),{});const _0x2fde21=new FakeContext(this[_0x300fcb(_0x253836._0x396c34)],this[_0x300fcb(_0x253836._0x36259c)],'ctx'+this[_0x300fcb(_0x253836._0x47d100)]['length']);return this[_0x300fcb(0x11c)][_0x300fcb(_0x253836._0x548d0b)](_0x2fde21),_0x2fde21;}async[_0xf52122(0xf9)](){const _0x1d6715={_0x2a989e:0xe3},_0x3c8dd1=_0xf52122;this['recorder'][_0x3c8dd1(_0x1d6715._0x2a989e)]({'scope':_0x3c8dd1(0x145),'method':_0x3c8dd1(0xf9),'args':[]}),this[_0x3c8dd1(0x109)]=![];}[_0xf52122(0x112)](){return void 0x0;}async['connectShared'](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}['attachExisting'](){const _0x7b176f=_0xf52122;throw new DriverError(_0x7b176f(0xfd),{});}[_0xf52122(0x105)](){const _0x459f80={_0xbcb172:0x108},_0x394187=_0xf52122;return this[_0x394187(_0x459f80._0xbcb172)][_0x394187(0x105)]();}['callsFor'](_0x5e938c){const _0x1961eb={_0x4c504f:0xf3},_0x58ebae=_0xf52122;return this[_0x58ebae(0x108)][_0x58ebae(0x105)]()[_0x58ebae(_0x1961eb._0x4c504f)](_0x3ee526=>_0x3ee526[_0x58ebae(0x13b)]===_0x5e938c);}};export{FakeWebDriver};
|
|
1
|
+
const _0x5a369=_0x3aa3;(function(_0x36dbe9,_0x3f8e55){const _0x1e902c={_0x17ee67:0x126,_0xe36d61:0x168,_0x1f1463:0x172,_0x528a48:0x127,_0x426eb5:0x12c,_0x321306:0x140,_0x1026aa:0x122},_0x267bc3=_0x3aa3,_0x56827c=_0x36dbe9();while(!![]){try{const _0x205872=parseInt(_0x267bc3(_0x1e902c._0x17ee67))/0x1+parseInt(_0x267bc3(0x147))/0x2+parseInt(_0x267bc3(0x152))/0x3*(parseInt(_0x267bc3(_0x1e902c._0xe36d61))/0x4)+parseInt(_0x267bc3(0x130))/0x5*(-parseInt(_0x267bc3(0x169))/0x6)+-parseInt(_0x267bc3(_0x1e902c._0x1f1463))/0x7*(parseInt(_0x267bc3(0x109))/0x8)+parseInt(_0x267bc3(_0x1e902c._0x528a48))/0x9*(parseInt(_0x267bc3(_0x1e902c._0x426eb5))/0xa)+parseInt(_0x267bc3(_0x1e902c._0x321306))/0xb*(-parseInt(_0x267bc3(_0x1e902c._0x1026aa))/0xc);if(_0x205872===_0x3f8e55)break;else _0x56827c['push'](_0x56827c['shift']());}catch(_0x506b5a){_0x56827c['push'](_0x56827c['shift']());}}}(_0x48fc,0xe9b62));var __defProp=Object['defineProperty'],__name=(_0x17acf2,_0x42037d)=>__defProp(_0x17acf2,_0x5a369(0x114),{'value':_0x42037d,'configurable':!![]});function subscribe(_0x1cda37,_0xa08015){const _0x1ca022=_0x5a369;return _0x1cda37[_0x1ca022(0x13e)](_0xa08015),()=>{const _0x57c92e=_0x1ca022;_0x1cda37[_0x57c92e(0x131)](_0xa08015);};}__name(subscribe,_0x5a369(0x166));import{UnotestError}from'@unotest/core';function _0x48fc(){const _0x3a09a5=['iJ48l2rPDJ4','DxbSB2fKrMLSzq','zMLSBa','ndLfCvHev2y','y291BNq','zxjYB3jpBK5LEhrby3rPB24','y3r4','y2XPy2S','AxnwAxnPyMXL','z2v0qxr0CMLIDxrL','D2fPDezVCLrLEhq','zw1PDezHA2vqB3b1Ca','C3rLChm','y2XVC2vgywTLugfNzq','BMv0D29YA0vUDhjPzxm','z2v0tg9JywXtDg9YywDL','BgvUz3rO','B25ozxDqywDL','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','Aw5PDgLHBfvYBa','rhjPDMvYrxjYB3i','nti4mZKYrgLYvK9X','D3nfBMrWB2LUDa','Aw5ZCgvJDevSzw1LBNq','Bg9JywXtDg9YywDL','zhjPDMvY','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','yMvOyxzPB3i','C2nYzwvUC2HVDa','yxr0CMLIDxrLC0j5rgvMyxvSDa','zMfRzsb0AxrSzq','C2v0qwn0AxzLugfNzq','BMfTzq','C2v0tg9JywXtDg9YywDL','DgL0Bgu','C2nVCgu','Dgv4DenVBNrLBNrcEurLzMf1Bhq','B3v0zxjive1m','zNjHBwvezxb0Aa','CMvSB2fK','z29cywnR','yxr0ywnOrxHPC3rPBMC','D2fPDezVCG','y2XPCgjVyxjKugfZDgu','ChvZAa','C2nYB2XSsw50B1zPzxC','mtm2mJm3odbUqvDWvxu','y29VA2LLCW','y2XVC2u','Ag92zxi','mtC1mdi3meXTsK9xzG','mtyYmZi3mJrJyxPMzw8','Bgf1BMnO','tg9JyxrVCKvYCM9Y','AxneAxnHyMXLzej5rgvMyxvSDa','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','mtbwBw1gCxm','Bg9JywXtDg9YywDLu3rHDgu','y3vYCMvUDfvYBa','zxzHBhvHDgvpBKXVy2f0B3i','nuPdu093DG','zgvSzxrL','AxnwAxnPyMXLqNLezwzHDwX0','z290BW','y29UDgv4Dhm','Dgv4DenVBNrLBNq','zxzHBhvHDgu','B25bzNrLCKnSAwnR','D2fPDezVCKXVywrtDgf0zq','y291BNrcEurLzMf1Bhq','Aw5UzxjuzxH0qNLezwzHDwX0','z2v0q29VA2LL','ChjLC3m','y2HLy2TLzfn0yxrL','ywrK','zg91yMXLq2XPy2S','mJjqy0jzz1C','pgrPDJ48l2rPDJ4','z29gB3j3yxjK','CMvJB3jK','Cg9WDxbpBKnSAwnR','ywn0AxzLugfNzq','zwXLBwvUDeHPBNrcEvjLzG','mJCZntu2ogL6v2TNEq','C2f2zvn0B3jHz2vtDgf0zq','C3bSAwnL','y29UC29SzuvUDhjPzxm','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zhjHz0fUzerYB3a','D2fPDezVCK5HDMLNyxrPB24','zMfRzs1WBMC','rMfRzvDLyKrYAxzLCG','CgfNzuXPC3q','Aw5WDxrwywX1zuj5rgvMyxvSDa','ntKYnZDxs3rMELe','Aw5UzxjuzxH0','y2HLy2S','y29UBMvJDfnOyxjLza','y29VA2LLu3rHDgu','ywn0AxzLswr4','y2fSBhm','D2fPDezVCLvYBa','AxneAxnHyMXLza','Bgf1BMnOzwq','Dw5JAgvJAW','A2LUza','BMv3ugfNzuXPC3rLBMvYCW','Bwf5yMvuAhjVDW','C2vSzwn0t3b0Aw9U','zNjHBwvtDgfJAW','rMfRzvbHz2u','lNbHz2u','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','zxHPDezYyw1L','C3vIC2nYAwjL','zw50zxjgCMfTzq','mJr6ELr5Ae0','oda5otKZngrnB2HQsq','CMvM','zNjVBq','ywjVDxq6yMXHBMS','CMvJB3jKzxi','BMv3q29UDgv4Da'];_0x48fc=function(){return _0x3a09a5;};return _0x48fc();}function _0x3aa3(_0x61b84d,_0x424f45){_0x61b84d=_0x61b84d-0x107;const _0x48fc90=_0x48fc();let _0x3aa33a=_0x48fc90[_0x61b84d];if(_0x3aa3['nwPpdS']===undefined){var _0x1cba9e=function(_0x37ec17){const _0x7b4db9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17acf2='',_0x42037d='';for(let _0x1cda37=0x0,_0xa08015,_0x57ce4f,_0x39a505=0x0;_0x57ce4f=_0x37ec17['charAt'](_0x39a505++);~_0x57ce4f&&(_0xa08015=_0x1cda37%0x4?_0xa08015*0x40+_0x57ce4f:_0x57ce4f,_0x1cda37++%0x4)?_0x17acf2+=String['fromCharCode'](0xff&_0xa08015>>(-0x2*_0x1cda37&0x6)):0x0){_0x57ce4f=_0x7b4db9['indexOf'](_0x57ce4f);}for(let _0xe0c171=0x0,_0x47e2d4=_0x17acf2['length'];_0xe0c171<_0x47e2d4;_0xe0c171++){_0x42037d+='%'+('00'+_0x17acf2['charCodeAt'](_0xe0c171)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42037d);};_0x3aa3['eYbgwr']=_0x1cba9e,_0x3aa3['JDHFlk']={},_0x3aa3['nwPpdS']=!![];}const _0x3a672c=_0x48fc90[0x0],_0x5fa0ec=_0x61b84d+_0x3a672c,_0x2ce9a8=_0x3aa3['JDHFlk'][_0x5fa0ec];return!_0x2ce9a8?(_0x3aa33a=_0x3aa3['eYbgwr'](_0x3aa33a),_0x3aa3['JDHFlk'][_0x5fa0ec]=_0x3aa33a):_0x3aa33a=_0x2ce9a8,_0x3aa33a;}var DriverError=class extends UnotestError{static{__name(this,_0x5a369(0x108));}},LocatorError=class extends UnotestError{static{__name(this,_0x5a369(0x129));}};function createRecorder(){const _0x52feec=_0x5a369,_0x57ce4f=[];let _0x39a505=0x0;return{'push':__name(_0xe0c171=>_0x57ce4f[_0x52feec(0x120)]({..._0xe0c171,'seq':_0x39a505++}),'push'),'calls':__name(()=>_0x57ce4f,'calls')};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x47e2d4,_0x3d3e42,_0x3597f5,_0x1ca4f2){const _0x11c7cf=_0x5a369;this[_0x11c7cf(0x16d)]=_0x47e2d4,this['behavior']=_0x3d3e42,this[_0x11c7cf(0x117)]=_0x3597f5,this[_0x11c7cf(0x12e)]=_0x1ca4f2;}[_0x5a369(0x16d)];[_0x5a369(0x10f)];['scope'];static{__name(this,_0x5a369(0x162));}[_0x5a369(0x12e)];[_0x5a369(0x137)];[_0x5a369(0x143)](_0x5e89b4,_0x25e13b){const _0x592a5a={_0x3b2510:0x16d},_0x3e36e1=_0x5a369;this[_0x3e36e1(_0x592a5a._0x3b2510)]['push']({'scope':this[_0x3e36e1(0x117)],'method':_0x5e89b4,'args':_0x25e13b});}[_0x5a369(0x15f)](){const _0x7f3eb9={_0x8bf76d:0x174},_0x8b5fff=_0x5a369;if(this[_0x8b5fff(0x10f)]['errorOnNextAction']){const _0x3c2c6c=this[_0x8b5fff(0x10f)]['errorOnNextAction'];this[_0x8b5fff(0x10f)][_0x8b5fff(_0x7f3eb9._0x8bf76d)]=void 0x0;throw _0x3c2c6c;}}['url'](){const _0x2431a8=_0x5a369;return this[_0x2431a8(0x12e)];}async[_0x5a369(0x116)](){const _0x45dd43={_0x81c83a:0x116,_0x49b090:0x112},_0x47727b=_0x5a369;return this['record'](_0x47727b(_0x45dd43._0x81c83a),[]),_0x47727b(_0x45dd43._0x49b090);}async[_0x5a369(0x176)](_0x516679,_0xa2b8f1){const _0x23f0ec={_0x13fdec:0x176,_0x42cb01:0x137},_0x194e18=_0x5a369;this['record'](_0x194e18(_0x23f0ec._0x13fdec),[_0x516679,_0xa2b8f1]),this['maybeThrow'](),this[_0x194e18(_0x23f0ec._0x42cb01)]?.();}async[_0x5a369(0x13f)](_0x2bf403,_0xa3d319){const _0x50523b={_0x4c8592:0x13f},_0x4608a1=_0x5a369;this[_0x4608a1(0x143)](_0x4608a1(_0x50523b._0x4c8592),[_0x2bf403,_0xa3d319]),this['maybeThrow']();}async[_0x5a369(0x171)](_0x45f1bf,_0xd53ae6,_0x5a20f4){const _0x45048b={_0x46010e:0x143},_0x2994e8=_0x5a369;this[_0x2994e8(_0x45048b._0x46010e)](_0x2994e8(0x171),[_0x45f1bf,_0xd53ae6,_0x5a20f4]),this['maybeThrow']();}async[_0x5a369(0x13c)](_0x564094,_0x2235bc,_0x561425){const _0x2c26e5=_0x5a369;this[_0x2c26e5(0x143)]('press',[_0x564094,_0x2235bc,_0x561425]),this['maybeThrow']();}async[_0x5a369(0x154)](_0xebcde4,_0x56a1a5){const _0x1e3bac={_0x58d318:0x154,_0x4e60bd:0x15f},_0x143869=_0x5a369;this['record'](_0x143869(_0x1e3bac._0x58d318),[_0xebcde4,_0x56a1a5]),this[_0x143869(_0x1e3bac._0x4e60bd)]();}async[_0x5a369(0x15c)](_0x26ca2f,_0x583d24){const _0x3f84f8={_0x20205c:0x15f},_0x1a6df3=_0x5a369;this['record']('uncheck',[_0x26ca2f,_0x583d24]),this[_0x1a6df3(_0x3f84f8._0x20205c)]();}async[_0x5a369(0x160)](_0x2bf8de,_0x430b79,_0x3bf106){const _0x169b63={_0x34d5fb:0x143},_0x52baaf=_0x5a369;this[_0x52baaf(_0x169b63._0x34d5fb)](_0x52baaf(0x160),[_0x2bf8de,_0x430b79,_0x3bf106]),this['maybeThrow']();}async[_0x5a369(0x125)](_0x554d14,_0x27fae7){const _0x347b7e=_0x5a369;this[_0x347b7e(0x143)](_0x347b7e(0x125),[_0x554d14,_0x27fae7]),this[_0x347b7e(0x15f)]();}async[_0x5a369(0x121)](_0x4b1543){const _0x352de3={_0x3b0502:0x15f},_0x33d422=_0x5a369;this['record'](_0x33d422(0x121),[_0x4b1543]),this[_0x33d422(_0x352de3._0x3b0502)]();}async[_0x5a369(0x14c)](_0x5efe3d,_0x14ea2f,_0x314a97){const _0x14652d={_0x1b2078:0x15f},_0x4a4b43=_0x5a369;this[_0x4a4b43(0x143)]('dragAndDrop',[_0x5efe3d,_0x14ea2f,_0x314a97]),this[_0x4a4b43(_0x14652d._0x1b2078)]();}async[_0x5a369(0x170)](_0x23995d,_0x40e00d){const _0x560f7f=_0x5a369;this['record'](_0x560f7f(0x170),[_0x23995d,_0x40e00d]),this[_0x560f7f(0x15f)]();}async[_0x5a369(0x11f)](_0x54d5dd,_0xc9729c){const _0x3bdf27={_0x44f060:0x11f},_0x4fcdf2=_0x5a369;this['record'](_0x4fcdf2(_0x3bdf27._0x44f060),[_0x54d5dd,_0xc9729c]),this[_0x4fcdf2(0x15f)]();}async[_0x5a369(0x173)](_0x1d8164){const _0x1d8294={_0x29dd4a:0x139},_0x3c57e3=_0x5a369;return this['record'](_0x3c57e3(0x173),[_0x1d8164]),this[_0x3c57e3(0x10f)][_0x3c57e3(_0x1d8294._0x29dd4a)]??0x1;}async[_0x5a369(0x135)](_0x11a4df){const _0x2cc503={_0x2dd39d:0x135,_0xfa5fc8:0x10f,_0x52cda5:0x118},_0x262681=_0x5a369;return this['record'](_0x262681(_0x2cc503._0x2dd39d),[_0x11a4df]),this[_0x262681(_0x2cc503._0xfa5fc8)][_0x262681(_0x2cc503._0x52cda5)]??'';}async[_0x5a369(0x153)](_0x2bd429){const _0x1bb13e={_0x7a4062:0x10f},_0x299977=_0x5a369;return this[_0x299977(0x143)]('innerText',[_0x2bd429]),this[_0x299977(_0x1bb13e._0x7a4062)][_0x299977(0x13a)]??this['behavior']['textContentByDefault']??'';}async['inputValue'](_0x337824){const _0x5dd9a3=_0x5a369;return this[_0x5dd9a3(0x143)]('inputValue',[_0x337824]),this[_0x5dd9a3(0x10f)][_0x5dd9a3(0x151)]??'';}async[_0x5a369(0x13d)](_0x49f90e){const _0x7aa1e1={_0x1e74c1:0x143},_0xb2246b=_0x5a369;return this[_0xb2246b(_0x7aa1e1._0x1e74c1)](_0xb2246b(0x13d),[_0x49f90e]),this['behavior']['checkedStateByDefault']??null;}async[_0x5a369(0x177)](_0x37b641){const _0x3e01c4={_0x49f071:0x10f,_0x598ec7:0x132},_0x543fe7=_0x5a369;return this[_0x543fe7(0x143)](_0x543fe7(0x177),[_0x37b641]),this[_0x543fe7(_0x3e01c4._0x49f071)][_0x543fe7(_0x3e01c4._0x598ec7)]??!![];}async['isDisabled'](_0x4e8876){const _0xf0a058={_0x5e22a5:0x15a},_0x262d72=_0x5a369;return this['record'](_0x262d72(_0xf0a058._0x5e22a5),[_0x4e8876]),this[_0x262d72(0x10f)][_0x262d72(0x12a)]??![];}async[_0x5a369(0x178)](_0x26c567,_0x5baed4){const _0x101dd5={_0x36cdd9:0x178,_0x1b19dc:0x10f,_0x243415:0x111},_0x3c04d2=_0x5a369;return this[_0x3c04d2(0x143)](_0x3c04d2(_0x101dd5._0x36cdd9),[_0x26c567,_0x5baed4]),this[_0x3c04d2(_0x101dd5._0x1b19dc)][_0x3c04d2(_0x101dd5._0x243415)]?.[_0x5baed4]??null;}async[_0x5a369(0x11e)](_0x358dcf,_0x505a65){const _0x4cfd24={_0x440145:0x11e},_0x9bdc3e=_0x5a369;this[_0x9bdc3e(0x143)](_0x9bdc3e(_0x4cfd24._0x440145),[_0x358dcf,_0x505a65]);}async[_0x5a369(0x159)](_0x271d20,_0x598168){const _0x2e9941=_0x5a369;this[_0x2e9941(0x143)](_0x2e9941(0x159),[_0x271d20,_0x598168]);}async[_0x5a369(0x179)](_0xc63544,_0x2ddcbc){const _0x39253a={_0x11ae61:0x143,_0x5ba372:0x179},_0x565308=_0x5a369;this[_0x565308(_0x39253a._0x11ae61)](_0x565308(_0x39253a._0x5ba372),[_0xc63544,_0x2ddcbc]);}async[_0x5a369(0x14d)](_0x2d1b3e){const _0x4031dd=_0x5a369;this['record'](_0x4031dd(0x14d),[_0x2d1b3e]);}async[_0x5a369(0x138)](_0x1bf247,_0x18d779){const _0x9ae71e=_0x5a369;this[_0x9ae71e(0x143)](_0x9ae71e(0x138),[_0x1bf247,_0x18d779]);}async[_0x5a369(0x133)](_0x4ed72e,_0x589f1c){const _0x27eee3={_0x26c0c0:0x143},_0x58497e=_0x5a369;this[_0x58497e(_0x27eee3._0x26c0c0)]('goto',[_0x4ed72e,_0x589f1c]),this[_0x58497e(0x12e)]=_0x4ed72e;}async['reload'](_0x1c50e8){const _0x5c0c27={_0x2e4ee3:0x11b},_0x586d97=_0x5a369;this[_0x586d97(0x143)](_0x586d97(_0x5c0c27._0x2e4ee3),[_0x1c50e8]);}async['goBack'](_0x372d59){const _0x40a595={_0x3dfa3c:0x143},_0xeffa01=_0x5a369;this[_0xeffa01(_0x40a595._0x3dfa3c)](_0xeffa01(0x11c),[_0x372d59]);}async[_0x5a369(0x142)](_0x25bd92){const _0x44ac22={_0x3a5174:0x143},_0x19daf2=_0x5a369;this[_0x19daf2(_0x44ac22._0x3a5174)](_0x19daf2(0x142),[_0x25bd92]);}async['evaluate'](_0x43b6cc){const _0x492773=_0x5a369;return this[_0x492773(0x143)](_0x492773(0x136),[_0x43b6cc]),void 0x0;}async[_0x5a369(0x12f)](_0x548ace,_0x4c7916){const _0xad5522=_0x5a369;return this[_0xad5522(0x143)]('evaluateOnLocator',[_0x548ace,_0x4c7916]),void 0x0;}async[_0x5a369(0x10b)](_0x341ba9){const _0x4a087d={_0x3449eb:0x17b,_0x472aae:0x16a,_0x30583e:0x146},_0x1dfcef=_0x5a369;this['record'](_0x1dfcef(0x10b),[_0x341ba9]);if(_0x341ba9[_0x1dfcef(_0x4a087d._0x3449eb)][_0x1dfcef(0x17f)]!==0x1||_0x341ba9[_0x1dfcef(0x17b)][0x0]['kind']!==_0x1dfcef(_0x4a087d._0x472aae))return null;const _0x2d4ea7=_0x341ba9[_0x1dfcef(0x17b)][0x0][_0x1dfcef(0x16a)],_0x284e96=this[_0x1dfcef(0x10f)][_0x1dfcef(_0x4a087d._0x30583e)]?.[_0x2d4ea7];return _0x284e96??null;}async[_0x5a369(0x110)](_0x5ae291){const _0x8705b8={_0x6c5713:0x143,_0x7f8d88:0x110},_0x2aa399=_0x5a369;return this[_0x2aa399(_0x8705b8._0x6c5713)](_0x2aa399(_0x8705b8._0x7f8d88),[_0x5ae291]),Buffer[_0x2aa399(0x16b)](_0x2aa399(0x14e));}async['outerHTML'](_0x195b19){const _0x57657={_0x2de6c1:0x17f,_0x25c133:0x17b,_0x4d8adf:0x10f,_0xc69ac6:0x16f,_0x6c5a33:0x141},_0x34cf02=_0x5a369;this[_0x34cf02(0x143)](_0x34cf02(0x119),[_0x195b19]);if(_0x195b19[_0x34cf02(0x17b)][_0x34cf02(_0x57657._0x2de6c1)]===0x1&&_0x195b19[_0x34cf02(0x17b)][0x0][_0x34cf02(0x15d)]==='ref'){const _0x9d7ec3=_0x195b19[_0x34cf02(_0x57657._0x25c133)][0x0]['ref'];return this[_0x34cf02(_0x57657._0x4d8adf)]['outerHtmlByRef']?.[_0x9d7ec3]??_0x34cf02(0x181)+_0x9d7ec3+_0x34cf02(_0x57657._0xc69ac6);}return _0x34cf02(_0x57657._0x6c5a33);}},FakeContext=class{constructor(_0x33c4ea,_0x11832b,_0x376d37){const _0x7df6df={_0x3f223d:0x10f,_0xb329c7:0x117,_0xa93f8a:0x16c,_0x2f2dbf:0x150,_0x1a0bca:0x10c,_0x13a5de:0x123},_0x30cbeb={_0x15d2f1:0x17a},_0x3fe581=_0x5a369;this['recorder']=_0x33c4ea,this[_0x3fe581(_0x7df6df._0x3f223d)]=_0x11832b,this[_0x3fe581(_0x7df6df._0xb329c7)]=_0x376d37;const _0x3acb97=new FakePage(_0x33c4ea,_0x11832b,_0x376d37+'.page0',_0x11832b[_0x3fe581(0x107)]??_0x3fe581(_0x7df6df._0xa93f8a));_0x11832b['popupOnClick']&&(_0x3acb97['onAfterClick']=()=>{const _0x56b7db=_0x3fe581;this[_0x56b7db(_0x30cbeb._0x15d2f1)](_0x11832b[_0x56b7db(0x144)]);}),this[_0x3fe581(_0x7df6df._0x2f2dbf)]=[_0x3acb97],this['localStorageState']={..._0x11832b[_0x3fe581(_0x7df6df._0x1a0bca)]??{}},this['cookieState']={..._0x11832b[_0x3fe581(_0x7df6df._0x13a5de)]??{}};}[_0x5a369(0x16d)];['behavior'];['scope'];static{__name(this,'FakeContext');}[_0x5a369(0x150)];[_0x5a369(0x157)]=0x0;[_0x5a369(0x161)]=[];[_0x5a369(0x12d)];[_0x5a369(0x156)];[_0x5a369(0x15e)]=new Set();['record'](_0x5e7215,_0x40ab23){const _0x3f2d7b={_0x2612ec:0x120},_0x2f3f58=_0x5a369;this['recorder'][_0x2f3f58(_0x3f2d7b._0x2612ec)]({'scope':this['scope'],'method':_0x5e7215,'args':_0x40ab23});}['pages'](){const _0x2f0a58={_0x233be5:0x150},_0x5c68af=_0x5a369;return this[_0x5c68af(_0x2f0a58._0x233be5)];}[_0x5a369(0x145)](){const _0x20f76c=_0x5a369,_0x2a8aca=this[_0x20f76c(0x150)][this['activeIdx']];if(!_0x2a8aca)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this['activeIdx']});return _0x2a8aca;}[_0x5a369(0x14a)](){const _0x3debd3={_0x12aa1d:0x14a},_0x3fa175=_0x5a369;return this['behavior'][_0x3fa175(_0x3debd3._0x12aa1d)]??[];}[_0x5a369(0x17d)](){const _0x13b6d5={_0x992d60:0x10f,_0x28da61:0x17d},_0x4a8ccd=_0x5a369;return this[_0x4a8ccd(_0x13b6d5._0x992d60)][_0x4a8ccd(_0x13b6d5._0x28da61)]??[];}async[_0x5a369(0x113)](_0x4173fd){const _0x1f243d={_0x43c15c:0x143,_0x39df75:0x164,_0x50cc0c:0x157},_0x11f1f6=_0x5a369;this[_0x11f1f6(_0x1f243d._0x43c15c)](_0x11f1f6(0x113),[_0x4173fd]);if(_0x4173fd<0x0||_0x4173fd>=this[_0x11f1f6(0x150)]['length'])throw new DriverError(_0x11f1f6(_0x1f243d._0x39df75),{'index':_0x4173fd,'available':this[_0x11f1f6(0x150)]['length']});this[_0x11f1f6(_0x1f243d._0x50cc0c)]=_0x4173fd,this[_0x11f1f6(0x161)]['length']=0x0;}[_0x5a369(0x180)](_0x33fc58){const _0x416d01=_0x5a369;return subscribe(this[_0x416d01(0x15e)],_0x33fc58);}['emitFakePopup'](_0x4c3e82){const _0x1b676f={_0x435c7a:0x117,_0x27716b:0x163,_0x2cec86:0x17f,_0x424355:0x150,_0x30e489:0x120,_0x6de9a3:0x15e},_0x48532c=_0x5a369,_0x234582=this[_0x48532c(_0x1b676f._0x435c7a)]+_0x48532c(_0x1b676f._0x27716b)+this['pageList'][_0x48532c(_0x1b676f._0x2cec86)],_0x757945=new FakePage(this[_0x48532c(0x16d)],this[_0x48532c(0x10f)],_0x234582,_0x4c3e82);this[_0x48532c(_0x1b676f._0x424355)][_0x48532c(_0x1b676f._0x30e489)](_0x757945);const _0x2c1a8e=this[_0x48532c(0x150)][_0x48532c(_0x1b676f._0x2cec86)]-0x1;for(const _0xb30b03 of this[_0x48532c(_0x1b676f._0x6de9a3)]){try{_0xb30b03({'index':_0x2c1a8e,'url':_0x4c3e82});}catch{}}return _0x2c1a8e;}[_0x5a369(0x17c)](_0x8c8ffc){const _0x67a09f={_0x14e5f7:0x17f,_0x2c6444:0x149},_0x2affdb=_0x5a369;if(_0x8c8ffc<0x0||_0x8c8ffc>=this[_0x2affdb(0x150)][_0x2affdb(_0x67a09f._0x14e5f7)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x8c8ffc,'available':this['pageList']['length']});this[_0x2affdb(0x150)][_0x2affdb(_0x67a09f._0x2c6444)](_0x8c8ffc,0x1);}async[_0x5a369(0x167)](_0x5e5287){const _0x40a702={_0x39962d:0x10e},_0x15f7f7=_0x5a369;this[_0x15f7f7(0x143)](_0x15f7f7(0x167),[_0x5e5287]);if(!_0x5e5287[_0x15f7f7(0x17b)][_0x15f7f7(0x17f)])throw new LocatorError(_0x15f7f7(_0x40a702._0x39962d),{'locator':_0x5e5287});this['frameStack']['push'](_0x5e5287);}async[_0x5a369(0x165)](){const _0x4fb9f8={_0x40a7a3:0x143,_0x338a2c:0x161,_0x2c9352:0x17f},_0x677d6b=_0x5a369;this[_0x677d6b(_0x4fb9f8._0x40a7a3)](_0x677d6b(0x165),[]);if(this[_0x677d6b(_0x4fb9f8._0x338a2c)][_0x677d6b(_0x4fb9f8._0x2c9352)]===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x677d6b(_0x4fb9f8._0x338a2c)]['pop']();}async['setLocalStorage'](_0x46a76d,_0x2de9b4){const _0x10b9be={_0x411eb3:0x143,_0x1ec3fe:0x12d},_0x505995=_0x5a369;this[_0x505995(_0x10b9be._0x411eb3)](_0x505995(0x115),[_0x46a76d,_0x2de9b4]),this[_0x505995(_0x10b9be._0x1ec3fe)][_0x46a76d]=_0x2de9b4;}async[_0x5a369(0x17e)](_0x4e455f){const _0x35bde2={_0x40b5fe:0x12d},_0x25a145=_0x5a369;return this[_0x25a145(0x143)](_0x25a145(0x17e),[_0x4e455f]),this[_0x25a145(_0x35bde2._0x40b5fe)][_0x4e455f]??null;}async['setCookie'](_0x3559ff,_0x1e7baa,_0x2f7ab3){const _0x508f84=_0x5a369;this[_0x508f84(0x143)]('setCookie',[_0x3559ff,_0x1e7baa,_0x2f7ab3]),this['cookieState'][_0x3559ff]=_0x1e7baa;}async[_0x5a369(0x13b)](_0x404262){const _0x33d899=_0x5a369;return this[_0x33d899(0x143)]('getCookie',[_0x404262]),this['cookieState'][_0x404262]??null;}async[_0x5a369(0x148)](_0x23049a){const _0x252b7a={_0x1bd851:0x143},_0x2bcdb5=_0x5a369;this[_0x2bcdb5(_0x252b7a._0x1bd851)]('saveStorageState',[_0x23049a]);}async[_0x5a369(0x136)](_0x2a3bb3){const _0x1fe91f={_0x3ff783:0x143,_0x291b8d:0x136},_0x4e3169=_0x5a369;return this[_0x4e3169(_0x1fe91f._0x3ff783)](_0x4e3169(_0x1fe91f._0x291b8d),[_0x2a3bb3]),void 0x0;}async[_0x5a369(0x124)](){const _0x4a2cc7={_0x1002ee:0x124},_0x5f3024=_0x5a369;this[_0x5f3024(0x143)](_0x5f3024(_0x4a2cc7._0x1002ee),[]);}[_0x5a369(0x11a)](){const _0x3c88d2={_0x2ebd46:0x161,_0x3beb99:0x17f},_0x1dbfc1=_0x5a369;return this[_0x1dbfc1(_0x3c88d2._0x2ebd46)][_0x1dbfc1(_0x3c88d2._0x3beb99)];}},FakeWebDriver=class{constructor(_0x1565d2={}){const _0x44d7a5={_0xb830b:0x10f,_0x178af4:0x16d},_0x3f3772=_0x5a369;this[_0x3f3772(_0x44d7a5._0xb830b)]=_0x1565d2,this[_0x3f3772(_0x44d7a5._0x178af4)]=createRecorder();}[_0x5a369(0x10f)];static{__name(this,_0x5a369(0x14f));}['launched']=![];[_0x5a369(0x16d)];[_0x5a369(0x134)]=[];async[_0x5a369(0x128)](_0x6b7a79){const _0x2260f3={_0xc2aafe:0x10d},_0x106e74=_0x5a369;this[_0x106e74(0x16d)]['push']({'scope':_0x106e74(_0x2260f3._0xc2aafe),'method':'launch','args':[_0x6b7a79]}),this['launched']=!![];}async[_0x5a369(0x16e)](_0x588916){const _0x1219b5={_0x5d07f8:0x10f,_0x1fa957:0x134,_0x48cbcf:0x120},_0x5c1472=_0x5a369;this[_0x5c1472(0x16d)][_0x5c1472(0x120)]({'scope':_0x5c1472(0x10d),'method':'newContext','args':[_0x588916]});if(!this['launched'])throw new DriverError(_0x5c1472(0x14b),{});const _0x494835=new FakeContext(this[_0x5c1472(0x16d)],this[_0x5c1472(_0x1219b5._0x5d07f8)],_0x5c1472(0x175)+this[_0x5c1472(_0x1219b5._0x1fa957)][_0x5c1472(0x17f)]);return this['contexts'][_0x5c1472(_0x1219b5._0x48cbcf)](_0x494835),_0x494835;}async[_0x5a369(0x124)](){const _0x3336f4={_0x331124:0x16d,_0x3aef86:0x10d,_0x4f119d:0x124,_0x584520:0x15b},_0x2e5cac=_0x5a369;this[_0x2e5cac(_0x3336f4._0x331124)][_0x2e5cac(0x120)]({'scope':_0x2e5cac(_0x3336f4._0x3aef86),'method':_0x2e5cac(_0x3336f4._0x4f119d),'args':[]}),this[_0x2e5cac(_0x3336f4._0x584520)]=![];}[_0x5a369(0x10a)](){return void 0x0;}async[_0x5a369(0x155)](){const _0x4fc479=_0x5a369;throw new DriverError(_0x4fc479(0x12b),{});}[_0x5a369(0x11d)](){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x5a369(0x158)](){const _0xa49c69={_0xcb4bc4:0x16d,_0x14b7f0:0x158},_0x34c64a=_0x5a369;return this[_0x34c64a(_0xa49c69._0xcb4bc4)][_0x34c64a(_0xa49c69._0x14b7f0)]();}['callsFor'](_0x2ac3fe){const _0x1033e4={_0x50844c:0x16d},_0x2d8347=_0x5a369;return this[_0x2d8347(_0x1033e4._0x50844c)][_0x2d8347(0x158)]()['filter'](_0x46b0dd=>_0x46b0dd['method']===_0x2ac3fe);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -322,7 +322,6 @@ declare class TestRuntimeManager {
|
|
|
322
322
|
private requireActive;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
/** Build a fully-populated FunctionRegistry. */
|
|
326
325
|
declare function buildDefaultRegistry(): FunctionRegistry;
|
|
327
326
|
|
|
328
327
|
export { AstExecutor, type DslArg, type DslArray, type DslFunction, type DslObject, type DslValue, FunctionRegistry, LocatorValue, TestRuntime, TestRuntimeManager, buildDefaultRegistry, chainGetByAltText, chainGetByLabel, chainGetByPlaceholder, chainGetByRole, chainGetByTestId, chainGetByText, chainGetByTitle, contentFrame, filter, first, getByAltText, getByLabel, getByPlaceholder, getByRole, getByTestId, getByText, getByTitle, last, locator, nth, randomNth, re };
|