@bctrl/sdk 1.0.1 → 1.0.3
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/README.md +28 -29
- package/dist/bctrl.d.ts +22 -36
- package/dist/bctrl.js +40 -75
- package/dist/errors.d.ts +49 -43
- package/dist/errors.js +83 -120
- package/dist/files.d.ts +31 -0
- package/dist/files.js +97 -0
- package/dist/http.d.ts +18 -0
- package/dist/http.js +135 -0
- package/dist/index.d.ts +9 -12
- package/dist/index.js +7 -23
- package/dist/invocations.d.ts +86 -0
- package/dist/invocations.js +159 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +13 -0
- package/dist/runs.d.ts +40 -0
- package/dist/runs.js +105 -0
- package/dist/runtimes.d.ts +69 -0
- package/dist/runtimes.js +202 -0
- package/dist/spaces.d.ts +40 -0
- package/dist/spaces.js +96 -0
- package/dist/types.d.ts +413 -0
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +27 -0
- package/dist/version.js +2 -2
- package/package.json +4 -21
- package/dist/agents/browser-use/index.d.ts +0 -1
- package/dist/agents/browser-use/index.js +0 -9
- package/dist/agents/browser-use/namespace.d.ts +0 -39
- package/dist/agents/browser-use/namespace.js +0 -93
- package/dist/agents/index.d.ts +0 -2
- package/dist/agents/index.js +0 -17
- package/dist/agents/stagehand/core.d.ts +0 -93
- package/dist/agents/stagehand/core.js +0 -144
- package/dist/agents/stagehand/index.d.ts +0 -3
- package/dist/agents/stagehand/index.js +0 -24
- package/dist/agents/stagehand/namespace.d.ts +0 -51
- package/dist/agents/stagehand/namespace.js +0 -65
- package/dist/ai-credentials/client.d.ts +0 -12
- package/dist/ai-credentials/client.js +0 -70
- package/dist/ai-credentials/index.d.ts +0 -1
- package/dist/ai-credentials/index.js +0 -1
- package/dist/base/event-binding.d.ts +0 -7
- package/dist/base/event-binding.js +0 -23
- package/dist/base/types.d.ts +0 -109
- package/dist/base/types.js +0 -4
- package/dist/browser-extensions/client.d.ts +0 -15
- package/dist/browser-extensions/client.js +0 -72
- package/dist/browser-extensions/index.d.ts +0 -2
- package/dist/browser-extensions/index.js +0 -1
- package/dist/browser-profiles/client.d.ts +0 -11
- package/dist/browser-profiles/client.js +0 -63
- package/dist/browser-profiles/index.d.ts +0 -1
- package/dist/browser-profiles/index.js +0 -1
- package/dist/captcha/index.d.ts +0 -1
- package/dist/captcha/index.js +0 -1
- package/dist/captcha/namespace.d.ts +0 -34
- package/dist/captcha/namespace.js +0 -41
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +0 -1
- package/dist/client/rpc.d.ts +0 -83
- package/dist/client/rpc.js +0 -354
- package/dist/config.d.ts +0 -5
- package/dist/config.js +0 -28
- package/dist/constants/browser.d.ts +0 -2
- package/dist/constants/browser.js +0 -1
- package/dist/contracts/agent-tools.d.ts +0 -45
- package/dist/contracts/agent-tools.js +0 -31
- package/dist/contracts/automation.d.ts +0 -265
- package/dist/contracts/automation.js +0 -109
- package/dist/contracts/browser-management.d.ts +0 -179
- package/dist/contracts/browser-management.js +0 -95
- package/dist/contracts/browser-use.d.ts +0 -136
- package/dist/contracts/browser-use.js +0 -93
- package/dist/contracts/captcha.d.ts +0 -114
- package/dist/contracts/captcha.js +0 -40
- package/dist/contracts/desktop.d.ts +0 -223
- package/dist/contracts/desktop.js +0 -121
- package/dist/contracts/drivers/playwright.d.ts +0 -2008
- package/dist/contracts/drivers/playwright.js +0 -2033
- package/dist/contracts/drivers/puppeteer.d.ts +0 -1221
- package/dist/contracts/drivers/puppeteer.js +0 -941
- package/dist/contracts/drivers/selenium.d.ts +0 -156
- package/dist/contracts/drivers/selenium.js +0 -61
- package/dist/contracts/drivers/stagehand.d.ts +0 -155
- package/dist/contracts/drivers/stagehand.js +0 -7
- package/dist/contracts/extensions.d.ts +0 -13
- package/dist/contracts/extensions.js +0 -9
- package/dist/contracts/index.d.ts +0 -13
- package/dist/contracts/index.js +0 -13
- package/dist/contracts/public-api.d.ts +0 -360
- package/dist/contracts/public-api.js +0 -17
- package/dist/contracts/runtime.d.ts +0 -81
- package/dist/contracts/runtime.js +0 -16
- package/dist/contracts/stagehand.d.ts +0 -253
- package/dist/contracts/stagehand.js +0 -145
- package/dist/contracts/storage.d.ts +0 -51
- package/dist/contracts/storage.js +0 -56
- package/dist/contracts/vault.d.ts +0 -119
- package/dist/contracts/vault.js +0 -112
- package/dist/contracts/version.d.ts +0 -3
- package/dist/contracts/version.js +0 -16
- package/dist/desktop.d.ts +0 -2
- package/dist/desktop.js +0 -3
- package/dist/drivers/desktop/index.d.ts +0 -65
- package/dist/drivers/desktop/index.js +0 -68
- package/dist/drivers/desktop/session.d.ts +0 -313
- package/dist/drivers/desktop/session.js +0 -432
- package/dist/drivers/playwright/event-emitter.d.ts +0 -160
- package/dist/drivers/playwright/event-emitter.js +0 -297
- package/dist/drivers/playwright/generated/api-request-context.d.ts +0 -137
- package/dist/drivers/playwright/generated/api-request-context.js +0 -154
- package/dist/drivers/playwright/generated/api-response.d.ts +0 -119
- package/dist/drivers/playwright/generated/api-response.js +0 -123
- package/dist/drivers/playwright/generated/browser-context.d.ts +0 -284
- package/dist/drivers/playwright/generated/browser-context.js +0 -458
- package/dist/drivers/playwright/generated/browser.d.ts +0 -120
- package/dist/drivers/playwright/generated/browser.js +0 -151
- package/dist/drivers/playwright/generated/clock.d.ts +0 -80
- package/dist/drivers/playwright/generated/clock.js +0 -94
- package/dist/drivers/playwright/generated/console-message.d.ts +0 -94
- package/dist/drivers/playwright/generated/console-message.js +0 -89
- package/dist/drivers/playwright/generated/coverage.d.ts +0 -57
- package/dist/drivers/playwright/generated/coverage.js +0 -66
- package/dist/drivers/playwright/generated/dialog.d.ts +0 -79
- package/dist/drivers/playwright/generated/dialog.js +0 -80
- package/dist/drivers/playwright/generated/element-handle.d.ts +0 -399
- package/dist/drivers/playwright/generated/element-handle.js +0 -501
- package/dist/drivers/playwright/generated/frame-locator.d.ts +0 -34
- package/dist/drivers/playwright/generated/frame-locator.js +0 -63
- package/dist/drivers/playwright/generated/frame.d.ts +0 -557
- package/dist/drivers/playwright/generated/frame.js +0 -634
- package/dist/drivers/playwright/generated/js-handle.d.ts +0 -72
- package/dist/drivers/playwright/generated/js-handle.js +0 -92
- package/dist/drivers/playwright/generated/keyboard.d.ts +0 -103
- package/dist/drivers/playwright/generated/keyboard.js +0 -113
- package/dist/drivers/playwright/generated/locator.d.ts +0 -795
- package/dist/drivers/playwright/generated/locator.js +0 -974
- package/dist/drivers/playwright/generated/mouse.d.ts +0 -97
- package/dist/drivers/playwright/generated/mouse.js +0 -109
- package/dist/drivers/playwright/generated/page.d.ts +0 -762
- package/dist/drivers/playwright/generated/page.js +0 -988
- package/dist/drivers/playwright/generated/touchscreen.d.ts +0 -34
- package/dist/drivers/playwright/generated/touchscreen.js +0 -37
- package/dist/drivers/playwright/generated/tracing.d.ts +0 -78
- package/dist/drivers/playwright/generated/tracing.js +0 -80
- package/dist/drivers/playwright/generated/worker.d.ts +0 -53
- package/dist/drivers/playwright/generated/worker.js +0 -59
- package/dist/drivers/playwright/index.d.ts +0 -19
- package/dist/drivers/playwright/index.js +0 -20
- package/dist/drivers/playwright/remote-base.d.ts +0 -62
- package/dist/drivers/playwright/remote-base.js +0 -86
- package/dist/drivers/playwright/types.d.ts +0 -148
- package/dist/drivers/playwright/types.js +0 -8
- package/dist/drivers/puppeteer/errors.d.ts +0 -50
- package/dist/drivers/puppeteer/errors.js +0 -71
- package/dist/drivers/puppeteer/event-emitter.d.ts +0 -145
- package/dist/drivers/puppeteer/event-emitter.js +0 -259
- package/dist/drivers/puppeteer/generated/accessibility.d.ts +0 -77
- package/dist/drivers/puppeteer/generated/accessibility.js +0 -74
- package/dist/drivers/puppeteer/generated/browser-context.d.ts +0 -116
- package/dist/drivers/puppeteer/generated/browser-context.js +0 -168
- package/dist/drivers/puppeteer/generated/browser.d.ts +0 -169
- package/dist/drivers/puppeteer/generated/browser.js +0 -246
- package/dist/drivers/puppeteer/generated/console-message.d.ts +0 -54
- package/dist/drivers/puppeteer/generated/console-message.js +0 -69
- package/dist/drivers/puppeteer/generated/coverage.d.ts +0 -49
- package/dist/drivers/puppeteer/generated/coverage.js +0 -57
- package/dist/drivers/puppeteer/generated/dialog.d.ts +0 -46
- package/dist/drivers/puppeteer/generated/dialog.js +0 -60
- package/dist/drivers/puppeteer/generated/element-handle.d.ts +0 -261
- package/dist/drivers/puppeteer/generated/element-handle.js +0 -341
- package/dist/drivers/puppeteer/generated/file-chooser.d.ts +0 -34
- package/dist/drivers/puppeteer/generated/file-chooser.js +0 -43
- package/dist/drivers/puppeteer/generated/frame.d.ts +0 -221
- package/dist/drivers/puppeteer/generated/frame.js +0 -302
- package/dist/drivers/puppeteer/generated/http-request.d.ts +0 -195
- package/dist/drivers/puppeteer/generated/http-request.js +0 -243
- package/dist/drivers/puppeteer/generated/http-response.d.ts +0 -142
- package/dist/drivers/puppeteer/generated/http-response.js +0 -169
- package/dist/drivers/puppeteer/generated/js-handle.d.ts +0 -104
- package/dist/drivers/puppeteer/generated/js-handle.js +0 -125
- package/dist/drivers/puppeteer/generated/keyboard.d.ts +0 -79
- package/dist/drivers/puppeteer/generated/keyboard.js +0 -89
- package/dist/drivers/puppeteer/generated/locator.d.ts +0 -141
- package/dist/drivers/puppeteer/generated/locator.js +0 -164
- package/dist/drivers/puppeteer/generated/mouse.d.ts +0 -74
- package/dist/drivers/puppeteer/generated/mouse.js +0 -94
- package/dist/drivers/puppeteer/generated/page.d.ts +0 -604
- package/dist/drivers/puppeteer/generated/page.js +0 -776
- package/dist/drivers/puppeteer/generated/target.d.ts +0 -105
- package/dist/drivers/puppeteer/generated/target.js +0 -123
- package/dist/drivers/puppeteer/generated/touchscreen.d.ts +0 -87
- package/dist/drivers/puppeteer/generated/touchscreen.js +0 -103
- package/dist/drivers/puppeteer/generated/tracing.d.ts +0 -38
- package/dist/drivers/puppeteer/generated/tracing.js +0 -43
- package/dist/drivers/puppeteer/generated/web-worker.d.ts +0 -63
- package/dist/drivers/puppeteer/generated/web-worker.js +0 -73
- package/dist/drivers/puppeteer/index.d.ts +0 -21
- package/dist/drivers/puppeteer/index.js +0 -23
- package/dist/drivers/puppeteer/remote-base.d.ts +0 -57
- package/dist/drivers/puppeteer/remote-base.js +0 -79
- package/dist/drivers/puppeteer/types.d.ts +0 -178
- package/dist/drivers/puppeteer/types.js +0 -8
- package/dist/drivers/selenium/driver.d.ts +0 -28
- package/dist/drivers/selenium/driver.js +0 -169
- package/dist/drivers/selenium/element.d.ts +0 -34
- package/dist/drivers/selenium/element.js +0 -73
- package/dist/drivers/selenium/index.d.ts +0 -3
- package/dist/drivers/selenium/index.js +0 -5
- package/dist/drivers/selenium/types.d.ts +0 -2
- package/dist/drivers/selenium/types.js +0 -12
- package/dist/drivers/stagehand/generated/context.d.ts +0 -127
- package/dist/drivers/stagehand/generated/context.js +0 -153
- package/dist/drivers/stagehand/generated/locator.d.ts +0 -324
- package/dist/drivers/stagehand/generated/locator.js +0 -368
- package/dist/drivers/stagehand/generated/page.d.ts +0 -377
- package/dist/drivers/stagehand/generated/page.js +0 -439
- package/dist/drivers/stagehand/generated/response.d.ts +0 -197
- package/dist/drivers/stagehand/generated/response.js +0 -232
- package/dist/drivers/stagehand/index.d.ts +0 -5
- package/dist/drivers/stagehand/index.js +0 -8
- package/dist/drivers/stagehand/types.d.ts +0 -1
- package/dist/drivers/stagehand/types.js +0 -7
- package/dist/extensions/client.d.ts +0 -47
- package/dist/extensions/client.js +0 -154
- package/dist/extensions/index.d.ts +0 -1
- package/dist/extensions/index.js +0 -1
- package/dist/internal/dev-client.d.ts +0 -5
- package/dist/internal/dev-client.js +0 -9
- package/dist/internal/rpc-targets.d.ts +0 -17
- package/dist/internal/rpc-targets.js +0 -58
- package/dist/internal/serialization.d.ts +0 -32
- package/dist/internal/serialization.js +0 -42
- package/dist/internal/transport.d.ts +0 -24
- package/dist/internal/transport.js +0 -29
- package/dist/playwright.d.ts +0 -1
- package/dist/playwright.js +0 -2
- package/dist/puppeteer.d.ts +0 -1
- package/dist/puppeteer.js +0 -2
- package/dist/selenium.d.ts +0 -1
- package/dist/selenium.js +0 -2
- package/dist/stagehand.d.ts +0 -1
- package/dist/stagehand.js +0 -2
- package/dist/storage/client.d.ts +0 -151
- package/dist/storage/client.js +0 -329
- package/dist/storage/index.d.ts +0 -2
- package/dist/storage/index.js +0 -4
- package/dist/telemetry.d.ts +0 -18
- package/dist/telemetry.js +0 -93
- package/dist/updates/client.d.ts +0 -8
- package/dist/updates/client.js +0 -128
- package/dist/updates/index.d.ts +0 -1
- package/dist/updates/index.js +0 -1
- package/dist/utils/http.d.ts +0 -39
- package/dist/utils/http.js +0 -88
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.js +0 -4
- package/dist/utils/logger.d.ts +0 -27
- package/dist/utils/logger.js +0 -74
- package/dist/utils/schema.d.ts +0 -17
- package/dist/utils/schema.js +0 -31
- package/dist/utils/url.d.ts +0 -5
- package/dist/utils/url.js +0 -7
- package/dist/vault/client.d.ts +0 -43
- package/dist/vault/client.js +0 -123
- package/dist/vault/index.d.ts +0 -1
- package/dist/vault/index.js +0 -1
- package/dist/workspaces/browser-runtime.d.ts +0 -251
- package/dist/workspaces/browser-runtime.js +0 -1025
- package/dist/workspaces/client.d.ts +0 -48
- package/dist/workspaces/client.js +0 -222
- package/dist/workspaces/index.d.ts +0 -2
- package/dist/workspaces/index.js +0 -2
- package/dist/workspaces/runtime-event-pump.d.ts +0 -65
- package/dist/workspaces/runtime-event-pump.js +0 -716
|
@@ -1,2008 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
3
|
-
*
|
|
4
|
-
* Generated from: packages/automation-spec/src/drivers/playwright/options.ts
|
|
5
|
-
* Run `pnpm generate:sdk-contracts` to regenerate.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Playwright-specific option schemas
|
|
9
|
-
*
|
|
10
|
-
* These match the real Playwright API 1:1.
|
|
11
|
-
* @see https://playwright.dev/docs/api/class-page
|
|
12
|
-
* @see https://playwright.dev/docs/api/class-locator
|
|
13
|
-
* @see https://playwright.dev/docs/api/class-frame
|
|
14
|
-
*/
|
|
15
|
-
import { z } from 'zod';
|
|
16
|
-
/**
|
|
17
|
-
* WaitUntil values for navigation methods
|
|
18
|
-
* @see https://playwright.dev/docs/api/class-page#page-goto
|
|
19
|
-
*/
|
|
20
|
-
export declare const PlaywrightWaitUntilSchema: z.ZodEnum<{
|
|
21
|
-
load: "load";
|
|
22
|
-
domcontentloaded: "domcontentloaded";
|
|
23
|
-
networkidle: "networkidle";
|
|
24
|
-
commit: "commit";
|
|
25
|
-
}>;
|
|
26
|
-
export type PlaywrightWaitUntil = z.infer<typeof PlaywrightWaitUntilSchema>;
|
|
27
|
-
/**
|
|
28
|
-
* State values for waitForSelector
|
|
29
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-selector
|
|
30
|
-
*/
|
|
31
|
-
export declare const PlaywrightWaitForSelectorStateSchema: z.ZodEnum<{
|
|
32
|
-
attached: "attached";
|
|
33
|
-
detached: "detached";
|
|
34
|
-
visible: "visible";
|
|
35
|
-
hidden: "hidden";
|
|
36
|
-
}>;
|
|
37
|
-
export type PlaywrightWaitForSelectorState = z.infer<typeof PlaywrightWaitForSelectorStateSchema>;
|
|
38
|
-
/**
|
|
39
|
-
* Mouse button options
|
|
40
|
-
* @see https://playwright.dev/docs/api/class-mouse#mouse-click
|
|
41
|
-
*/
|
|
42
|
-
export declare const PlaywrightMouseButtonSchema: z.ZodEnum<{
|
|
43
|
-
left: "left";
|
|
44
|
-
right: "right";
|
|
45
|
-
middle: "middle";
|
|
46
|
-
}>;
|
|
47
|
-
export type PlaywrightMouseButton = z.infer<typeof PlaywrightMouseButtonSchema>;
|
|
48
|
-
/**
|
|
49
|
-
* Keyboard modifier keys
|
|
50
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-click
|
|
51
|
-
*/
|
|
52
|
-
export declare const PlaywrightKeyboardModifierSchema: z.ZodEnum<{
|
|
53
|
-
Alt: "Alt";
|
|
54
|
-
Control: "Control";
|
|
55
|
-
ControlOrMeta: "ControlOrMeta";
|
|
56
|
-
Meta: "Meta";
|
|
57
|
-
Shift: "Shift";
|
|
58
|
-
}>;
|
|
59
|
-
export type PlaywrightKeyboardModifier = z.infer<typeof PlaywrightKeyboardModifierSchema>;
|
|
60
|
-
export declare const PlaywrightModifiersSchema: z.ZodArray<z.ZodEnum<{
|
|
61
|
-
Alt: "Alt";
|
|
62
|
-
Control: "Control";
|
|
63
|
-
ControlOrMeta: "ControlOrMeta";
|
|
64
|
-
Meta: "Meta";
|
|
65
|
-
Shift: "Shift";
|
|
66
|
-
}>>;
|
|
67
|
-
export type PlaywrightModifiers = z.infer<typeof PlaywrightModifiersSchema>;
|
|
68
|
-
/**
|
|
69
|
-
* Position relative to element's padding box
|
|
70
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-click
|
|
71
|
-
*/
|
|
72
|
-
export declare const PlaywrightPositionSchema: z.ZodObject<{
|
|
73
|
-
x: z.ZodNumber;
|
|
74
|
-
y: z.ZodNumber;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
export type PlaywrightPosition = z.infer<typeof PlaywrightPositionSchema>;
|
|
77
|
-
/**
|
|
78
|
-
* Viewport dimensions for page.setViewportSize()
|
|
79
|
-
* @see https://playwright.dev/docs/api/class-page#page-set-viewport-size
|
|
80
|
-
*/
|
|
81
|
-
export declare const PlaywrightViewportSchema: z.ZodObject<{
|
|
82
|
-
width: z.ZodNumber;
|
|
83
|
-
height: z.ZodNumber;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
export type PlaywrightViewport = z.infer<typeof PlaywrightViewportSchema>;
|
|
86
|
-
/**
|
|
87
|
-
* Extended viewport options for browser context
|
|
88
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
89
|
-
*/
|
|
90
|
-
export declare const PlaywrightViewportOptionsSchema: z.ZodObject<{
|
|
91
|
-
width: z.ZodNumber;
|
|
92
|
-
height: z.ZodNumber;
|
|
93
|
-
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
94
|
-
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
export type PlaywrightViewportOptions = z.infer<typeof PlaywrightViewportOptionsSchema>;
|
|
98
|
-
/**
|
|
99
|
-
* Options for click() method
|
|
100
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-click
|
|
101
|
-
* @see https://playwright.dev/docs/api/class-page#page-click
|
|
102
|
-
*/
|
|
103
|
-
export declare const PlaywrightClickOptionsSchema: z.ZodObject<{
|
|
104
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
left: "left";
|
|
106
|
-
right: "right";
|
|
107
|
-
middle: "middle";
|
|
108
|
-
}>>;
|
|
109
|
-
clickCount: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
113
|
-
Alt: "Alt";
|
|
114
|
-
Control: "Control";
|
|
115
|
-
ControlOrMeta: "ControlOrMeta";
|
|
116
|
-
Meta: "Meta";
|
|
117
|
-
Shift: "Shift";
|
|
118
|
-
}>>>;
|
|
119
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
x: z.ZodNumber;
|
|
122
|
-
y: z.ZodNumber;
|
|
123
|
-
}, z.core.$strip>>;
|
|
124
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
125
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
export type PlaywrightClickOptions = z.infer<typeof PlaywrightClickOptionsSchema>;
|
|
128
|
-
/**
|
|
129
|
-
* Options for dblclick() method
|
|
130
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-dblclick
|
|
131
|
-
*/
|
|
132
|
-
export declare const PlaywrightDblclickOptionsSchema: z.ZodObject<{
|
|
133
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
134
|
-
left: "left";
|
|
135
|
-
right: "right";
|
|
136
|
-
middle: "middle";
|
|
137
|
-
}>>;
|
|
138
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
141
|
-
Alt: "Alt";
|
|
142
|
-
Control: "Control";
|
|
143
|
-
ControlOrMeta: "ControlOrMeta";
|
|
144
|
-
Meta: "Meta";
|
|
145
|
-
Shift: "Shift";
|
|
146
|
-
}>>>;
|
|
147
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
149
|
-
x: z.ZodNumber;
|
|
150
|
-
y: z.ZodNumber;
|
|
151
|
-
}, z.core.$strip>>;
|
|
152
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
153
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
-
}, z.core.$strip>;
|
|
155
|
-
export type PlaywrightDblclickOptions = z.infer<typeof PlaywrightDblclickOptionsSchema>;
|
|
156
|
-
/**
|
|
157
|
-
* Options for fill() method
|
|
158
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-fill
|
|
159
|
-
*/
|
|
160
|
-
export declare const PlaywrightFillOptionsSchema: z.ZodObject<{
|
|
161
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
}, z.core.$strip>;
|
|
165
|
-
export type PlaywrightFillOptions = z.infer<typeof PlaywrightFillOptionsSchema>;
|
|
166
|
-
/**
|
|
167
|
-
* Options for page.goto() and frame.goto() methods
|
|
168
|
-
* @see https://playwright.dev/docs/api/class-page#page-goto
|
|
169
|
-
* @see https://playwright.dev/docs/api/class-frame#frame-goto
|
|
170
|
-
*/
|
|
171
|
-
export declare const PlaywrightGotoOptionsSchema: z.ZodObject<{
|
|
172
|
-
referer: z.ZodOptional<z.ZodString>;
|
|
173
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
174
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
175
|
-
load: "load";
|
|
176
|
-
domcontentloaded: "domcontentloaded";
|
|
177
|
-
networkidle: "networkidle";
|
|
178
|
-
commit: "commit";
|
|
179
|
-
}>>;
|
|
180
|
-
}, z.core.$strip>;
|
|
181
|
-
export type PlaywrightGotoOptions = z.infer<typeof PlaywrightGotoOptionsSchema>;
|
|
182
|
-
/**
|
|
183
|
-
* Options for navigation methods (goBack, goForward, reload)
|
|
184
|
-
* @see https://playwright.dev/docs/api/class-page#page-go-back
|
|
185
|
-
* @see https://playwright.dev/docs/api/class-page#page-go-forward
|
|
186
|
-
* @see https://playwright.dev/docs/api/class-page#page-reload
|
|
187
|
-
*/
|
|
188
|
-
export declare const PlaywrightNavigationOptionsSchema: z.ZodObject<{
|
|
189
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
190
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
191
|
-
load: "load";
|
|
192
|
-
domcontentloaded: "domcontentloaded";
|
|
193
|
-
networkidle: "networkidle";
|
|
194
|
-
commit: "commit";
|
|
195
|
-
}>>;
|
|
196
|
-
}, z.core.$strip>;
|
|
197
|
-
export type PlaywrightNavigationOptions = z.infer<typeof PlaywrightNavigationOptionsSchema>;
|
|
198
|
-
export declare const PlaywrightGoBackOptionsSchema: z.ZodObject<{
|
|
199
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
201
|
-
load: "load";
|
|
202
|
-
domcontentloaded: "domcontentloaded";
|
|
203
|
-
networkidle: "networkidle";
|
|
204
|
-
commit: "commit";
|
|
205
|
-
}>>;
|
|
206
|
-
}, z.core.$strip>;
|
|
207
|
-
export declare const PlaywrightGoForwardOptionsSchema: z.ZodObject<{
|
|
208
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
209
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
210
|
-
load: "load";
|
|
211
|
-
domcontentloaded: "domcontentloaded";
|
|
212
|
-
networkidle: "networkidle";
|
|
213
|
-
commit: "commit";
|
|
214
|
-
}>>;
|
|
215
|
-
}, z.core.$strip>;
|
|
216
|
-
export declare const PlaywrightReloadOptionsSchema: z.ZodObject<{
|
|
217
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
218
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
219
|
-
load: "load";
|
|
220
|
-
domcontentloaded: "domcontentloaded";
|
|
221
|
-
networkidle: "networkidle";
|
|
222
|
-
commit: "commit";
|
|
223
|
-
}>>;
|
|
224
|
-
}, z.core.$strip>;
|
|
225
|
-
export type PlaywrightGoBackOptions = z.infer<typeof PlaywrightGoBackOptionsSchema>;
|
|
226
|
-
export type PlaywrightGoForwardOptions = z.infer<typeof PlaywrightGoForwardOptionsSchema>;
|
|
227
|
-
export type PlaywrightReloadOptions = z.infer<typeof PlaywrightReloadOptionsSchema>;
|
|
228
|
-
/**
|
|
229
|
-
* Options for waitForSelector() method
|
|
230
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-selector
|
|
231
|
-
* @see https://playwright.dev/docs/api/class-frame#frame-wait-for-selector
|
|
232
|
-
*/
|
|
233
|
-
export declare const PlaywrightWaitForSelectorOptionsSchema: z.ZodObject<{
|
|
234
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
235
|
-
attached: "attached";
|
|
236
|
-
detached: "detached";
|
|
237
|
-
visible: "visible";
|
|
238
|
-
hidden: "hidden";
|
|
239
|
-
}>>;
|
|
240
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
242
|
-
}, z.core.$strip>;
|
|
243
|
-
export type PlaywrightWaitForSelectorOptions = z.infer<typeof PlaywrightWaitForSelectorOptionsSchema>;
|
|
244
|
-
/**
|
|
245
|
-
* Screenshot clip region
|
|
246
|
-
* @see https://playwright.dev/docs/api/class-page#page-screenshot
|
|
247
|
-
*/
|
|
248
|
-
export declare const PlaywrightScreenshotClipSchema: z.ZodObject<{
|
|
249
|
-
x: z.ZodNumber;
|
|
250
|
-
y: z.ZodNumber;
|
|
251
|
-
width: z.ZodNumber;
|
|
252
|
-
height: z.ZodNumber;
|
|
253
|
-
}, z.core.$strip>;
|
|
254
|
-
export type PlaywrightScreenshotClip = z.infer<typeof PlaywrightScreenshotClipSchema>;
|
|
255
|
-
/**
|
|
256
|
-
* Options for screenshot() method
|
|
257
|
-
* @see https://playwright.dev/docs/api/class-page#page-screenshot
|
|
258
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-screenshot
|
|
259
|
-
*/
|
|
260
|
-
export declare const PlaywrightScreenshotOptionsSchema: z.ZodObject<{
|
|
261
|
-
animations: z.ZodOptional<z.ZodEnum<{
|
|
262
|
-
allow: "allow";
|
|
263
|
-
disabled: "disabled";
|
|
264
|
-
}>>;
|
|
265
|
-
caret: z.ZodOptional<z.ZodEnum<{
|
|
266
|
-
hide: "hide";
|
|
267
|
-
initial: "initial";
|
|
268
|
-
}>>;
|
|
269
|
-
clip: z.ZodOptional<z.ZodObject<{
|
|
270
|
-
x: z.ZodNumber;
|
|
271
|
-
y: z.ZodNumber;
|
|
272
|
-
width: z.ZodNumber;
|
|
273
|
-
height: z.ZodNumber;
|
|
274
|
-
}, z.core.$strip>>;
|
|
275
|
-
fullPage: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
-
mask: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
|
-
maskColor: z.ZodOptional<z.ZodString>;
|
|
278
|
-
omitBackground: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
path: z.ZodOptional<z.ZodString>;
|
|
280
|
-
quality: z.ZodOptional<z.ZodNumber>;
|
|
281
|
-
scale: z.ZodOptional<z.ZodEnum<{
|
|
282
|
-
css: "css";
|
|
283
|
-
device: "device";
|
|
284
|
-
}>>;
|
|
285
|
-
style: z.ZodOptional<z.ZodString>;
|
|
286
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
288
|
-
png: "png";
|
|
289
|
-
jpeg: "jpeg";
|
|
290
|
-
}>>;
|
|
291
|
-
}, z.core.$strip>;
|
|
292
|
-
export type PlaywrightScreenshotOptions = z.infer<typeof PlaywrightScreenshotOptionsSchema>;
|
|
293
|
-
/**
|
|
294
|
-
* Options for type() / pressSequentially() method
|
|
295
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-press-sequentially
|
|
296
|
-
* @see https://playwright.dev/docs/api/class-keyboard#keyboard-type
|
|
297
|
-
*/
|
|
298
|
-
export declare const PlaywrightTypeOptionsSchema: z.ZodObject<{
|
|
299
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
300
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
302
|
-
}, z.core.$strip>;
|
|
303
|
-
export type PlaywrightTypeOptions = z.infer<typeof PlaywrightTypeOptionsSchema>;
|
|
304
|
-
export declare const PlaywrightPressSequentiallyOptionsSchema: z.ZodObject<{
|
|
305
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
306
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
307
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
308
|
-
}, z.core.$strip>;
|
|
309
|
-
export type PlaywrightPressSequentiallyOptions = z.infer<typeof PlaywrightPressSequentiallyOptionsSchema>;
|
|
310
|
-
/**
|
|
311
|
-
* Options for hover() method
|
|
312
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-hover
|
|
313
|
-
* @see https://playwright.dev/docs/api/class-page#page-hover
|
|
314
|
-
*/
|
|
315
|
-
export declare const PlaywrightHoverOptionsSchema: z.ZodObject<{
|
|
316
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
318
|
-
Alt: "Alt";
|
|
319
|
-
Control: "Control";
|
|
320
|
-
ControlOrMeta: "ControlOrMeta";
|
|
321
|
-
Meta: "Meta";
|
|
322
|
-
Shift: "Shift";
|
|
323
|
-
}>>>;
|
|
324
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
326
|
-
x: z.ZodNumber;
|
|
327
|
-
y: z.ZodNumber;
|
|
328
|
-
}, z.core.$strip>>;
|
|
329
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
330
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
-
}, z.core.$strip>;
|
|
332
|
-
export type PlaywrightHoverOptions = z.infer<typeof PlaywrightHoverOptionsSchema>;
|
|
333
|
-
/**
|
|
334
|
-
* Value specification for selectOption
|
|
335
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-select-option
|
|
336
|
-
*/
|
|
337
|
-
export declare const PlaywrightSelectOptionValueSchema: z.ZodObject<{
|
|
338
|
-
value: z.ZodOptional<z.ZodString>;
|
|
339
|
-
label: z.ZodOptional<z.ZodString>;
|
|
340
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
341
|
-
}, z.core.$strip>;
|
|
342
|
-
export type PlaywrightSelectOptionValue = z.infer<typeof PlaywrightSelectOptionValueSchema>;
|
|
343
|
-
/**
|
|
344
|
-
* Options for selectOption() method
|
|
345
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-select-option
|
|
346
|
-
* @see https://playwright.dev/docs/api/class-page#page-select-option
|
|
347
|
-
*/
|
|
348
|
-
export declare const PlaywrightSelectOptionsSchema: z.ZodObject<{
|
|
349
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
351
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
353
|
-
}, z.core.$strip>;
|
|
354
|
-
export type PlaywrightSelectOptions = z.infer<typeof PlaywrightSelectOptionsSchema>;
|
|
355
|
-
/**
|
|
356
|
-
* Options for press() method (keyboard key press)
|
|
357
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-press
|
|
358
|
-
* @see https://playwright.dev/docs/api/class-keyboard#keyboard-press
|
|
359
|
-
*/
|
|
360
|
-
export declare const PlaywrightPressOptionsSchema: z.ZodObject<{
|
|
361
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
362
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
363
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
364
|
-
}, z.core.$strip>;
|
|
365
|
-
export type PlaywrightPressOptions = z.infer<typeof PlaywrightPressOptionsSchema>;
|
|
366
|
-
/**
|
|
367
|
-
* Options for check() and uncheck() methods
|
|
368
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-check
|
|
369
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-uncheck
|
|
370
|
-
*/
|
|
371
|
-
export declare const PlaywrightCheckOptionsSchema: z.ZodObject<{
|
|
372
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
375
|
-
x: z.ZodNumber;
|
|
376
|
-
y: z.ZodNumber;
|
|
377
|
-
}, z.core.$strip>>;
|
|
378
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
379
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
-
}, z.core.$strip>;
|
|
381
|
-
export type PlaywrightCheckOptions = z.infer<typeof PlaywrightCheckOptionsSchema>;
|
|
382
|
-
export declare const PlaywrightUncheckOptionsSchema: z.ZodObject<{
|
|
383
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
384
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
385
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
386
|
-
x: z.ZodNumber;
|
|
387
|
-
y: z.ZodNumber;
|
|
388
|
-
}, z.core.$strip>>;
|
|
389
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
390
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
-
}, z.core.$strip>;
|
|
392
|
-
export type PlaywrightUncheckOptions = z.infer<typeof PlaywrightUncheckOptionsSchema>;
|
|
393
|
-
/**
|
|
394
|
-
* Options for setChecked() method
|
|
395
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-set-checked
|
|
396
|
-
*/
|
|
397
|
-
export declare const PlaywrightSetCheckedOptionsSchema: z.ZodObject<{
|
|
398
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
401
|
-
x: z.ZodNumber;
|
|
402
|
-
y: z.ZodNumber;
|
|
403
|
-
}, z.core.$strip>>;
|
|
404
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
405
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
406
|
-
}, z.core.$strip>;
|
|
407
|
-
export type PlaywrightSetCheckedOptions = z.infer<typeof PlaywrightSetCheckedOptionsSchema>;
|
|
408
|
-
/**
|
|
409
|
-
* Options for focus() method
|
|
410
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-focus
|
|
411
|
-
*/
|
|
412
|
-
export declare const PlaywrightFocusOptionsSchema: z.ZodObject<{
|
|
413
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
414
|
-
}, z.core.$strip>;
|
|
415
|
-
export type PlaywrightFocusOptions = z.infer<typeof PlaywrightFocusOptionsSchema>;
|
|
416
|
-
/**
|
|
417
|
-
* Options for blur() method
|
|
418
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-blur
|
|
419
|
-
*/
|
|
420
|
-
export declare const PlaywrightBlurOptionsSchema: z.ZodObject<{
|
|
421
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
export type PlaywrightBlurOptions = z.infer<typeof PlaywrightBlurOptionsSchema>;
|
|
424
|
-
/**
|
|
425
|
-
* Options for tap() method (touch screen tap)
|
|
426
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-tap
|
|
427
|
-
*/
|
|
428
|
-
export declare const PlaywrightTapOptionsSchema: z.ZodObject<{
|
|
429
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
-
modifiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
431
|
-
Alt: "Alt";
|
|
432
|
-
Control: "Control";
|
|
433
|
-
ControlOrMeta: "ControlOrMeta";
|
|
434
|
-
Meta: "Meta";
|
|
435
|
-
Shift: "Shift";
|
|
436
|
-
}>>>;
|
|
437
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
438
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
439
|
-
x: z.ZodNumber;
|
|
440
|
-
y: z.ZodNumber;
|
|
441
|
-
}, z.core.$strip>>;
|
|
442
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
443
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
-
}, z.core.$strip>;
|
|
445
|
-
export type PlaywrightTapOptions = z.infer<typeof PlaywrightTapOptionsSchema>;
|
|
446
|
-
/**
|
|
447
|
-
* Options for scrollIntoViewIfNeeded() method
|
|
448
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-scroll-into-view-if-needed
|
|
449
|
-
*/
|
|
450
|
-
export declare const PlaywrightScrollIntoViewOptionsSchema: z.ZodObject<{
|
|
451
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
452
|
-
}, z.core.$strip>;
|
|
453
|
-
export type PlaywrightScrollIntoViewOptions = z.infer<typeof PlaywrightScrollIntoViewOptionsSchema>;
|
|
454
|
-
/**
|
|
455
|
-
* Options for dragTo() method
|
|
456
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-drag-to
|
|
457
|
-
*/
|
|
458
|
-
export declare const PlaywrightDragToOptionsSchema: z.ZodObject<{
|
|
459
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
460
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
-
sourcePosition: z.ZodOptional<z.ZodObject<{
|
|
462
|
-
x: z.ZodNumber;
|
|
463
|
-
y: z.ZodNumber;
|
|
464
|
-
}, z.core.$strip>>;
|
|
465
|
-
targetPosition: z.ZodOptional<z.ZodObject<{
|
|
466
|
-
x: z.ZodNumber;
|
|
467
|
-
y: z.ZodNumber;
|
|
468
|
-
}, z.core.$strip>>;
|
|
469
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
470
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
-
}, z.core.$strip>;
|
|
472
|
-
export type PlaywrightDragToOptions = z.infer<typeof PlaywrightDragToOptionsSchema>;
|
|
473
|
-
/**
|
|
474
|
-
* Options for setInputFiles() method
|
|
475
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-set-input-files
|
|
476
|
-
*/
|
|
477
|
-
export declare const PlaywrightSetInputFilesOptionsSchema: z.ZodObject<{
|
|
478
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
479
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
480
|
-
}, z.core.$strip>;
|
|
481
|
-
export type PlaywrightSetInputFilesOptions = z.infer<typeof PlaywrightSetInputFilesOptionsSchema>;
|
|
482
|
-
/**
|
|
483
|
-
* Options for locator.waitFor() method
|
|
484
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-wait-for
|
|
485
|
-
*/
|
|
486
|
-
export declare const PlaywrightWaitForOptionsSchema: z.ZodObject<{
|
|
487
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
488
|
-
attached: "attached";
|
|
489
|
-
detached: "detached";
|
|
490
|
-
visible: "visible";
|
|
491
|
-
hidden: "hidden";
|
|
492
|
-
}>>;
|
|
493
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
494
|
-
}, z.core.$strip>;
|
|
495
|
-
export type PlaywrightWaitForOptions = z.infer<typeof PlaywrightWaitForOptionsSchema>;
|
|
496
|
-
/**
|
|
497
|
-
* Load state values
|
|
498
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-load-state
|
|
499
|
-
*/
|
|
500
|
-
export declare const PlaywrightLoadStateSchema: z.ZodEnum<{
|
|
501
|
-
load: "load";
|
|
502
|
-
domcontentloaded: "domcontentloaded";
|
|
503
|
-
networkidle: "networkidle";
|
|
504
|
-
}>;
|
|
505
|
-
export type PlaywrightLoadState = z.infer<typeof PlaywrightLoadStateSchema>;
|
|
506
|
-
/**
|
|
507
|
-
* Options for waitForLoadState() method
|
|
508
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-load-state
|
|
509
|
-
*/
|
|
510
|
-
export declare const PlaywrightWaitForLoadStateOptionsSchema: z.ZodObject<{
|
|
511
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
512
|
-
}, z.core.$strip>;
|
|
513
|
-
export type PlaywrightWaitForLoadStateOptions = z.infer<typeof PlaywrightWaitForLoadStateOptionsSchema>;
|
|
514
|
-
/**
|
|
515
|
-
* Options for waitForURL() method
|
|
516
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-url
|
|
517
|
-
*/
|
|
518
|
-
export declare const PlaywrightWaitForURLOptionsSchema: z.ZodObject<{
|
|
519
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
520
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
521
|
-
load: "load";
|
|
522
|
-
domcontentloaded: "domcontentloaded";
|
|
523
|
-
networkidle: "networkidle";
|
|
524
|
-
commit: "commit";
|
|
525
|
-
}>>;
|
|
526
|
-
}, z.core.$strip>;
|
|
527
|
-
export type PlaywrightWaitForURLOptions = z.infer<typeof PlaywrightWaitForURLOptionsSchema>;
|
|
528
|
-
/**
|
|
529
|
-
* Options for waitForNavigation() method
|
|
530
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-navigation
|
|
531
|
-
*/
|
|
532
|
-
export declare const PlaywrightWaitForNavigationOptionsSchema: z.ZodObject<{
|
|
533
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
534
|
-
url: z.ZodOptional<z.ZodString>;
|
|
535
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
536
|
-
load: "load";
|
|
537
|
-
domcontentloaded: "domcontentloaded";
|
|
538
|
-
networkidle: "networkidle";
|
|
539
|
-
commit: "commit";
|
|
540
|
-
}>>;
|
|
541
|
-
}, z.core.$strip>;
|
|
542
|
-
export type PlaywrightWaitForNavigationOptions = z.infer<typeof PlaywrightWaitForNavigationOptionsSchema>;
|
|
543
|
-
/**
|
|
544
|
-
* Options for evaluate() method
|
|
545
|
-
* @see https://playwright.dev/docs/api/class-page#page-evaluate
|
|
546
|
-
*/
|
|
547
|
-
export declare const PlaywrightEvaluateOptionsSchema: z.ZodObject<{
|
|
548
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
549
|
-
}, z.core.$strip>;
|
|
550
|
-
export type PlaywrightEvaluateOptions = z.infer<typeof PlaywrightEvaluateOptionsSchema>;
|
|
551
|
-
/**
|
|
552
|
-
* Options for textContent(), innerText(), innerHTML() methods
|
|
553
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-text-content
|
|
554
|
-
*/
|
|
555
|
-
export declare const PlaywrightTextContentOptionsSchema: z.ZodObject<{
|
|
556
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
557
|
-
}, z.core.$strip>;
|
|
558
|
-
export type PlaywrightTextContentOptions = z.infer<typeof PlaywrightTextContentOptionsSchema>;
|
|
559
|
-
export declare const PlaywrightInnerTextOptionsSchema: z.ZodObject<{
|
|
560
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
561
|
-
}, z.core.$strip>;
|
|
562
|
-
export declare const PlaywrightInnerHTMLOptionsSchema: z.ZodObject<{
|
|
563
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
564
|
-
}, z.core.$strip>;
|
|
565
|
-
export type PlaywrightInnerTextOptions = z.infer<typeof PlaywrightInnerTextOptionsSchema>;
|
|
566
|
-
export type PlaywrightInnerHTMLOptions = z.infer<typeof PlaywrightInnerHTMLOptionsSchema>;
|
|
567
|
-
/**
|
|
568
|
-
* Options for inputValue() method
|
|
569
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-input-value
|
|
570
|
-
*/
|
|
571
|
-
export declare const PlaywrightInputValueOptionsSchema: z.ZodObject<{
|
|
572
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
573
|
-
}, z.core.$strip>;
|
|
574
|
-
export type PlaywrightInputValueOptions = z.infer<typeof PlaywrightInputValueOptionsSchema>;
|
|
575
|
-
/**
|
|
576
|
-
* Options for getAttribute() method
|
|
577
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-get-attribute
|
|
578
|
-
*/
|
|
579
|
-
export declare const PlaywrightGetAttributeOptionsSchema: z.ZodObject<{
|
|
580
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
581
|
-
}, z.core.$strip>;
|
|
582
|
-
export type PlaywrightGetAttributeOptions = z.infer<typeof PlaywrightGetAttributeOptionsSchema>;
|
|
583
|
-
/**
|
|
584
|
-
* Options for isVisible(), isEnabled(), isChecked(), etc. methods
|
|
585
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-is-visible
|
|
586
|
-
*/
|
|
587
|
-
export declare const PlaywrightIsOptionsSchema: z.ZodObject<{
|
|
588
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
589
|
-
}, z.core.$strip>;
|
|
590
|
-
export type PlaywrightIsOptions = z.infer<typeof PlaywrightIsOptionsSchema>;
|
|
591
|
-
/**
|
|
592
|
-
* Options for boundingBox() method
|
|
593
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-bounding-box
|
|
594
|
-
*/
|
|
595
|
-
export declare const PlaywrightBoundingBoxOptionsSchema: z.ZodObject<{
|
|
596
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
597
|
-
}, z.core.$strip>;
|
|
598
|
-
export type PlaywrightBoundingBoxOptions = z.infer<typeof PlaywrightBoundingBoxOptionsSchema>;
|
|
599
|
-
/**
|
|
600
|
-
* Options for mouse.click() method
|
|
601
|
-
* @see https://playwright.dev/docs/api/class-mouse#mouse-click
|
|
602
|
-
*/
|
|
603
|
-
export declare const PlaywrightMouseClickOptionsSchema: z.ZodObject<{
|
|
604
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
605
|
-
left: "left";
|
|
606
|
-
right: "right";
|
|
607
|
-
middle: "middle";
|
|
608
|
-
}>>;
|
|
609
|
-
clickCount: z.ZodOptional<z.ZodNumber>;
|
|
610
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
611
|
-
}, z.core.$strip>;
|
|
612
|
-
export type PlaywrightMouseClickOptions = z.infer<typeof PlaywrightMouseClickOptionsSchema>;
|
|
613
|
-
/**
|
|
614
|
-
* Options for mouse.dblclick() method
|
|
615
|
-
* @see https://playwright.dev/docs/api/class-mouse#mouse-dblclick
|
|
616
|
-
*/
|
|
617
|
-
export declare const PlaywrightMouseDblclickOptionsSchema: z.ZodObject<{
|
|
618
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
619
|
-
left: "left";
|
|
620
|
-
right: "right";
|
|
621
|
-
middle: "middle";
|
|
622
|
-
}>>;
|
|
623
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
624
|
-
}, z.core.$strip>;
|
|
625
|
-
export type PlaywrightMouseDblclickOptions = z.infer<typeof PlaywrightMouseDblclickOptionsSchema>;
|
|
626
|
-
/**
|
|
627
|
-
* Options for mouse.move() method
|
|
628
|
-
* @see https://playwright.dev/docs/api/class-mouse#mouse-move
|
|
629
|
-
*/
|
|
630
|
-
export declare const PlaywrightMouseMoveOptionsSchema: z.ZodObject<{
|
|
631
|
-
steps: z.ZodOptional<z.ZodNumber>;
|
|
632
|
-
}, z.core.$strip>;
|
|
633
|
-
export type PlaywrightMouseMoveOptions = z.infer<typeof PlaywrightMouseMoveOptionsSchema>;
|
|
634
|
-
/**
|
|
635
|
-
* Options for mouse.down() and mouse.up() methods
|
|
636
|
-
* @see https://playwright.dev/docs/api/class-mouse#mouse-down
|
|
637
|
-
*/
|
|
638
|
-
export declare const PlaywrightMouseDownOptionsSchema: z.ZodObject<{
|
|
639
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
640
|
-
left: "left";
|
|
641
|
-
right: "right";
|
|
642
|
-
middle: "middle";
|
|
643
|
-
}>>;
|
|
644
|
-
clickCount: z.ZodOptional<z.ZodNumber>;
|
|
645
|
-
}, z.core.$strip>;
|
|
646
|
-
export type PlaywrightMouseDownOptions = z.infer<typeof PlaywrightMouseDownOptionsSchema>;
|
|
647
|
-
export declare const PlaywrightMouseUpOptionsSchema: z.ZodObject<{
|
|
648
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
649
|
-
left: "left";
|
|
650
|
-
right: "right";
|
|
651
|
-
middle: "middle";
|
|
652
|
-
}>>;
|
|
653
|
-
clickCount: z.ZodOptional<z.ZodNumber>;
|
|
654
|
-
}, z.core.$strip>;
|
|
655
|
-
export type PlaywrightMouseUpOptions = z.infer<typeof PlaywrightMouseUpOptionsSchema>;
|
|
656
|
-
export declare const PlaywrightMouseDownUpOptionsSchema: z.ZodObject<{
|
|
657
|
-
button: z.ZodOptional<z.ZodEnum<{
|
|
658
|
-
left: "left";
|
|
659
|
-
right: "right";
|
|
660
|
-
middle: "middle";
|
|
661
|
-
}>>;
|
|
662
|
-
clickCount: z.ZodOptional<z.ZodNumber>;
|
|
663
|
-
}, z.core.$strip>;
|
|
664
|
-
export type PlaywrightMouseDownUpOptions = PlaywrightMouseDownOptions;
|
|
665
|
-
/**
|
|
666
|
-
* Options for mouse.wheel() method
|
|
667
|
-
* @see https://playwright.dev/docs/api/class-mouse#mouse-wheel
|
|
668
|
-
*/
|
|
669
|
-
export declare const PlaywrightMouseWheelOptionsSchema: z.ZodObject<{
|
|
670
|
-
deltaX: z.ZodOptional<z.ZodNumber>;
|
|
671
|
-
deltaY: z.ZodOptional<z.ZodNumber>;
|
|
672
|
-
}, z.core.$strip>;
|
|
673
|
-
export type PlaywrightMouseWheelOptions = z.infer<typeof PlaywrightMouseWheelOptionsSchema>;
|
|
674
|
-
/**
|
|
675
|
-
* Options for keyboard.type() method
|
|
676
|
-
* @see https://playwright.dev/docs/api/class-keyboard#keyboard-type
|
|
677
|
-
*/
|
|
678
|
-
export declare const PlaywrightKeyboardTypeOptionsSchema: z.ZodObject<{
|
|
679
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
680
|
-
}, z.core.$strip>;
|
|
681
|
-
export type PlaywrightKeyboardTypeOptions = z.infer<typeof PlaywrightKeyboardTypeOptionsSchema>;
|
|
682
|
-
/**
|
|
683
|
-
* Options for keyboard.press() method
|
|
684
|
-
* @see https://playwright.dev/docs/api/class-keyboard#keyboard-press
|
|
685
|
-
*/
|
|
686
|
-
export declare const PlaywrightKeyboardPressOptionsSchema: z.ZodObject<{
|
|
687
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
688
|
-
}, z.core.$strip>;
|
|
689
|
-
export type PlaywrightKeyboardPressOptions = z.infer<typeof PlaywrightKeyboardPressOptionsSchema>;
|
|
690
|
-
/**
|
|
691
|
-
* PDF margin configuration
|
|
692
|
-
* @see https://playwright.dev/docs/api/class-page#page-pdf
|
|
693
|
-
*/
|
|
694
|
-
export declare const PlaywrightPDFMarginSchema: z.ZodObject<{
|
|
695
|
-
top: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
696
|
-
right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
697
|
-
bottom: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
698
|
-
left: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
699
|
-
}, z.core.$strip>;
|
|
700
|
-
export type PlaywrightPDFMargin = z.infer<typeof PlaywrightPDFMarginSchema>;
|
|
701
|
-
/**
|
|
702
|
-
* Options for page.pdf() method
|
|
703
|
-
* @see https://playwright.dev/docs/api/class-page#page-pdf
|
|
704
|
-
*/
|
|
705
|
-
export declare const PlaywrightPDFOptionsSchema: z.ZodObject<{
|
|
706
|
-
displayHeaderFooter: z.ZodOptional<z.ZodBoolean>;
|
|
707
|
-
footerTemplate: z.ZodOptional<z.ZodString>;
|
|
708
|
-
format: z.ZodOptional<z.ZodString>;
|
|
709
|
-
headerTemplate: z.ZodOptional<z.ZodString>;
|
|
710
|
-
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
711
|
-
landscape: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
-
margin: z.ZodOptional<z.ZodObject<{
|
|
713
|
-
top: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
714
|
-
right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
715
|
-
bottom: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
716
|
-
left: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
717
|
-
}, z.core.$strip>>;
|
|
718
|
-
omitBackground: z.ZodOptional<z.ZodBoolean>;
|
|
719
|
-
outline: z.ZodOptional<z.ZodBoolean>;
|
|
720
|
-
pageRanges: z.ZodOptional<z.ZodString>;
|
|
721
|
-
path: z.ZodOptional<z.ZodString>;
|
|
722
|
-
preferCSSPageSize: z.ZodOptional<z.ZodBoolean>;
|
|
723
|
-
printBackground: z.ZodOptional<z.ZodBoolean>;
|
|
724
|
-
scale: z.ZodOptional<z.ZodNumber>;
|
|
725
|
-
tagged: z.ZodOptional<z.ZodBoolean>;
|
|
726
|
-
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
727
|
-
}, z.core.$strip>;
|
|
728
|
-
export type PlaywrightPDFOptions = z.infer<typeof PlaywrightPDFOptionsSchema>;
|
|
729
|
-
/**
|
|
730
|
-
* Cookie SameSite attribute
|
|
731
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-add-cookies
|
|
732
|
-
*/
|
|
733
|
-
export declare const PlaywrightCookieSameSiteSchema: z.ZodEnum<{
|
|
734
|
-
Strict: "Strict";
|
|
735
|
-
Lax: "Lax";
|
|
736
|
-
None: "None";
|
|
737
|
-
}>;
|
|
738
|
-
export type PlaywrightCookieSameSite = z.infer<typeof PlaywrightCookieSameSiteSchema>;
|
|
739
|
-
/**
|
|
740
|
-
* Cookie for addCookies() method
|
|
741
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-add-cookies
|
|
742
|
-
*/
|
|
743
|
-
export declare const PlaywrightCookieSchema: z.ZodObject<{
|
|
744
|
-
name: z.ZodString;
|
|
745
|
-
value: z.ZodString;
|
|
746
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
747
|
-
path: z.ZodOptional<z.ZodString>;
|
|
748
|
-
expires: z.ZodOptional<z.ZodNumber>;
|
|
749
|
-
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
750
|
-
secure: z.ZodOptional<z.ZodBoolean>;
|
|
751
|
-
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
752
|
-
Strict: "Strict";
|
|
753
|
-
Lax: "Lax";
|
|
754
|
-
None: "None";
|
|
755
|
-
}>>;
|
|
756
|
-
url: z.ZodOptional<z.ZodString>;
|
|
757
|
-
}, z.core.$strip>;
|
|
758
|
-
export type PlaywrightCookie = z.infer<typeof PlaywrightCookieSchema>;
|
|
759
|
-
/**
|
|
760
|
-
* Geolocation for context.setGeolocation()
|
|
761
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-set-geolocation
|
|
762
|
-
*/
|
|
763
|
-
export declare const PlaywrightGeolocationSchema: z.ZodObject<{
|
|
764
|
-
latitude: z.ZodNumber;
|
|
765
|
-
longitude: z.ZodNumber;
|
|
766
|
-
accuracy: z.ZodOptional<z.ZodNumber>;
|
|
767
|
-
}, z.core.$strip>;
|
|
768
|
-
export type PlaywrightGeolocation = z.infer<typeof PlaywrightGeolocationSchema>;
|
|
769
|
-
/**
|
|
770
|
-
* HTTP credentials for context
|
|
771
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
772
|
-
*/
|
|
773
|
-
export declare const PlaywrightHttpCredentialsSchema: z.ZodObject<{
|
|
774
|
-
username: z.ZodString;
|
|
775
|
-
password: z.ZodString;
|
|
776
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
777
|
-
send: z.ZodOptional<z.ZodEnum<{
|
|
778
|
-
always: "always";
|
|
779
|
-
unauthorized: "unauthorized";
|
|
780
|
-
}>>;
|
|
781
|
-
}, z.core.$strip>;
|
|
782
|
-
export type PlaywrightHttpCredentials = z.infer<typeof PlaywrightHttpCredentialsSchema>;
|
|
783
|
-
/**
|
|
784
|
-
* Video recording configuration
|
|
785
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
786
|
-
*/
|
|
787
|
-
export declare const PlaywrightVideoOptionsSchema: z.ZodObject<{
|
|
788
|
-
dir: z.ZodString;
|
|
789
|
-
size: z.ZodOptional<z.ZodObject<{
|
|
790
|
-
width: z.ZodNumber;
|
|
791
|
-
height: z.ZodNumber;
|
|
792
|
-
}, z.core.$strip>>;
|
|
793
|
-
}, z.core.$strip>;
|
|
794
|
-
export type PlaywrightVideoOptions = z.infer<typeof PlaywrightVideoOptionsSchema>;
|
|
795
|
-
/**
|
|
796
|
-
* HAR recording configuration
|
|
797
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
798
|
-
*/
|
|
799
|
-
export declare const PlaywrightRecordHarOptionsSchema: z.ZodObject<{
|
|
800
|
-
path: z.ZodString;
|
|
801
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
802
|
-
full: "full";
|
|
803
|
-
minimal: "minimal";
|
|
804
|
-
}>>;
|
|
805
|
-
content: z.ZodOptional<z.ZodEnum<{
|
|
806
|
-
omit: "omit";
|
|
807
|
-
embed: "embed";
|
|
808
|
-
attach: "attach";
|
|
809
|
-
}>>;
|
|
810
|
-
urlFilter: z.ZodOptional<z.ZodString>;
|
|
811
|
-
}, z.core.$strip>;
|
|
812
|
-
export type PlaywrightRecordHarOptions = z.infer<typeof PlaywrightRecordHarOptionsSchema>;
|
|
813
|
-
/**
|
|
814
|
-
* Proxy settings
|
|
815
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
816
|
-
*/
|
|
817
|
-
export declare const PlaywrightProxyOptionsSchema: z.ZodObject<{
|
|
818
|
-
server: z.ZodString;
|
|
819
|
-
bypass: z.ZodOptional<z.ZodString>;
|
|
820
|
-
username: z.ZodOptional<z.ZodString>;
|
|
821
|
-
password: z.ZodOptional<z.ZodString>;
|
|
822
|
-
}, z.core.$strip>;
|
|
823
|
-
export type PlaywrightProxyOptions = z.infer<typeof PlaywrightProxyOptionsSchema>;
|
|
824
|
-
/**
|
|
825
|
-
* Options for browser.newContext()
|
|
826
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
827
|
-
*/
|
|
828
|
-
export declare const PlaywrightNewContextOptionsSchema: z.ZodObject<{
|
|
829
|
-
acceptDownloads: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
-
baseURL: z.ZodOptional<z.ZodString>;
|
|
831
|
-
bypassCSP: z.ZodOptional<z.ZodBoolean>;
|
|
832
|
-
colorScheme: z.ZodOptional<z.ZodEnum<{
|
|
833
|
-
null: "null";
|
|
834
|
-
light: "light";
|
|
835
|
-
dark: "dark";
|
|
836
|
-
"no-preference": "no-preference";
|
|
837
|
-
}>>;
|
|
838
|
-
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
839
|
-
extraHTTPHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
840
|
-
forcedColors: z.ZodOptional<z.ZodEnum<{
|
|
841
|
-
null: "null";
|
|
842
|
-
active: "active";
|
|
843
|
-
none: "none";
|
|
844
|
-
}>>;
|
|
845
|
-
geolocation: z.ZodOptional<z.ZodObject<{
|
|
846
|
-
latitude: z.ZodNumber;
|
|
847
|
-
longitude: z.ZodNumber;
|
|
848
|
-
accuracy: z.ZodOptional<z.ZodNumber>;
|
|
849
|
-
}, z.core.$strip>>;
|
|
850
|
-
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
851
|
-
httpCredentials: z.ZodOptional<z.ZodObject<{
|
|
852
|
-
username: z.ZodString;
|
|
853
|
-
password: z.ZodString;
|
|
854
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
855
|
-
send: z.ZodOptional<z.ZodEnum<{
|
|
856
|
-
always: "always";
|
|
857
|
-
unauthorized: "unauthorized";
|
|
858
|
-
}>>;
|
|
859
|
-
}, z.core.$strip>>;
|
|
860
|
-
ignoreHTTPSErrors: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
-
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
-
javaScriptEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
864
|
-
offline: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
866
|
-
proxy: z.ZodOptional<z.ZodObject<{
|
|
867
|
-
server: z.ZodString;
|
|
868
|
-
bypass: z.ZodOptional<z.ZodString>;
|
|
869
|
-
username: z.ZodOptional<z.ZodString>;
|
|
870
|
-
password: z.ZodOptional<z.ZodString>;
|
|
871
|
-
}, z.core.$strip>>;
|
|
872
|
-
recordHar: z.ZodOptional<z.ZodObject<{
|
|
873
|
-
path: z.ZodString;
|
|
874
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
875
|
-
full: "full";
|
|
876
|
-
minimal: "minimal";
|
|
877
|
-
}>>;
|
|
878
|
-
content: z.ZodOptional<z.ZodEnum<{
|
|
879
|
-
omit: "omit";
|
|
880
|
-
embed: "embed";
|
|
881
|
-
attach: "attach";
|
|
882
|
-
}>>;
|
|
883
|
-
urlFilter: z.ZodOptional<z.ZodString>;
|
|
884
|
-
}, z.core.$strip>>;
|
|
885
|
-
recordVideo: z.ZodOptional<z.ZodObject<{
|
|
886
|
-
dir: z.ZodString;
|
|
887
|
-
size: z.ZodOptional<z.ZodObject<{
|
|
888
|
-
width: z.ZodNumber;
|
|
889
|
-
height: z.ZodNumber;
|
|
890
|
-
}, z.core.$strip>>;
|
|
891
|
-
}, z.core.$strip>>;
|
|
892
|
-
reducedMotion: z.ZodOptional<z.ZodEnum<{
|
|
893
|
-
null: "null";
|
|
894
|
-
reduce: "reduce";
|
|
895
|
-
"no-preference": "no-preference";
|
|
896
|
-
}>>;
|
|
897
|
-
screen: z.ZodOptional<z.ZodObject<{
|
|
898
|
-
width: z.ZodNumber;
|
|
899
|
-
height: z.ZodNumber;
|
|
900
|
-
}, z.core.$strip>>;
|
|
901
|
-
serviceWorkers: z.ZodOptional<z.ZodEnum<{
|
|
902
|
-
allow: "allow";
|
|
903
|
-
block: "block";
|
|
904
|
-
}>>;
|
|
905
|
-
storageState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$loose>]>>;
|
|
906
|
-
strictSelectors: z.ZodOptional<z.ZodBoolean>;
|
|
907
|
-
timezoneId: z.ZodOptional<z.ZodString>;
|
|
908
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
909
|
-
viewport: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
910
|
-
width: z.ZodNumber;
|
|
911
|
-
height: z.ZodNumber;
|
|
912
|
-
}, z.core.$strip>, z.ZodNull]>>;
|
|
913
|
-
}, z.core.$strip>;
|
|
914
|
-
export type PlaywrightNewContextOptions = z.infer<typeof PlaywrightNewContextOptionsSchema>;
|
|
915
|
-
/**
|
|
916
|
-
* Options for browser.startTracing()
|
|
917
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-start-tracing
|
|
918
|
-
*/
|
|
919
|
-
export declare const PlaywrightStartTracingOptionsSchema: z.ZodObject<{
|
|
920
|
-
path: z.ZodOptional<z.ZodString>;
|
|
921
|
-
screenshots: z.ZodOptional<z.ZodBoolean>;
|
|
922
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
923
|
-
}, z.core.$strip>;
|
|
924
|
-
export type PlaywrightStartTracingOptions = z.infer<typeof PlaywrightStartTracingOptionsSchema>;
|
|
925
|
-
/**
|
|
926
|
-
* Options for tracing.start()
|
|
927
|
-
* @see https://playwright.dev/docs/api/class-tracing#tracing-start
|
|
928
|
-
*/
|
|
929
|
-
export declare const PlaywrightTracingStartOptionsSchema: z.ZodObject<{
|
|
930
|
-
name: z.ZodOptional<z.ZodString>;
|
|
931
|
-
screenshots: z.ZodOptional<z.ZodBoolean>;
|
|
932
|
-
snapshots: z.ZodOptional<z.ZodBoolean>;
|
|
933
|
-
sources: z.ZodOptional<z.ZodBoolean>;
|
|
934
|
-
title: z.ZodOptional<z.ZodString>;
|
|
935
|
-
}, z.core.$strip>;
|
|
936
|
-
export type PlaywrightTracingStartOptions = z.infer<typeof PlaywrightTracingStartOptionsSchema>;
|
|
937
|
-
/**
|
|
938
|
-
* Options for tracing.stop()
|
|
939
|
-
* @see https://playwright.dev/docs/api/class-tracing#tracing-stop
|
|
940
|
-
*/
|
|
941
|
-
export declare const PlaywrightTracingStopOptionsSchema: z.ZodObject<{
|
|
942
|
-
path: z.ZodOptional<z.ZodString>;
|
|
943
|
-
}, z.core.$strip>;
|
|
944
|
-
export type PlaywrightTracingStopOptions = z.infer<typeof PlaywrightTracingStopOptionsSchema>;
|
|
945
|
-
/**
|
|
946
|
-
* Options for coverage.startCSSCoverage()
|
|
947
|
-
* @see https://playwright.dev/docs/api/class-coverage#coverage-start-css-coverage
|
|
948
|
-
*/
|
|
949
|
-
export declare const PlaywrightStartCSSCoverageOptionsSchema: z.ZodObject<{
|
|
950
|
-
resetOnNavigation: z.ZodOptional<z.ZodBoolean>;
|
|
951
|
-
}, z.core.$strip>;
|
|
952
|
-
export type PlaywrightStartCSSCoverageOptions = z.infer<typeof PlaywrightStartCSSCoverageOptionsSchema>;
|
|
953
|
-
/**
|
|
954
|
-
* Options for coverage.startJSCoverage()
|
|
955
|
-
* @see https://playwright.dev/docs/api/class-coverage#coverage-start-js-coverage
|
|
956
|
-
*/
|
|
957
|
-
export declare const PlaywrightStartJSCoverageOptionsSchema: z.ZodObject<{
|
|
958
|
-
resetOnNavigation: z.ZodOptional<z.ZodBoolean>;
|
|
959
|
-
reportAnonymousScripts: z.ZodOptional<z.ZodBoolean>;
|
|
960
|
-
}, z.core.$strip>;
|
|
961
|
-
export type PlaywrightStartJSCoverageOptions = z.infer<typeof PlaywrightStartJSCoverageOptionsSchema>;
|
|
962
|
-
/**
|
|
963
|
-
* CSS coverage entry returned by stopCSSCoverage()
|
|
964
|
-
* @see https://playwright.dev/docs/api/class-coverage#coverage-stop-css-coverage
|
|
965
|
-
*/
|
|
966
|
-
export declare const PlaywrightCSSCoverageEntrySchema: z.ZodObject<{
|
|
967
|
-
url: z.ZodString;
|
|
968
|
-
text: z.ZodOptional<z.ZodString>;
|
|
969
|
-
ranges: z.ZodArray<z.ZodObject<{
|
|
970
|
-
start: z.ZodNumber;
|
|
971
|
-
end: z.ZodNumber;
|
|
972
|
-
}, z.core.$strip>>;
|
|
973
|
-
}, z.core.$strip>;
|
|
974
|
-
export type PlaywrightCSSCoverageEntry = z.infer<typeof PlaywrightCSSCoverageEntrySchema>;
|
|
975
|
-
/**
|
|
976
|
-
* JS coverage entry returned by stopJSCoverage()
|
|
977
|
-
* @see https://playwright.dev/docs/api/class-coverage#coverage-stop-js-coverage
|
|
978
|
-
*/
|
|
979
|
-
export declare const PlaywrightJSCoverageEntrySchema: z.ZodObject<{
|
|
980
|
-
url: z.ZodString;
|
|
981
|
-
scriptId: z.ZodString;
|
|
982
|
-
source: z.ZodOptional<z.ZodString>;
|
|
983
|
-
functions: z.ZodArray<z.ZodObject<{
|
|
984
|
-
functionName: z.ZodString;
|
|
985
|
-
isBlockCoverage: z.ZodBoolean;
|
|
986
|
-
ranges: z.ZodArray<z.ZodObject<{
|
|
987
|
-
count: z.ZodNumber;
|
|
988
|
-
startOffset: z.ZodNumber;
|
|
989
|
-
endOffset: z.ZodNumber;
|
|
990
|
-
}, z.core.$strip>>;
|
|
991
|
-
}, z.core.$strip>>;
|
|
992
|
-
}, z.core.$strip>;
|
|
993
|
-
export type PlaywrightJSCoverageEntry = z.infer<typeof PlaywrightJSCoverageEntrySchema>;
|
|
994
|
-
/**
|
|
995
|
-
* Dialog type
|
|
996
|
-
* @see https://playwright.dev/docs/api/class-dialog
|
|
997
|
-
*/
|
|
998
|
-
export declare const PlaywrightDialogTypeSchema: z.ZodEnum<{
|
|
999
|
-
alert: "alert";
|
|
1000
|
-
beforeunload: "beforeunload";
|
|
1001
|
-
confirm: "confirm";
|
|
1002
|
-
prompt: "prompt";
|
|
1003
|
-
}>;
|
|
1004
|
-
export type PlaywrightDialogType = z.infer<typeof PlaywrightDialogTypeSchema>;
|
|
1005
|
-
/**
|
|
1006
|
-
* Console message type
|
|
1007
|
-
* @see https://playwright.dev/docs/api/class-consolemessage#console-message-type
|
|
1008
|
-
*/
|
|
1009
|
-
export declare const PlaywrightConsoleMessageTypeSchema: z.ZodEnum<{
|
|
1010
|
-
error: "error";
|
|
1011
|
-
warning: "warning";
|
|
1012
|
-
log: "log";
|
|
1013
|
-
info: "info";
|
|
1014
|
-
debug: "debug";
|
|
1015
|
-
profile: "profile";
|
|
1016
|
-
dir: "dir";
|
|
1017
|
-
count: "count";
|
|
1018
|
-
dirxml: "dirxml";
|
|
1019
|
-
table: "table";
|
|
1020
|
-
trace: "trace";
|
|
1021
|
-
clear: "clear";
|
|
1022
|
-
startGroup: "startGroup";
|
|
1023
|
-
startGroupCollapsed: "startGroupCollapsed";
|
|
1024
|
-
endGroup: "endGroup";
|
|
1025
|
-
assert: "assert";
|
|
1026
|
-
profileEnd: "profileEnd";
|
|
1027
|
-
timeEnd: "timeEnd";
|
|
1028
|
-
}>;
|
|
1029
|
-
export type PlaywrightConsoleMessageType = z.infer<typeof PlaywrightConsoleMessageTypeSchema>;
|
|
1030
|
-
/**
|
|
1031
|
-
* Source location of a console message
|
|
1032
|
-
* @see https://playwright.dev/docs/api/class-consolemessage#console-message-location
|
|
1033
|
-
*/
|
|
1034
|
-
export declare const PlaywrightConsoleMessageLocationSchema: z.ZodObject<{
|
|
1035
|
-
url: z.ZodString;
|
|
1036
|
-
lineNumber: z.ZodNumber;
|
|
1037
|
-
columnNumber: z.ZodNumber;
|
|
1038
|
-
}, z.core.$strip>;
|
|
1039
|
-
export type PlaywrightConsoleMessageLocation = z.infer<typeof PlaywrightConsoleMessageLocationSchema>;
|
|
1040
|
-
/**
|
|
1041
|
-
* Bounding box result from boundingBox() method
|
|
1042
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-bounding-box
|
|
1043
|
-
*/
|
|
1044
|
-
export declare const PlaywrightBoundingBoxResultSchema: z.ZodObject<{
|
|
1045
|
-
x: z.ZodNumber;
|
|
1046
|
-
y: z.ZodNumber;
|
|
1047
|
-
width: z.ZodNumber;
|
|
1048
|
-
height: z.ZodNumber;
|
|
1049
|
-
}, z.core.$strip>;
|
|
1050
|
-
export type PlaywrightBoundingBoxResult = z.infer<typeof PlaywrightBoundingBoxResultSchema>;
|
|
1051
|
-
/**
|
|
1052
|
-
* Options for locator.filter() method
|
|
1053
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-filter
|
|
1054
|
-
*/
|
|
1055
|
-
export declare const PlaywrightLocatorFilterOptionsSchema: z.ZodObject<{
|
|
1056
|
-
hasText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1057
|
-
hasNotText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1058
|
-
has: z.ZodOptional<z.ZodString>;
|
|
1059
|
-
hasNot: z.ZodOptional<z.ZodString>;
|
|
1060
|
-
}, z.core.$strip>;
|
|
1061
|
-
export type PlaywrightLocatorFilterOptions = z.infer<typeof PlaywrightLocatorFilterOptionsSchema>;
|
|
1062
|
-
/**
|
|
1063
|
-
* Options for getByRole() method
|
|
1064
|
-
* @see https://playwright.dev/docs/api/class-page#page-get-by-role
|
|
1065
|
-
*/
|
|
1066
|
-
export declare const PlaywrightGetByRoleOptionsSchema: z.ZodObject<{
|
|
1067
|
-
checked: z.ZodOptional<z.ZodBoolean>;
|
|
1068
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1069
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1070
|
-
expanded: z.ZodOptional<z.ZodBoolean>;
|
|
1071
|
-
includeHidden: z.ZodOptional<z.ZodBoolean>;
|
|
1072
|
-
level: z.ZodOptional<z.ZodNumber>;
|
|
1073
|
-
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1074
|
-
pressed: z.ZodOptional<z.ZodBoolean>;
|
|
1075
|
-
selected: z.ZodOptional<z.ZodBoolean>;
|
|
1076
|
-
}, z.core.$strip>;
|
|
1077
|
-
export type PlaywrightGetByRoleOptions = z.infer<typeof PlaywrightGetByRoleOptionsSchema>;
|
|
1078
|
-
/**
|
|
1079
|
-
* Options for getByText(), getByLabel(), getByPlaceholder(), getByAltText(), getByTitle() methods
|
|
1080
|
-
* @see https://playwright.dev/docs/api/class-page#page-get-by-text
|
|
1081
|
-
*/
|
|
1082
|
-
export declare const PlaywrightGetByTextOptionsSchema: z.ZodObject<{
|
|
1083
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1084
|
-
}, z.core.$strip>;
|
|
1085
|
-
export type PlaywrightGetByTextOptions = z.infer<typeof PlaywrightGetByTextOptionsSchema>;
|
|
1086
|
-
export declare const PlaywrightGetByLabelOptionsSchema: z.ZodObject<{
|
|
1087
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1088
|
-
}, z.core.$strip>;
|
|
1089
|
-
export declare const PlaywrightGetByPlaceholderOptionsSchema: z.ZodObject<{
|
|
1090
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1091
|
-
}, z.core.$strip>;
|
|
1092
|
-
export declare const PlaywrightGetByAltTextOptionsSchema: z.ZodObject<{
|
|
1093
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1094
|
-
}, z.core.$strip>;
|
|
1095
|
-
export declare const PlaywrightGetByTitleOptionsSchema: z.ZodObject<{
|
|
1096
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1097
|
-
}, z.core.$strip>;
|
|
1098
|
-
export type PlaywrightGetByLabelOptions = z.infer<typeof PlaywrightGetByLabelOptionsSchema>;
|
|
1099
|
-
export type PlaywrightGetByPlaceholderOptions = z.infer<typeof PlaywrightGetByPlaceholderOptionsSchema>;
|
|
1100
|
-
export type PlaywrightGetByAltTextOptions = z.infer<typeof PlaywrightGetByAltTextOptionsSchema>;
|
|
1101
|
-
export type PlaywrightGetByTitleOptions = z.infer<typeof PlaywrightGetByTitleOptionsSchema>;
|
|
1102
|
-
/**
|
|
1103
|
-
* Options for page.emulateMedia() method
|
|
1104
|
-
* @see https://playwright.dev/docs/api/class-page#page-emulate-media
|
|
1105
|
-
*/
|
|
1106
|
-
export declare const PlaywrightEmulateMediaOptionsSchema: z.ZodObject<{
|
|
1107
|
-
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1108
|
-
light: "light";
|
|
1109
|
-
dark: "dark";
|
|
1110
|
-
"no-preference": "no-preference";
|
|
1111
|
-
}>>>;
|
|
1112
|
-
forcedColors: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1113
|
-
active: "active";
|
|
1114
|
-
none: "none";
|
|
1115
|
-
}>>>;
|
|
1116
|
-
media: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1117
|
-
screen: "screen";
|
|
1118
|
-
print: "print";
|
|
1119
|
-
}>>>;
|
|
1120
|
-
reducedMotion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1121
|
-
reduce: "reduce";
|
|
1122
|
-
"no-preference": "no-preference";
|
|
1123
|
-
}>>>;
|
|
1124
|
-
}, z.core.$strip>;
|
|
1125
|
-
export type PlaywrightEmulateMediaOptions = z.infer<typeof PlaywrightEmulateMediaOptionsSchema>;
|
|
1126
|
-
/**
|
|
1127
|
-
* Options for page.route() and context.route() methods
|
|
1128
|
-
* @see https://playwright.dev/docs/api/class-page#page-route
|
|
1129
|
-
*/
|
|
1130
|
-
export declare const PlaywrightRouteOptionsSchema: z.ZodObject<{
|
|
1131
|
-
times: z.ZodOptional<z.ZodNumber>;
|
|
1132
|
-
}, z.core.$strip>;
|
|
1133
|
-
export type PlaywrightRouteOptions = z.infer<typeof PlaywrightRouteOptionsSchema>;
|
|
1134
|
-
/**
|
|
1135
|
-
* Options for page.addScriptTag() method
|
|
1136
|
-
* @see https://playwright.dev/docs/api/class-page#page-add-script-tag
|
|
1137
|
-
*/
|
|
1138
|
-
export declare const PlaywrightAddScriptTagOptionsSchema: z.ZodObject<{
|
|
1139
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1140
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1141
|
-
type: z.ZodOptional<z.ZodString>;
|
|
1142
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
}, z.core.$strip>;
|
|
1144
|
-
export type PlaywrightAddScriptTagOptions = z.infer<typeof PlaywrightAddScriptTagOptionsSchema>;
|
|
1145
|
-
/**
|
|
1146
|
-
* Options for page.addStyleTag() method
|
|
1147
|
-
* @see https://playwright.dev/docs/api/class-page#page-add-style-tag
|
|
1148
|
-
*/
|
|
1149
|
-
export declare const PlaywrightAddStyleTagOptionsSchema: z.ZodObject<{
|
|
1150
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1151
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1152
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1153
|
-
}, z.core.$strip>;
|
|
1154
|
-
export type PlaywrightAddStyleTagOptions = z.infer<typeof PlaywrightAddStyleTagOptionsSchema>;
|
|
1155
|
-
/**
|
|
1156
|
-
* Step in a locator chain for RPC serialization
|
|
1157
|
-
*/
|
|
1158
|
-
export declare const PlaywrightLocatorChainStepSchema: z.ZodObject<{
|
|
1159
|
-
method: z.ZodString;
|
|
1160
|
-
args: z.ZodArray<z.ZodUnknown>;
|
|
1161
|
-
}, z.core.$strip>;
|
|
1162
|
-
export type PlaywrightLocatorChainStep = z.infer<typeof PlaywrightLocatorChainStepSchema>;
|
|
1163
|
-
/**
|
|
1164
|
-
* Serialized locator chain for RPC
|
|
1165
|
-
*/
|
|
1166
|
-
export declare const PlaywrightSerializedLocatorChainSchema: z.ZodObject<{
|
|
1167
|
-
_locatorChain: z.ZodArray<z.ZodObject<{
|
|
1168
|
-
method: z.ZodString;
|
|
1169
|
-
args: z.ZodArray<z.ZodUnknown>;
|
|
1170
|
-
}, z.core.$strip>>;
|
|
1171
|
-
}, z.core.$strip>;
|
|
1172
|
-
export type PlaywrightSerializedLocatorChain = z.infer<typeof PlaywrightSerializedLocatorChainSchema>;
|
|
1173
|
-
/**
|
|
1174
|
-
* Serialized frame for RPC
|
|
1175
|
-
*/
|
|
1176
|
-
export declare const PlaywrightFrameSchema: z.ZodObject<{
|
|
1177
|
-
frameId: z.ZodString;
|
|
1178
|
-
url: z.ZodString;
|
|
1179
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1180
|
-
parentFrameId: z.ZodOptional<z.ZodString>;
|
|
1181
|
-
isDetached: z.ZodOptional<z.ZodBoolean>;
|
|
1182
|
-
}, z.core.$strip>;
|
|
1183
|
-
export type PlaywrightFrame = z.infer<typeof PlaywrightFrameSchema>;
|
|
1184
|
-
/**
|
|
1185
|
-
* Options for locator.clear() method
|
|
1186
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-clear
|
|
1187
|
-
*/
|
|
1188
|
-
export declare const PlaywrightClearOptionsSchema: z.ZodObject<{
|
|
1189
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
1190
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1191
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1192
|
-
}, z.core.$strip>;
|
|
1193
|
-
export type PlaywrightClearOptions = z.infer<typeof PlaywrightClearOptionsSchema>;
|
|
1194
|
-
/**
|
|
1195
|
-
* Options for locator.highlight() method
|
|
1196
|
-
* Note: highlight() takes no options in current API
|
|
1197
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-highlight
|
|
1198
|
-
*/
|
|
1199
|
-
/**
|
|
1200
|
-
* Options for page.waitForEvent() method
|
|
1201
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-event
|
|
1202
|
-
*/
|
|
1203
|
-
export declare const PlaywrightWaitForEventOptionsSchema: z.ZodObject<{
|
|
1204
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1205
|
-
}, z.core.$strip>;
|
|
1206
|
-
export type PlaywrightWaitForEventOptions = z.infer<typeof PlaywrightWaitForEventOptionsSchema>;
|
|
1207
|
-
/**
|
|
1208
|
-
* Options for page.accessibility.snapshot() method
|
|
1209
|
-
* @see https://playwright.dev/docs/api/class-accessibility#accessibility-snapshot
|
|
1210
|
-
*/
|
|
1211
|
-
export declare const PlaywrightAccessibilitySnapshotOptionsSchema: z.ZodObject<{
|
|
1212
|
-
interestingOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1213
|
-
root: z.ZodOptional<z.ZodString>;
|
|
1214
|
-
}, z.core.$strip>;
|
|
1215
|
-
export type PlaywrightAccessibilitySnapshotOptions = z.infer<typeof PlaywrightAccessibilitySnapshotOptionsSchema>;
|
|
1216
|
-
/**
|
|
1217
|
-
* File payload for multipart form data
|
|
1218
|
-
* @see https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-fetch
|
|
1219
|
-
*/
|
|
1220
|
-
export declare const PlaywrightFilePayloadSchema: z.ZodObject<{
|
|
1221
|
-
name: z.ZodString;
|
|
1222
|
-
mimeType: z.ZodString;
|
|
1223
|
-
buffer: z.ZodString;
|
|
1224
|
-
}, z.core.$strip>;
|
|
1225
|
-
export type PlaywrightFilePayload = z.infer<typeof PlaywrightFilePayloadSchema>;
|
|
1226
|
-
/**
|
|
1227
|
-
* Multipart form data value
|
|
1228
|
-
* Can be a string, number, boolean, or file payload
|
|
1229
|
-
*/
|
|
1230
|
-
export declare const PlaywrightMultipartValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1231
|
-
name: z.ZodString;
|
|
1232
|
-
mimeType: z.ZodString;
|
|
1233
|
-
buffer: z.ZodString;
|
|
1234
|
-
}, z.core.$strip>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1235
|
-
name: z.ZodString;
|
|
1236
|
-
mimeType: z.ZodString;
|
|
1237
|
-
buffer: z.ZodString;
|
|
1238
|
-
}, z.core.$strip>]>>]>;
|
|
1239
|
-
export type PlaywrightMultipartValue = z.infer<typeof PlaywrightMultipartValueSchema>;
|
|
1240
|
-
/**
|
|
1241
|
-
* Options for APIRequestContext HTTP methods (get, post, put, delete, patch, head, fetch)
|
|
1242
|
-
* @see https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-fetch
|
|
1243
|
-
*/
|
|
1244
|
-
export declare const PlaywrightAPIRequestOptionsSchema: z.ZodObject<{
|
|
1245
|
-
method: z.ZodOptional<z.ZodString>;
|
|
1246
|
-
params: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>;
|
|
1247
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1248
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
1249
|
-
form: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1250
|
-
multipart: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1251
|
-
name: z.ZodString;
|
|
1252
|
-
mimeType: z.ZodString;
|
|
1253
|
-
buffer: z.ZodString;
|
|
1254
|
-
}, z.core.$strip>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1255
|
-
name: z.ZodString;
|
|
1256
|
-
mimeType: z.ZodString;
|
|
1257
|
-
buffer: z.ZodString;
|
|
1258
|
-
}, z.core.$strip>]>>]>>>;
|
|
1259
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1260
|
-
failOnStatusCode: z.ZodOptional<z.ZodBoolean>;
|
|
1261
|
-
ignoreHTTPSErrors: z.ZodOptional<z.ZodBoolean>;
|
|
1262
|
-
maxRedirects: z.ZodOptional<z.ZodNumber>;
|
|
1263
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
1264
|
-
}, z.core.$strip>;
|
|
1265
|
-
export type PlaywrightAPIRequestOptions = z.infer<typeof PlaywrightAPIRequestOptionsSchema>;
|
|
1266
|
-
/**
|
|
1267
|
-
* Options for APIRequestContext.storageState() method
|
|
1268
|
-
* @see https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state
|
|
1269
|
-
*/
|
|
1270
|
-
export declare const PlaywrightStorageStateOptionsSchema: z.ZodObject<{
|
|
1271
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1272
|
-
indexedDB: z.ZodOptional<z.ZodBoolean>;
|
|
1273
|
-
}, z.core.$strip>;
|
|
1274
|
-
export type PlaywrightStorageStateOptions = z.infer<typeof PlaywrightStorageStateOptionsSchema>;
|
|
1275
|
-
/**
|
|
1276
|
-
* Storage state returned by APIRequestContext.storageState()
|
|
1277
|
-
* @see https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state
|
|
1278
|
-
*/
|
|
1279
|
-
export declare const PlaywrightStorageStateSchema: z.ZodObject<{
|
|
1280
|
-
cookies: z.ZodArray<z.ZodObject<{
|
|
1281
|
-
name: z.ZodString;
|
|
1282
|
-
value: z.ZodString;
|
|
1283
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
1284
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1285
|
-
expires: z.ZodOptional<z.ZodNumber>;
|
|
1286
|
-
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1287
|
-
secure: z.ZodOptional<z.ZodBoolean>;
|
|
1288
|
-
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
1289
|
-
Strict: "Strict";
|
|
1290
|
-
Lax: "Lax";
|
|
1291
|
-
None: "None";
|
|
1292
|
-
}>>;
|
|
1293
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1294
|
-
}, z.core.$strip>>;
|
|
1295
|
-
origins: z.ZodArray<z.ZodObject<{
|
|
1296
|
-
origin: z.ZodString;
|
|
1297
|
-
localStorage: z.ZodArray<z.ZodObject<{
|
|
1298
|
-
name: z.ZodString;
|
|
1299
|
-
value: z.ZodString;
|
|
1300
|
-
}, z.core.$strip>>;
|
|
1301
|
-
}, z.core.$strip>>;
|
|
1302
|
-
}, z.core.$strip>;
|
|
1303
|
-
export type PlaywrightStorageState = z.infer<typeof PlaywrightStorageStateSchema>;
|
|
1304
|
-
/**
|
|
1305
|
-
* Options for browserContext.clearCookies() method
|
|
1306
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-clear-cookies
|
|
1307
|
-
*/
|
|
1308
|
-
export declare const PlaywrightClearCookiesOptionsSchema: z.ZodObject<{
|
|
1309
|
-
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1310
|
-
domain: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1311
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1312
|
-
}, z.core.$strip>;
|
|
1313
|
-
export type PlaywrightClearCookiesOptions = z.infer<typeof PlaywrightClearCookiesOptionsSchema>;
|
|
1314
|
-
/**
|
|
1315
|
-
* Browser permissions that can be granted
|
|
1316
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-grant-permissions
|
|
1317
|
-
*/
|
|
1318
|
-
export declare const PlaywrightPermissionSchema: z.ZodEnum<{
|
|
1319
|
-
geolocation: "geolocation";
|
|
1320
|
-
midi: "midi";
|
|
1321
|
-
"midi-sysex": "midi-sysex";
|
|
1322
|
-
notifications: "notifications";
|
|
1323
|
-
camera: "camera";
|
|
1324
|
-
microphone: "microphone";
|
|
1325
|
-
"background-sync": "background-sync";
|
|
1326
|
-
"ambient-light-sensor": "ambient-light-sensor";
|
|
1327
|
-
accelerometer: "accelerometer";
|
|
1328
|
-
gyroscope: "gyroscope";
|
|
1329
|
-
magnetometer: "magnetometer";
|
|
1330
|
-
"accessibility-events": "accessibility-events";
|
|
1331
|
-
"clipboard-read": "clipboard-read";
|
|
1332
|
-
"clipboard-write": "clipboard-write";
|
|
1333
|
-
"payment-handler": "payment-handler";
|
|
1334
|
-
"storage-access": "storage-access";
|
|
1335
|
-
}>;
|
|
1336
|
-
export type PlaywrightPermission = z.infer<typeof PlaywrightPermissionSchema>;
|
|
1337
|
-
/**
|
|
1338
|
-
* Options for browserContext.grantPermissions() method
|
|
1339
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-grant-permissions
|
|
1340
|
-
*/
|
|
1341
|
-
export declare const PlaywrightGrantPermissionsOptionsSchema: z.ZodObject<{
|
|
1342
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
1343
|
-
}, z.core.$strip>;
|
|
1344
|
-
export type PlaywrightGrantPermissionsOptions = z.infer<typeof PlaywrightGrantPermissionsOptionsSchema>;
|
|
1345
|
-
/**
|
|
1346
|
-
* Options for page.addLocatorHandler() method
|
|
1347
|
-
* @see https://playwright.dev/docs/api/class-page#page-add-locator-handler
|
|
1348
|
-
*/
|
|
1349
|
-
export declare const PlaywrightAddLocatorHandlerOptionsSchema: z.ZodObject<{
|
|
1350
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1351
|
-
times: z.ZodOptional<z.ZodNumber>;
|
|
1352
|
-
}, z.core.$strip>;
|
|
1353
|
-
export type PlaywrightAddLocatorHandlerOptions = z.infer<typeof PlaywrightAddLocatorHandlerOptionsSchema>;
|
|
1354
|
-
/**
|
|
1355
|
-
* Options for page.routeFromHAR() and context.routeFromHAR() methods
|
|
1356
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-route-from-har
|
|
1357
|
-
*/
|
|
1358
|
-
export declare const PlaywrightRouteFromHAROptionsSchema: z.ZodObject<{
|
|
1359
|
-
notFound: z.ZodOptional<z.ZodEnum<{
|
|
1360
|
-
abort: "abort";
|
|
1361
|
-
fallback: "fallback";
|
|
1362
|
-
}>>;
|
|
1363
|
-
update: z.ZodOptional<z.ZodBoolean>;
|
|
1364
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1365
|
-
updateMode: z.ZodOptional<z.ZodEnum<{
|
|
1366
|
-
full: "full";
|
|
1367
|
-
minimal: "minimal";
|
|
1368
|
-
}>>;
|
|
1369
|
-
updateContent: z.ZodOptional<z.ZodEnum<{
|
|
1370
|
-
embed: "embed";
|
|
1371
|
-
attach: "attach";
|
|
1372
|
-
}>>;
|
|
1373
|
-
}, z.core.$strip>;
|
|
1374
|
-
export type PlaywrightRouteFromHAROptions = z.infer<typeof PlaywrightRouteFromHAROptionsSchema>;
|
|
1375
|
-
/**
|
|
1376
|
-
* Options for page.unrouteAll() and context.unrouteAll() methods
|
|
1377
|
-
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-unroute-all
|
|
1378
|
-
*/
|
|
1379
|
-
export declare const PlaywrightUnrouteAllOptionsSchema: z.ZodObject<{
|
|
1380
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
wait: "wait";
|
|
1382
|
-
ignoreErrors: "ignoreErrors";
|
|
1383
|
-
}>>;
|
|
1384
|
-
}, z.core.$strip>;
|
|
1385
|
-
export type PlaywrightUnrouteAllOptions = z.infer<typeof PlaywrightUnrouteAllOptionsSchema>;
|
|
1386
|
-
/**
|
|
1387
|
-
* HTTP credentials (alias with capital letters for compatibility)
|
|
1388
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-context
|
|
1389
|
-
*/
|
|
1390
|
-
export declare const PlaywrightHTTPCredentialsSchema: z.ZodObject<{
|
|
1391
|
-
username: z.ZodString;
|
|
1392
|
-
password: z.ZodString;
|
|
1393
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
send: z.ZodOptional<z.ZodEnum<{
|
|
1395
|
-
always: "always";
|
|
1396
|
-
unauthorized: "unauthorized";
|
|
1397
|
-
}>>;
|
|
1398
|
-
}, z.core.$strip>;
|
|
1399
|
-
export type PlaywrightHTTPCredentials = PlaywrightHttpCredentials;
|
|
1400
|
-
/**
|
|
1401
|
-
* ARIA roles for getByRole() method
|
|
1402
|
-
* @see https://playwright.dev/docs/api/class-page#page-get-by-role
|
|
1403
|
-
* @see https://www.w3.org/TR/wai-aria-1.2/#roles
|
|
1404
|
-
*/
|
|
1405
|
-
export declare const PlaywrightAriaRoleSchema: z.ZodEnum<{
|
|
1406
|
-
log: "log";
|
|
1407
|
-
code: "code";
|
|
1408
|
-
dialog: "dialog";
|
|
1409
|
-
status: "status";
|
|
1410
|
-
search: "search";
|
|
1411
|
-
link: "link";
|
|
1412
|
-
time: "time";
|
|
1413
|
-
button: "button";
|
|
1414
|
-
none: "none";
|
|
1415
|
-
alert: "alert";
|
|
1416
|
-
table: "table";
|
|
1417
|
-
form: "form";
|
|
1418
|
-
alertdialog: "alertdialog";
|
|
1419
|
-
application: "application";
|
|
1420
|
-
article: "article";
|
|
1421
|
-
banner: "banner";
|
|
1422
|
-
blockquote: "blockquote";
|
|
1423
|
-
caption: "caption";
|
|
1424
|
-
cell: "cell";
|
|
1425
|
-
checkbox: "checkbox";
|
|
1426
|
-
columnheader: "columnheader";
|
|
1427
|
-
combobox: "combobox";
|
|
1428
|
-
complementary: "complementary";
|
|
1429
|
-
contentinfo: "contentinfo";
|
|
1430
|
-
definition: "definition";
|
|
1431
|
-
deletion: "deletion";
|
|
1432
|
-
directory: "directory";
|
|
1433
|
-
document: "document";
|
|
1434
|
-
emphasis: "emphasis";
|
|
1435
|
-
feed: "feed";
|
|
1436
|
-
figure: "figure";
|
|
1437
|
-
generic: "generic";
|
|
1438
|
-
grid: "grid";
|
|
1439
|
-
gridcell: "gridcell";
|
|
1440
|
-
group: "group";
|
|
1441
|
-
heading: "heading";
|
|
1442
|
-
img: "img";
|
|
1443
|
-
insertion: "insertion";
|
|
1444
|
-
list: "list";
|
|
1445
|
-
listbox: "listbox";
|
|
1446
|
-
listitem: "listitem";
|
|
1447
|
-
main: "main";
|
|
1448
|
-
marquee: "marquee";
|
|
1449
|
-
math: "math";
|
|
1450
|
-
meter: "meter";
|
|
1451
|
-
menu: "menu";
|
|
1452
|
-
menubar: "menubar";
|
|
1453
|
-
menuitem: "menuitem";
|
|
1454
|
-
menuitemcheckbox: "menuitemcheckbox";
|
|
1455
|
-
menuitemradio: "menuitemradio";
|
|
1456
|
-
navigation: "navigation";
|
|
1457
|
-
note: "note";
|
|
1458
|
-
option: "option";
|
|
1459
|
-
paragraph: "paragraph";
|
|
1460
|
-
presentation: "presentation";
|
|
1461
|
-
progressbar: "progressbar";
|
|
1462
|
-
radio: "radio";
|
|
1463
|
-
radiogroup: "radiogroup";
|
|
1464
|
-
region: "region";
|
|
1465
|
-
row: "row";
|
|
1466
|
-
rowgroup: "rowgroup";
|
|
1467
|
-
rowheader: "rowheader";
|
|
1468
|
-
scrollbar: "scrollbar";
|
|
1469
|
-
searchbox: "searchbox";
|
|
1470
|
-
separator: "separator";
|
|
1471
|
-
slider: "slider";
|
|
1472
|
-
spinbutton: "spinbutton";
|
|
1473
|
-
strong: "strong";
|
|
1474
|
-
subscript: "subscript";
|
|
1475
|
-
superscript: "superscript";
|
|
1476
|
-
switch: "switch";
|
|
1477
|
-
tab: "tab";
|
|
1478
|
-
tablist: "tablist";
|
|
1479
|
-
tabpanel: "tabpanel";
|
|
1480
|
-
term: "term";
|
|
1481
|
-
textbox: "textbox";
|
|
1482
|
-
timer: "timer";
|
|
1483
|
-
toolbar: "toolbar";
|
|
1484
|
-
tooltip: "tooltip";
|
|
1485
|
-
tree: "tree";
|
|
1486
|
-
treegrid: "treegrid";
|
|
1487
|
-
treeitem: "treeitem";
|
|
1488
|
-
}>;
|
|
1489
|
-
export type PlaywrightAriaRole = z.infer<typeof PlaywrightAriaRoleSchema>;
|
|
1490
|
-
/**
|
|
1491
|
-
* Bounding box (alias for PlaywrightBoundingBoxResult)
|
|
1492
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-bounding-box
|
|
1493
|
-
*/
|
|
1494
|
-
export declare const PlaywrightBoundingBoxSchema: z.ZodObject<{
|
|
1495
|
-
x: z.ZodNumber;
|
|
1496
|
-
y: z.ZodNumber;
|
|
1497
|
-
width: z.ZodNumber;
|
|
1498
|
-
height: z.ZodNumber;
|
|
1499
|
-
}, z.core.$strip>;
|
|
1500
|
-
export type PlaywrightBoundingBox = PlaywrightBoundingBoxResult;
|
|
1501
|
-
/**
|
|
1502
|
-
* Element state for waitFor
|
|
1503
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-wait-for
|
|
1504
|
-
*/
|
|
1505
|
-
export declare const PlaywrightElementStateSchema: z.ZodEnum<{
|
|
1506
|
-
attached: "attached";
|
|
1507
|
-
detached: "detached";
|
|
1508
|
-
visible: "visible";
|
|
1509
|
-
hidden: "hidden";
|
|
1510
|
-
}>;
|
|
1511
|
-
export type PlaywrightElementState = z.infer<typeof PlaywrightElementStateSchema>;
|
|
1512
|
-
/**
|
|
1513
|
-
* Event initialization options for dispatchEvent
|
|
1514
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-dispatch-event
|
|
1515
|
-
*/
|
|
1516
|
-
export declare const PlaywrightEventInitSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1517
|
-
export type PlaywrightEventInit = z.infer<typeof PlaywrightEventInitSchema>;
|
|
1518
|
-
/**
|
|
1519
|
-
* Options for dispatchEvent() method
|
|
1520
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-dispatch-event
|
|
1521
|
-
*/
|
|
1522
|
-
export declare const PlaywrightDispatchEventOptionsSchema: z.ZodObject<{
|
|
1523
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1524
|
-
}, z.core.$strip>;
|
|
1525
|
-
export type PlaywrightDispatchEventOptions = z.infer<typeof PlaywrightDispatchEventOptionsSchema>;
|
|
1526
|
-
/**
|
|
1527
|
-
* Generic timeout options used by various methods
|
|
1528
|
-
*/
|
|
1529
|
-
export declare const PlaywrightTimeoutOptionsSchema: z.ZodObject<{
|
|
1530
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
-
}, z.core.$strip>;
|
|
1532
|
-
export type PlaywrightTimeoutOptions = z.infer<typeof PlaywrightTimeoutOptionsSchema>;
|
|
1533
|
-
/**
|
|
1534
|
-
* Select option value (alias for PlaywrightSelectOptionValue)
|
|
1535
|
-
* @see https://playwright.dev/docs/api/class-locator#locator-select-option
|
|
1536
|
-
*/
|
|
1537
|
-
export declare const PlaywrightSelectOptionSchema: z.ZodObject<{
|
|
1538
|
-
value: z.ZodOptional<z.ZodString>;
|
|
1539
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1540
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
1541
|
-
}, z.core.$strip>;
|
|
1542
|
-
export type PlaywrightSelectOption = PlaywrightSelectOptionValue;
|
|
1543
|
-
/**
|
|
1544
|
-
* Options for selectOption (alias for PlaywrightSelectOptions)
|
|
1545
|
-
*/
|
|
1546
|
-
export declare const PlaywrightSelectOptionOptionsSchema: z.ZodObject<{
|
|
1547
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
1548
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1549
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
1550
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1551
|
-
}, z.core.$strip>;
|
|
1552
|
-
export type PlaywrightSelectOptionOptions = PlaywrightSelectOptions;
|
|
1553
|
-
/**
|
|
1554
|
-
* Keyboard options (alias for KeyboardPressOptions)
|
|
1555
|
-
*/
|
|
1556
|
-
export declare const PlaywrightKeyboardOptionsSchema: z.ZodObject<{
|
|
1557
|
-
delay: z.ZodOptional<z.ZodNumber>;
|
|
1558
|
-
}, z.core.$strip>;
|
|
1559
|
-
export type PlaywrightKeyboardOptions = PlaywrightKeyboardPressOptions;
|
|
1560
|
-
/**
|
|
1561
|
-
* Screenshot clip region (alias for PlaywrightScreenshotClip)
|
|
1562
|
-
*/
|
|
1563
|
-
export declare const PlaywrightClipRegionSchema: z.ZodObject<{
|
|
1564
|
-
x: z.ZodNumber;
|
|
1565
|
-
y: z.ZodNumber;
|
|
1566
|
-
width: z.ZodNumber;
|
|
1567
|
-
height: z.ZodNumber;
|
|
1568
|
-
}, z.core.$strip>;
|
|
1569
|
-
export type PlaywrightClipRegion = PlaywrightScreenshotClip;
|
|
1570
|
-
/**
|
|
1571
|
-
* Page screenshot options (alias for PlaywrightScreenshotOptions)
|
|
1572
|
-
*/
|
|
1573
|
-
export declare const PlaywrightPageScreenshotOptionsSchema: z.ZodObject<{
|
|
1574
|
-
animations: z.ZodOptional<z.ZodEnum<{
|
|
1575
|
-
allow: "allow";
|
|
1576
|
-
disabled: "disabled";
|
|
1577
|
-
}>>;
|
|
1578
|
-
caret: z.ZodOptional<z.ZodEnum<{
|
|
1579
|
-
hide: "hide";
|
|
1580
|
-
initial: "initial";
|
|
1581
|
-
}>>;
|
|
1582
|
-
clip: z.ZodOptional<z.ZodObject<{
|
|
1583
|
-
x: z.ZodNumber;
|
|
1584
|
-
y: z.ZodNumber;
|
|
1585
|
-
width: z.ZodNumber;
|
|
1586
|
-
height: z.ZodNumber;
|
|
1587
|
-
}, z.core.$strip>>;
|
|
1588
|
-
fullPage: z.ZodOptional<z.ZodBoolean>;
|
|
1589
|
-
mask: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1590
|
-
maskColor: z.ZodOptional<z.ZodString>;
|
|
1591
|
-
omitBackground: z.ZodOptional<z.ZodBoolean>;
|
|
1592
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1593
|
-
quality: z.ZodOptional<z.ZodNumber>;
|
|
1594
|
-
scale: z.ZodOptional<z.ZodEnum<{
|
|
1595
|
-
css: "css";
|
|
1596
|
-
device: "device";
|
|
1597
|
-
}>>;
|
|
1598
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1599
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1600
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1601
|
-
png: "png";
|
|
1602
|
-
jpeg: "jpeg";
|
|
1603
|
-
}>>;
|
|
1604
|
-
}, z.core.$strip>;
|
|
1605
|
-
export type PlaywrightPageScreenshotOptions = PlaywrightScreenshotOptions;
|
|
1606
|
-
/**
|
|
1607
|
-
* Options for browser.newPage() - same as newContext options
|
|
1608
|
-
* @see https://playwright.dev/docs/api/class-browser#browser-new-page
|
|
1609
|
-
*/
|
|
1610
|
-
export declare const PlaywrightNewPageOptionsSchema: z.ZodObject<{
|
|
1611
|
-
acceptDownloads: z.ZodOptional<z.ZodBoolean>;
|
|
1612
|
-
baseURL: z.ZodOptional<z.ZodString>;
|
|
1613
|
-
bypassCSP: z.ZodOptional<z.ZodBoolean>;
|
|
1614
|
-
colorScheme: z.ZodOptional<z.ZodEnum<{
|
|
1615
|
-
null: "null";
|
|
1616
|
-
light: "light";
|
|
1617
|
-
dark: "dark";
|
|
1618
|
-
"no-preference": "no-preference";
|
|
1619
|
-
}>>;
|
|
1620
|
-
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
1621
|
-
extraHTTPHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1622
|
-
forcedColors: z.ZodOptional<z.ZodEnum<{
|
|
1623
|
-
null: "null";
|
|
1624
|
-
active: "active";
|
|
1625
|
-
none: "none";
|
|
1626
|
-
}>>;
|
|
1627
|
-
geolocation: z.ZodOptional<z.ZodObject<{
|
|
1628
|
-
latitude: z.ZodNumber;
|
|
1629
|
-
longitude: z.ZodNumber;
|
|
1630
|
-
accuracy: z.ZodOptional<z.ZodNumber>;
|
|
1631
|
-
}, z.core.$strip>>;
|
|
1632
|
-
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
1633
|
-
httpCredentials: z.ZodOptional<z.ZodObject<{
|
|
1634
|
-
username: z.ZodString;
|
|
1635
|
-
password: z.ZodString;
|
|
1636
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
1637
|
-
send: z.ZodOptional<z.ZodEnum<{
|
|
1638
|
-
always: "always";
|
|
1639
|
-
unauthorized: "unauthorized";
|
|
1640
|
-
}>>;
|
|
1641
|
-
}, z.core.$strip>>;
|
|
1642
|
-
ignoreHTTPSErrors: z.ZodOptional<z.ZodBoolean>;
|
|
1643
|
-
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1644
|
-
javaScriptEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1645
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
1646
|
-
offline: z.ZodOptional<z.ZodBoolean>;
|
|
1647
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1648
|
-
proxy: z.ZodOptional<z.ZodObject<{
|
|
1649
|
-
server: z.ZodString;
|
|
1650
|
-
bypass: z.ZodOptional<z.ZodString>;
|
|
1651
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1652
|
-
password: z.ZodOptional<z.ZodString>;
|
|
1653
|
-
}, z.core.$strip>>;
|
|
1654
|
-
recordHar: z.ZodOptional<z.ZodObject<{
|
|
1655
|
-
path: z.ZodString;
|
|
1656
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
1657
|
-
full: "full";
|
|
1658
|
-
minimal: "minimal";
|
|
1659
|
-
}>>;
|
|
1660
|
-
content: z.ZodOptional<z.ZodEnum<{
|
|
1661
|
-
omit: "omit";
|
|
1662
|
-
embed: "embed";
|
|
1663
|
-
attach: "attach";
|
|
1664
|
-
}>>;
|
|
1665
|
-
urlFilter: z.ZodOptional<z.ZodString>;
|
|
1666
|
-
}, z.core.$strip>>;
|
|
1667
|
-
recordVideo: z.ZodOptional<z.ZodObject<{
|
|
1668
|
-
dir: z.ZodString;
|
|
1669
|
-
size: z.ZodOptional<z.ZodObject<{
|
|
1670
|
-
width: z.ZodNumber;
|
|
1671
|
-
height: z.ZodNumber;
|
|
1672
|
-
}, z.core.$strip>>;
|
|
1673
|
-
}, z.core.$strip>>;
|
|
1674
|
-
reducedMotion: z.ZodOptional<z.ZodEnum<{
|
|
1675
|
-
null: "null";
|
|
1676
|
-
reduce: "reduce";
|
|
1677
|
-
"no-preference": "no-preference";
|
|
1678
|
-
}>>;
|
|
1679
|
-
screen: z.ZodOptional<z.ZodObject<{
|
|
1680
|
-
width: z.ZodNumber;
|
|
1681
|
-
height: z.ZodNumber;
|
|
1682
|
-
}, z.core.$strip>>;
|
|
1683
|
-
serviceWorkers: z.ZodOptional<z.ZodEnum<{
|
|
1684
|
-
allow: "allow";
|
|
1685
|
-
block: "block";
|
|
1686
|
-
}>>;
|
|
1687
|
-
storageState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{}, z.core.$loose>]>>;
|
|
1688
|
-
strictSelectors: z.ZodOptional<z.ZodBoolean>;
|
|
1689
|
-
timezoneId: z.ZodOptional<z.ZodString>;
|
|
1690
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
1691
|
-
viewport: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1692
|
-
width: z.ZodNumber;
|
|
1693
|
-
height: z.ZodNumber;
|
|
1694
|
-
}, z.core.$strip>, z.ZodNull]>>;
|
|
1695
|
-
}, z.core.$strip>;
|
|
1696
|
-
export type PlaywrightNewPageOptions = PlaywrightNewContextOptions;
|
|
1697
|
-
/**
|
|
1698
|
-
* Locator chain step (alias)
|
|
1699
|
-
*/
|
|
1700
|
-
export type LocatorChainStep = PlaywrightLocatorChainStep;
|
|
1701
|
-
/**
|
|
1702
|
-
* Serialized locator chain (alias)
|
|
1703
|
-
*/
|
|
1704
|
-
export type SerializedLocatorChain = PlaywrightSerializedLocatorChain;
|
|
1705
|
-
/**
|
|
1706
|
-
* Filter options (alias for PlaywrightLocatorFilterOptions)
|
|
1707
|
-
*/
|
|
1708
|
-
export declare const PlaywrightFilterOptionsSchema: z.ZodObject<{
|
|
1709
|
-
hasText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1710
|
-
hasNotText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1711
|
-
has: z.ZodOptional<z.ZodString>;
|
|
1712
|
-
hasNot: z.ZodOptional<z.ZodString>;
|
|
1713
|
-
}, z.core.$strip>;
|
|
1714
|
-
export type PlaywrightFilterOptions = PlaywrightLocatorFilterOptions;
|
|
1715
|
-
/**
|
|
1716
|
-
* Locator options (for page.locator() and locator.locator())
|
|
1717
|
-
* Same as PlaywrightLocatorFilterOptions but used in the locator() method.
|
|
1718
|
-
*/
|
|
1719
|
-
export declare const PlaywrightLocatorOptionsSchema: z.ZodObject<{
|
|
1720
|
-
hasText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1721
|
-
hasNotText: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>>;
|
|
1722
|
-
has: z.ZodOptional<z.ZodString>;
|
|
1723
|
-
hasNot: z.ZodOptional<z.ZodString>;
|
|
1724
|
-
}, z.core.$strip>;
|
|
1725
|
-
export type PlaywrightLocatorOptions = PlaywrightLocatorFilterOptions;
|
|
1726
|
-
/**
|
|
1727
|
-
* Get by test ID options (same as GetByText, just has exact option)
|
|
1728
|
-
*/
|
|
1729
|
-
export declare const PlaywrightGetByTestIdOptionsSchema: z.ZodObject<{
|
|
1730
|
-
exact: z.ZodOptional<z.ZodBoolean>;
|
|
1731
|
-
}, z.core.$strip>;
|
|
1732
|
-
export type PlaywrightGetByTestIdOptions = z.infer<typeof PlaywrightGetByTestIdOptionsSchema>;
|
|
1733
|
-
/**
|
|
1734
|
-
* Scroll into view if needed options (alias for ScrollIntoViewOptions)
|
|
1735
|
-
*/
|
|
1736
|
-
export declare const PlaywrightScrollIntoViewIfNeededOptionsSchema: z.ZodObject<{
|
|
1737
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1738
|
-
}, z.core.$strip>;
|
|
1739
|
-
export type PlaywrightScrollIntoViewIfNeededOptions = PlaywrightScrollIntoViewOptions;
|
|
1740
|
-
/**
|
|
1741
|
-
* Drag and drop options (same as DragTo)
|
|
1742
|
-
*/
|
|
1743
|
-
export declare const PlaywrightDragAndDropOptionsSchema: z.ZodObject<{
|
|
1744
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
1745
|
-
noWaitAfter: z.ZodOptional<z.ZodBoolean>;
|
|
1746
|
-
sourcePosition: z.ZodOptional<z.ZodObject<{
|
|
1747
|
-
x: z.ZodNumber;
|
|
1748
|
-
y: z.ZodNumber;
|
|
1749
|
-
}, z.core.$strip>>;
|
|
1750
|
-
targetPosition: z.ZodOptional<z.ZodObject<{
|
|
1751
|
-
x: z.ZodNumber;
|
|
1752
|
-
y: z.ZodNumber;
|
|
1753
|
-
}, z.core.$strip>>;
|
|
1754
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1755
|
-
trial: z.ZodOptional<z.ZodBoolean>;
|
|
1756
|
-
}, z.core.$strip>;
|
|
1757
|
-
export type PlaywrightDragAndDropOptions = PlaywrightDragToOptions;
|
|
1758
|
-
/**
|
|
1759
|
-
* Set content options
|
|
1760
|
-
* @see https://playwright.dev/docs/api/class-page#page-set-content
|
|
1761
|
-
*/
|
|
1762
|
-
export declare const PlaywrightSetContentOptionsSchema: z.ZodObject<{
|
|
1763
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1764
|
-
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
1765
|
-
load: "load";
|
|
1766
|
-
domcontentloaded: "domcontentloaded";
|
|
1767
|
-
networkidle: "networkidle";
|
|
1768
|
-
commit: "commit";
|
|
1769
|
-
}>>;
|
|
1770
|
-
}, z.core.$strip>;
|
|
1771
|
-
export type PlaywrightSetContentOptions = z.infer<typeof PlaywrightSetContentOptionsSchema>;
|
|
1772
|
-
/**
|
|
1773
|
-
* Viewport size (alias for Viewport)
|
|
1774
|
-
*/
|
|
1775
|
-
export declare const PlaywrightViewportSizeSchema: z.ZodObject<{
|
|
1776
|
-
width: z.ZodNumber;
|
|
1777
|
-
height: z.ZodNumber;
|
|
1778
|
-
}, z.core.$strip>;
|
|
1779
|
-
export type PlaywrightViewportSize = PlaywrightViewport;
|
|
1780
|
-
/**
|
|
1781
|
-
* Wait for function options
|
|
1782
|
-
* @see https://playwright.dev/docs/api/class-page#page-wait-for-function
|
|
1783
|
-
*/
|
|
1784
|
-
export declare const PlaywrightWaitForFunctionOptionsSchema: z.ZodObject<{
|
|
1785
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1786
|
-
polling: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"raf">]>>;
|
|
1787
|
-
}, z.core.$strip>;
|
|
1788
|
-
export type PlaywrightWaitForFunctionOptions = z.infer<typeof PlaywrightWaitForFunctionOptionsSchema>;
|
|
1789
|
-
/**
|
|
1790
|
-
* Wait until state (alias for WaitUntil)
|
|
1791
|
-
*/
|
|
1792
|
-
export declare const WaitUntilStateSchema: z.ZodEnum<{
|
|
1793
|
-
load: "load";
|
|
1794
|
-
domcontentloaded: "domcontentloaded";
|
|
1795
|
-
networkidle: "networkidle";
|
|
1796
|
-
commit: "commit";
|
|
1797
|
-
}>;
|
|
1798
|
-
export type WaitUntilState = PlaywrightWaitUntil;
|
|
1799
|
-
/**
|
|
1800
|
-
* Load state (alias for PlaywrightLoadState)
|
|
1801
|
-
*/
|
|
1802
|
-
export type LoadState = PlaywrightLoadState;
|
|
1803
|
-
/**
|
|
1804
|
-
* File payload (alias for PlaywrightFilePayload)
|
|
1805
|
-
*/
|
|
1806
|
-
export type FilePayload = PlaywrightFilePayload;
|
|
1807
|
-
/**
|
|
1808
|
-
* Page event name types (string enum for validation)
|
|
1809
|
-
* @see https://playwright.dev/docs/api/class-page#events
|
|
1810
|
-
*/
|
|
1811
|
-
export declare const PlaywrightPageEventNamesSchema: z.ZodEnum<{
|
|
1812
|
-
close: "close";
|
|
1813
|
-
dialog: "dialog";
|
|
1814
|
-
response: "response";
|
|
1815
|
-
worker: "worker";
|
|
1816
|
-
load: "load";
|
|
1817
|
-
domcontentloaded: "domcontentloaded";
|
|
1818
|
-
console: "console";
|
|
1819
|
-
crash: "crash";
|
|
1820
|
-
download: "download";
|
|
1821
|
-
filechooser: "filechooser";
|
|
1822
|
-
frameattached: "frameattached";
|
|
1823
|
-
framedetached: "framedetached";
|
|
1824
|
-
framenavigated: "framenavigated";
|
|
1825
|
-
pageerror: "pageerror";
|
|
1826
|
-
popup: "popup";
|
|
1827
|
-
request: "request";
|
|
1828
|
-
requestfailed: "requestfailed";
|
|
1829
|
-
requestfinished: "requestfinished";
|
|
1830
|
-
websocket: "websocket";
|
|
1831
|
-
}>;
|
|
1832
|
-
export type PlaywrightPageEventNames = z.infer<typeof PlaywrightPageEventNamesSchema>;
|
|
1833
|
-
/**
|
|
1834
|
-
* PageEvents - maps event names to their payload types.
|
|
1835
|
-
* @see https://playwright.dev/docs/api/class-page#events
|
|
1836
|
-
*/
|
|
1837
|
-
export interface PageEvents extends Record<string, unknown> {
|
|
1838
|
-
/** Emitted when the page closes. */
|
|
1839
|
-
close: undefined;
|
|
1840
|
-
/** Emitted when JavaScript within the page calls console API methods. */
|
|
1841
|
-
console: unknown;
|
|
1842
|
-
/** Emitted when the page crashes. */
|
|
1843
|
-
crash: undefined;
|
|
1844
|
-
/** Emitted when a JavaScript dialog appears (alert, prompt, confirm, beforeunload). */
|
|
1845
|
-
dialog: unknown;
|
|
1846
|
-
/** Emitted when the DOMContentLoaded event is fired. */
|
|
1847
|
-
domcontentloaded: unknown;
|
|
1848
|
-
/** Emitted when a download is started. */
|
|
1849
|
-
download: unknown;
|
|
1850
|
-
/** Emitted when a file chooser is presented. */
|
|
1851
|
-
filechooser: unknown;
|
|
1852
|
-
/** Emitted when a frame is attached. */
|
|
1853
|
-
frameattached: unknown;
|
|
1854
|
-
/** Emitted when a frame is detached. */
|
|
1855
|
-
framedetached: unknown;
|
|
1856
|
-
/** Emitted when a frame is navigated. */
|
|
1857
|
-
framenavigated: unknown;
|
|
1858
|
-
/** Emitted when the load event is fired. */
|
|
1859
|
-
load: unknown;
|
|
1860
|
-
/** Emitted when an uncaught exception happens within the page. */
|
|
1861
|
-
pageerror: Error;
|
|
1862
|
-
/** Emitted when the page opens a new popup window. */
|
|
1863
|
-
popup: unknown;
|
|
1864
|
-
/** Emitted when a request is issued. */
|
|
1865
|
-
request: unknown;
|
|
1866
|
-
/** Emitted when a request fails. */
|
|
1867
|
-
requestfailed: unknown;
|
|
1868
|
-
/** Emitted when a request finishes successfully. */
|
|
1869
|
-
requestfinished: unknown;
|
|
1870
|
-
/** Emitted when a response is received. */
|
|
1871
|
-
response: unknown;
|
|
1872
|
-
/** Emitted when WebSocket connection is established. */
|
|
1873
|
-
websocket: unknown;
|
|
1874
|
-
/** Emitted when a dedicated WebWorker is spawned. */
|
|
1875
|
-
worker: unknown;
|
|
1876
|
-
}
|
|
1877
|
-
/**
|
|
1878
|
-
* Page events (alias for backwards compatibility)
|
|
1879
|
-
*/
|
|
1880
|
-
export type PlaywrightPageEvents = PageEvents;
|
|
1881
|
-
/**
|
|
1882
|
-
* Serialized request for RPC
|
|
1883
|
-
* @see https://playwright.dev/docs/api/class-request
|
|
1884
|
-
*/
|
|
1885
|
-
export declare const PlaywrightRequestSchema: z.ZodObject<{
|
|
1886
|
-
url: z.ZodString;
|
|
1887
|
-
method: z.ZodString;
|
|
1888
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1889
|
-
postData: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1890
|
-
resourceType: z.ZodOptional<z.ZodString>;
|
|
1891
|
-
isNavigationRequest: z.ZodOptional<z.ZodBoolean>;
|
|
1892
|
-
redirectedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1893
|
-
redirectedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1894
|
-
failure: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1895
|
-
timing: z.ZodOptional<z.ZodObject<{
|
|
1896
|
-
startTime: z.ZodNumber;
|
|
1897
|
-
domainLookupStart: z.ZodNumber;
|
|
1898
|
-
domainLookupEnd: z.ZodNumber;
|
|
1899
|
-
connectStart: z.ZodNumber;
|
|
1900
|
-
secureConnectionStart: z.ZodNumber;
|
|
1901
|
-
connectEnd: z.ZodNumber;
|
|
1902
|
-
requestStart: z.ZodNumber;
|
|
1903
|
-
responseStart: z.ZodNumber;
|
|
1904
|
-
responseEnd: z.ZodNumber;
|
|
1905
|
-
}, z.core.$strip>>;
|
|
1906
|
-
}, z.core.$strip>;
|
|
1907
|
-
export type PlaywrightRequest = z.infer<typeof PlaywrightRequestSchema>;
|
|
1908
|
-
/**
|
|
1909
|
-
* Serialized response for RPC
|
|
1910
|
-
* @see https://playwright.dev/docs/api/class-response
|
|
1911
|
-
*/
|
|
1912
|
-
export declare const PlaywrightResponseSchema: z.ZodObject<{
|
|
1913
|
-
url: z.ZodString;
|
|
1914
|
-
status: z.ZodNumber;
|
|
1915
|
-
statusText: z.ZodString;
|
|
1916
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1917
|
-
ok: z.ZodBoolean;
|
|
1918
|
-
fromCache: z.ZodOptional<z.ZodBoolean>;
|
|
1919
|
-
fromServiceWorker: z.ZodOptional<z.ZodBoolean>;
|
|
1920
|
-
securityDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1921
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
1922
|
-
protocol: z.ZodOptional<z.ZodString>;
|
|
1923
|
-
subjectName: z.ZodOptional<z.ZodString>;
|
|
1924
|
-
validFrom: z.ZodOptional<z.ZodNumber>;
|
|
1925
|
-
validTo: z.ZodOptional<z.ZodNumber>;
|
|
1926
|
-
}, z.core.$strip>>>;
|
|
1927
|
-
}, z.core.$strip>;
|
|
1928
|
-
export type PlaywrightResponse = z.infer<typeof PlaywrightResponseSchema>;
|
|
1929
|
-
/**
|
|
1930
|
-
* Route handler function signature (serialized for RPC)
|
|
1931
|
-
*/
|
|
1932
|
-
export type PlaywrightRouteHandler = (route: unknown, request: PlaywrightRequest) => void | Promise<void>;
|
|
1933
|
-
/**
|
|
1934
|
-
* API response for APIRequestContext methods
|
|
1935
|
-
* @see https://playwright.dev/docs/api/class-apiresponse
|
|
1936
|
-
*/
|
|
1937
|
-
export declare const PlaywrightAPIResponseSchema: z.ZodObject<{
|
|
1938
|
-
url: z.ZodString;
|
|
1939
|
-
status: z.ZodNumber;
|
|
1940
|
-
statusText: z.ZodString;
|
|
1941
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1942
|
-
headersArray: z.ZodArray<z.ZodObject<{
|
|
1943
|
-
name: z.ZodString;
|
|
1944
|
-
value: z.ZodString;
|
|
1945
|
-
}, z.core.$strip>>;
|
|
1946
|
-
ok: z.ZodBoolean;
|
|
1947
|
-
text: z.ZodOptional<z.ZodString>;
|
|
1948
|
-
json: z.ZodOptional<z.ZodUnknown>;
|
|
1949
|
-
body: z.ZodOptional<z.ZodString>;
|
|
1950
|
-
}, z.core.$strip>;
|
|
1951
|
-
export type PlaywrightAPIResponse = z.infer<typeof PlaywrightAPIResponseSchema>;
|
|
1952
|
-
/**
|
|
1953
|
-
* Serialized console message for RPC
|
|
1954
|
-
* @see https://playwright.dev/docs/api/class-consolemessage
|
|
1955
|
-
*/
|
|
1956
|
-
export declare const PlaywrightConsoleMessageSchema: z.ZodObject<{
|
|
1957
|
-
type: z.ZodEnum<{
|
|
1958
|
-
error: "error";
|
|
1959
|
-
warning: "warning";
|
|
1960
|
-
log: "log";
|
|
1961
|
-
info: "info";
|
|
1962
|
-
debug: "debug";
|
|
1963
|
-
profile: "profile";
|
|
1964
|
-
dir: "dir";
|
|
1965
|
-
count: "count";
|
|
1966
|
-
dirxml: "dirxml";
|
|
1967
|
-
table: "table";
|
|
1968
|
-
trace: "trace";
|
|
1969
|
-
clear: "clear";
|
|
1970
|
-
startGroup: "startGroup";
|
|
1971
|
-
startGroupCollapsed: "startGroupCollapsed";
|
|
1972
|
-
endGroup: "endGroup";
|
|
1973
|
-
assert: "assert";
|
|
1974
|
-
profileEnd: "profileEnd";
|
|
1975
|
-
timeEnd: "timeEnd";
|
|
1976
|
-
}>;
|
|
1977
|
-
text: z.ZodString;
|
|
1978
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
1979
|
-
url: z.ZodString;
|
|
1980
|
-
lineNumber: z.ZodNumber;
|
|
1981
|
-
columnNumber: z.ZodNumber;
|
|
1982
|
-
}, z.core.$strip>>;
|
|
1983
|
-
args: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
1984
|
-
}, z.core.$strip>;
|
|
1985
|
-
export type PlaywrightConsoleMessage = z.infer<typeof PlaywrightConsoleMessageSchema>;
|
|
1986
|
-
/**
|
|
1987
|
-
* WebSocket route handler function signature (serialized for RPC)
|
|
1988
|
-
* @see https://playwright.dev/docs/api/class-websocketroute
|
|
1989
|
-
*/
|
|
1990
|
-
export type PlaywrightWebSocketRoute = {
|
|
1991
|
-
/** Close the WebSocket connection */
|
|
1992
|
-
close: (options?: {
|
|
1993
|
-
code?: number;
|
|
1994
|
-
reason?: string;
|
|
1995
|
-
}) => Promise<void>;
|
|
1996
|
-
/** Connect to the server */
|
|
1997
|
-
connect: () => Promise<void>;
|
|
1998
|
-
/** Send data to the page */
|
|
1999
|
-
send: (message: string | ArrayBuffer) => void;
|
|
2000
|
-
/** Route messages from page to server */
|
|
2001
|
-
routeSend: (handler: (message: string | ArrayBuffer) => void) => void;
|
|
2002
|
-
/** Handle messages from server */
|
|
2003
|
-
onMessage: (handler: (message: string | ArrayBuffer) => void) => void;
|
|
2004
|
-
/** Handle close event */
|
|
2005
|
-
onClose: (handler: () => void) => void;
|
|
2006
|
-
/** The URL of the WebSocket */
|
|
2007
|
-
url: () => string;
|
|
2008
|
-
};
|