@appium/types 1.0.0-rc.1 → 1.0.1

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.
Files changed (61) hide show
  1. package/build/lib/capabilities.d.ts +1 -2
  2. package/build/lib/capabilities.d.ts.map +1 -1
  3. package/build/lib/{command.d.ts → command-maps.d.ts} +1 -1
  4. package/build/lib/command-maps.d.ts.map +1 -0
  5. package/build/lib/command-maps.js +4 -0
  6. package/build/lib/command-maps.js.map +1 -0
  7. package/build/lib/commands/appium.d.ts +100 -0
  8. package/build/lib/commands/appium.d.ts.map +1 -0
  9. package/build/lib/{command.js → commands/appium.js} +1 -2
  10. package/build/lib/commands/appium.js.map +1 -0
  11. package/build/lib/commands/basedriver.d.ts +370 -0
  12. package/build/lib/commands/basedriver.d.ts.map +1 -0
  13. package/build/lib/commands/basedriver.js +3 -0
  14. package/build/lib/commands/basedriver.js.map +1 -0
  15. package/build/lib/commands/index.d.ts +7 -0
  16. package/build/lib/commands/index.d.ts.map +1 -0
  17. package/build/lib/commands/index.js +23 -0
  18. package/build/lib/commands/index.js.map +1 -0
  19. package/build/lib/commands/jsonwp.d.ts +37 -0
  20. package/build/lib/commands/jsonwp.d.ts.map +1 -0
  21. package/build/lib/commands/jsonwp.js +3 -0
  22. package/build/lib/commands/jsonwp.js.map +1 -0
  23. package/build/lib/commands/mjsonwp.d.ts +65 -0
  24. package/build/lib/commands/mjsonwp.d.ts.map +1 -0
  25. package/build/lib/commands/mjsonwp.js +3 -0
  26. package/build/lib/commands/mjsonwp.js.map +1 -0
  27. package/build/lib/commands/other-protocols.d.ts +85 -0
  28. package/build/lib/commands/other-protocols.d.ts.map +1 -0
  29. package/build/lib/commands/other-protocols.js +3 -0
  30. package/build/lib/commands/other-protocols.js.map +1 -0
  31. package/build/lib/commands/webdriver.d.ts +418 -0
  32. package/build/lib/commands/webdriver.d.ts.map +1 -0
  33. package/build/lib/commands/webdriver.js +3 -0
  34. package/build/lib/commands/webdriver.js.map +1 -0
  35. package/build/lib/constraints.d.ts +19 -0
  36. package/build/lib/constraints.d.ts.map +1 -1
  37. package/build/lib/constraints.js.map +1 -1
  38. package/build/lib/driver.d.ts +9 -1056
  39. package/build/lib/driver.d.ts.map +1 -1
  40. package/build/lib/index.d.ts +2 -1
  41. package/build/lib/index.d.ts.map +1 -1
  42. package/build/lib/index.js +2 -1
  43. package/build/lib/index.js.map +1 -1
  44. package/build/lib/plugin.d.ts +1 -1
  45. package/build/lib/plugin.d.ts.map +1 -1
  46. package/lib/capabilities.ts +1 -2
  47. package/lib/commands/appium.ts +115 -0
  48. package/lib/commands/basedriver.ts +476 -0
  49. package/lib/commands/index.ts +6 -0
  50. package/lib/commands/jsonwp.ts +41 -0
  51. package/lib/commands/mjsonwp.ts +71 -0
  52. package/lib/commands/other-protocols.ts +113 -0
  53. package/lib/commands/webdriver.ts +475 -0
  54. package/lib/constraints.ts +18 -1
  55. package/lib/driver.ts +25 -1279
  56. package/lib/index.ts +2 -1
  57. package/lib/plugin.ts +1 -1
  58. package/package.json +6 -7
  59. package/build/lib/command.d.ts.map +0 -1
  60. package/build/lib/command.js.map +0 -1
  61. /package/lib/{command.ts → command-maps.ts} +0 -0
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Interface for all MJSONWP commands proxied to the external driver.
3
+ */
4
+ export interface IMJSONWPCommands<Ctx = string> {
5
+ /**
6
+ * Get the currently active context
7
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts}
8
+ *
9
+ * @returns The context name
10
+ */
11
+ getCurrentContext?(): Promise<Ctx | null>;
12
+ /**
13
+ * Switch to a context by name
14
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts}
15
+ *
16
+ * @param name - the context name
17
+ */
18
+ setContext?(name: string, ...args: any[]): Promise<void>;
19
+ /**
20
+ * Get the list of available contexts
21
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts}
22
+ *
23
+ * @returns The list of context names
24
+ */
25
+ getContexts?(): Promise<Ctx[]>;
26
+ /**
27
+ * Get the network connection state of a device
28
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes}
29
+ *
30
+ * @returns A number which is a bitmask representing categories like Data, Wifi, and Airplane
31
+ * mode status
32
+ */
33
+ getNetworkConnection?(): Promise<number>;
34
+ /**
35
+ * Set the network connection of the device
36
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes}
37
+ *
38
+ * @param type - the bitmask representing network state
39
+ * @returns A number which is a bitmask representing categories like Data, Wifi, and Airplane
40
+ * mode status
41
+ */
42
+ setNetworkConnection?(type: number): Promise<number>;
43
+ /**
44
+ * Get the current rotation state of the device
45
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-rotation}
46
+ *
47
+ * @returns The Rotation object consisting of x, y, and z rotation values (0 <= n <= 360)
48
+ */
49
+ getRotation?(): Promise<Rotation>;
50
+ /**
51
+ * Set the device rotation state
52
+ * @see {@link https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-rotation}
53
+ *
54
+ * @param x - the degree to which the device is rotated around the x axis (0 <= x <= 360)
55
+ * @param y - the degree to which the device is rotated around the y axis (0 <= y <= 360)
56
+ * @param z - the degree to which the device is rotated around the z axis (0 <= z <= 360)
57
+ */
58
+ setRotation?(x: number, y: number, z: number): Promise<void>;
59
+ }
60
+ export interface Rotation {
61
+ x: number;
62
+ y: number;
63
+ z: number;
64
+ }
65
+ //# sourceMappingURL=mjsonwp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mjsonwp.d.ts","sourceRoot":"","sources":["../../../lib/commands/mjsonwp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,GAAG,GAAG,MAAM;IAC5C;;;;;OAKG;IACH,iBAAiB,CAAC,IAAI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;IAE1C;;;;;OAKG;IACH,UAAU,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;OAKG;IACH,WAAW,CAAC,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAE/B;;;;;;OAMG;IACH,oBAAoB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzC;;;;;;;OAOG;IACH,oBAAoB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAErD;;;;;OAKG;IACH,WAAW,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mjsonwp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mjsonwp.js","sourceRoot":"","sources":["../../../lib/commands/mjsonwp.ts"],"names":[],"mappings":""}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Interface for all WebDriver extension commands from other protocols proxied to the external driver.
3
+ */
4
+ export interface IOtherProtocolCommands {
5
+ /**
6
+ * Execute a devtools command
7
+ *
8
+ * @param cmd - the command
9
+ * @param params - any command-specific command parameters
10
+ *
11
+ * @returns The result of the command execution
12
+ */
13
+ executeCdp?(cmd: string, params: unknown): Promise<unknown>;
14
+ /**
15
+ * Add a virtual authenticator to a browser
16
+ * @see {@link https://www.w3.org/TR/webauthn-2/#sctn-automation-add-virtual-authenticator}
17
+ *
18
+ * @param protocol - the protocol
19
+ * @param transport - a valid AuthenticatorTransport value
20
+ * @param hasResidentKey - whether there is a resident key
21
+ * @param hasUserVerification - whether the authenticator has user verification
22
+ * @param isUserConsenting - whether it is a user consenting authenticator
23
+ * @param isUserVerified - whether the user is verified
24
+ *
25
+ * @returns The authenticator ID
26
+ */
27
+ addVirtualAuthenticator?(protocol: 'ctap/u2f' | 'ctap2' | 'ctap2_1', transport: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean): Promise<string>;
28
+ /**
29
+ * Remove a virtual authenticator
30
+ * @see {@link https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-virtual-authenticator}
31
+ *
32
+ * @param authenticatorId - the ID returned in the call to add the authenticator
33
+ */
34
+ removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
35
+ /**
36
+ * Inject a public key credential source into a virtual authenticator
37
+ * @see {@link https://www.w3.org/TR/webauthn-2/#sctn-automation-add-credential}
38
+ *
39
+ * @param credentialId - the base64 encoded credential ID
40
+ * @param isResidentCredential - if true, a client-side credential, otherwise a server-side
41
+ * credential
42
+ * @param rpId - the relying party ID the credential is scoped to
43
+ * @param privateKey - the base64 encoded private key package
44
+ * @param userHandle - the base64 encoded user handle
45
+ * @param signCount - the initial value for a signature counter
46
+ */
47
+ addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
48
+ /**
49
+ * Get the list of public key credential sources
50
+ * @see {@link https://www.w3.org/TR/webauthn-2/#sctn-automation-get-credentials}
51
+ *
52
+ * @returns The list of Credentials
53
+ */
54
+ getAuthCredential?(): Promise<Credential[]>;
55
+ /**
56
+ * Remove all auth credentials
57
+ * @see {@link https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-all-credentials}
58
+ */
59
+ removeAllAuthCredentials?(): Promise<void>;
60
+ /**
61
+ * Remove a specific auth credential
62
+ *
63
+ * @param credentialId - the credential ID
64
+ * @param authenticatorId - the authenticator ID
65
+ */
66
+ removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
67
+ /**
68
+ * Set the isUserVerified property of an authenticator
69
+ * @see {@link https://www.w3.org/TR/webauthn-2/#sctn-automation-set-user-verified}
70
+ *
71
+ * @param isUserVerified - the value of the isUserVerified property
72
+ * @param authenticatorId - the authenticator id
73
+ */
74
+ setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
75
+ }
76
+ export interface Credential {
77
+ credentialId: string;
78
+ isResidentCredential: boolean;
79
+ rpId: string;
80
+ privateKey: string;
81
+ userHandle?: string;
82
+ signCount: number;
83
+ largeBlob?: string;
84
+ }
85
+ //# sourceMappingURL=other-protocols.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other-protocols.d.ts","sourceRoot":"","sources":["../../../lib/commands/other-protocols.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IAGrC;;;;;;;OAOG;IACH,UAAU,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAI5D;;;;;;;;;;;;OAYG;IACH,uBAAuB,CAAC,CACtB,QAAQ,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,EAC1C,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,OAAO,EACxB,mBAAmB,CAAC,EAAE,OAAO,EAC7B,gBAAgB,CAAC,EAAE,OAAO,EAC1B,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB;;;;;OAKG;IACH,0BAA0B,CAAC,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,CAChB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,OAAO,EAC7B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;OAKG;IACH,iBAAiB,CAAC,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAE5C;;;OAGG;IACH,wBAAwB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3C;;;;;OAKG;IACH,oBAAoB,CAAC,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpF;;;;;;OAMG;IACH,mBAAmB,CAAC,CAAC,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvF;AAID,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=other-protocols.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other-protocols.js","sourceRoot":"","sources":["../../../lib/commands/other-protocols.ts"],"names":[],"mappings":""}
@@ -0,0 +1,418 @@
1
+ import type { ActionSequence } from '../action';
2
+ import type { Element } from '../util';
3
+ /**
4
+ * Interface for all standard WebDriver Classic commands proxied to the external driver.
5
+ */
6
+ export interface IWDClassicCommands {
7
+ /**
8
+ * Navigate to a given url
9
+ * @see {@link https://w3c.github.io/webdriver/#navigate-to}
10
+ *
11
+ * @param url - the url
12
+ */
13
+ setUrl?(url: string): Promise<void>;
14
+ /**
15
+ * Get the current url
16
+ * @see {@link https://w3c.github.io/webdriver/#get-current-url}
17
+ *
18
+ * @returns The url
19
+ */
20
+ getUrl?(): Promise<string>;
21
+ /**
22
+ * Navigate back in the page history
23
+ * @see {@link https://w3c.github.io/webdriver/#back}
24
+ */
25
+ back?(): Promise<void>;
26
+ /**
27
+ * Navigate forward in the page history
28
+ * @see {@link https://w3c.github.io/webdriver/#forward}
29
+ */
30
+ forward?(): Promise<void>;
31
+ /**
32
+ * Refresh the page
33
+ * @see {@link https://w3c.github.io/webdriver/#refresh}
34
+ */
35
+ refresh?(): Promise<void>;
36
+ /**
37
+ * Get the current page title
38
+ * @see {@link https://w3c.github.io/webdriver/#get-title}
39
+ *
40
+ * @returns The title
41
+ *
42
+ * @example
43
+ * ```js
44
+ * await driver.getTitle()
45
+ * ```
46
+ * ```py
47
+ * driver.title
48
+ * ```
49
+ * ```java
50
+ * driver.getTitle();
51
+ * ```
52
+ */
53
+ title?(): Promise<string>;
54
+ /**
55
+ * Get the handle (id) associated with the current browser window
56
+ * @see {@link https://w3c.github.io/webdriver/#get-window-handle}
57
+ *
58
+ * @returns The handle string
59
+ */
60
+ getWindowHandle?(): Promise<string>;
61
+ /**
62
+ * Close the current browsing context (window)
63
+ * @see {@link https://w3c.github.io/webdriver/#close-window}
64
+ *
65
+ * @returns An array of window handles representing currently-open windows
66
+ */
67
+ closeWindow?(): Promise<string[]>;
68
+ /**
69
+ * Switch to a specified window
70
+ * @see {@link https://w3c.github.io/webdriver/#switch-to-window}
71
+ *
72
+ * @param handle - the window handle of the window to make active
73
+ */
74
+ setWindow?(handle: string): Promise<void>;
75
+ /**
76
+ * Get a set of handles representing open browser windows
77
+ * @see {@link https://w3c.github.io/webdriver/#get-window-handles}
78
+ *
79
+ * @returns An array of window handles representing currently-open windows
80
+ */
81
+ getWindowHandles?(): Promise<string[]>;
82
+ /**
83
+ * Create a new browser window
84
+ * @see {@link https://w3c.github.io/webdriver/#new-window}
85
+ *
86
+ * @param type - a hint to the driver whether to create a "tab" or "window"
87
+ *
88
+ * @returns An object containing the handle of the newly created window and its type
89
+ */
90
+ createNewWindow?(type?: NewWindowType): Promise<NewWindow>;
91
+ /**
92
+ * Switch the current browsing context to a frame
93
+ * @see {@link https://w3c.github.io/webdriver/#switch-to-frame}
94
+ *
95
+ * @param id - the frame id, index, or `null` (indicating the top-level context)
96
+ */
97
+ setFrame?(id: null | number | string): Promise<void>;
98
+ /**
99
+ * Set the current browsing context to the parent of the current context
100
+ * @see {@link https://w3c.github.io/webdriver/#switch-to-parent-frame}
101
+ */
102
+ switchToParentFrame?(): Promise<void>;
103
+ /**
104
+ * Get the size and position of the current window
105
+ * @see {@link https://w3c.github.io/webdriver/#get-window-rect}
106
+ *
107
+ * @returns A `Rect` JSON object with x, y, width, and height properties
108
+ */
109
+ getWindowRect?(): Promise<Rect>;
110
+ /**
111
+ * Set the current window's size and position
112
+ * @see {@link https://w3c.github.io/webdriver/#set-window-rect}
113
+ *
114
+ * @param x - the screen coordinate for the new left edge of the window
115
+ * @param y - the screen coordinate for the new top edge of the window
116
+ * @param width - the width in pixels to resize the window to
117
+ * @param height - the height in pixels to resize the window to
118
+ *
119
+ * @returns The actual `Rect` of the window after running the command
120
+ */
121
+ setWindowRect?(x: number, y: number, width: number, height: number): Promise<Rect>;
122
+ /**
123
+ * Run the window-manager specific 'maximize' operation on the current window
124
+ * @see {@link https://w3c.github.io/webdriver/#maximize-window}
125
+ *
126
+ * @returns The actual `Rect` of the window after running the command
127
+ */
128
+ maximizeWindow?(): Promise<Rect>;
129
+ /**
130
+ * Run the window-manager specific 'minimize' operation on the current window
131
+ * @see {@link https://w3c.github.io/webdriver/#minimize-window}
132
+ *
133
+ * @returns The actual `Rect` of the window after running the command
134
+ */
135
+ minimizeWindow?(): Promise<Rect>;
136
+ /**
137
+ * Put the current window into full screen mode
138
+ * @see {@link https://w3c.github.io/webdriver/#fullscreen-window}
139
+ *
140
+ * @returns The actual `Rect` of the window after running the command
141
+ */
142
+ fullScreenWindow?(): Promise<Rect>;
143
+ /**
144
+ * Get the active element
145
+ * @see {@link https://w3c.github.io/webdriver/#get-active-element}
146
+ *
147
+ * @returns The JSON object encapsulating the active element reference
148
+ */
149
+ active?(): Promise<Element>;
150
+ /**
151
+ * Get the shadow root of an element
152
+ * @see {@link https://w3c.github.io/webdriver/#get-element-shadow-root}
153
+ *
154
+ * @param elementId - the id of the element to retrieve the shadow root for
155
+ *
156
+ * @returns The shadow root for an element, as an element
157
+ */
158
+ elementShadowRoot?(elementId: string): Promise<Element>;
159
+ /**
160
+ * Determine if the reference element is selected or not
161
+ * @see {@link https://w3c.github.io/webdriver/#is-element-selected}
162
+ *
163
+ * @param elementId - the id of the element
164
+ *
165
+ * @returns True if the element is selected, False otherwise
166
+ */
167
+ elementSelected?(elementId: string): Promise<boolean>;
168
+ /**
169
+ * Retrieve the value of an element's attribute
170
+ * @see {@link https://w3c.github.io/webdriver/#get-element-attribute}
171
+ *
172
+ * @param name - the attribute name
173
+ * @param elementId - the id of the element
174
+ *
175
+ * @returns The attribute value
176
+ */
177
+ getAttribute?(name: string, elementId: string): Promise<string | null>;
178
+ /**
179
+ * Retrieve the value of a named property of an element's JS object
180
+ * @see {@link https://w3c.github.io/webdriver/#get-element-property}
181
+ *
182
+ * @param name - the object property name
183
+ * @param elementId - the id of the element
184
+ *
185
+ * @returns The property value
186
+ */
187
+ getProperty?(name: string, elementId: string): Promise<string | null>;
188
+ /**
189
+ * Retrieve the value of a CSS property of an element
190
+ * @see {@link https://w3c.github.io/webdriver/#get-element-css-value}
191
+ *
192
+ * @param name - the CSS property name
193
+ * @param elementId - the id of the element
194
+ *
195
+ * @returns The property value
196
+ */
197
+ getCssProperty?(name: string, elementId: string): Promise<string>;
198
+ /**
199
+ * Get the text of an element as rendered
200
+ * @see {@link https://w3c.github.io/webdriver/#get-element-text}
201
+ *
202
+ * @param elementId - the id of the element
203
+ *
204
+ * @returns The text rendered for the element
205
+ */
206
+ getText?(elementId: string): Promise<string>;
207
+ /**
208
+ * Get the tag name of an element
209
+ * @see {@link https://w3c.github.io/webdriver/#get-element-tag-name}
210
+ *
211
+ * @param elementId - the id of the element
212
+ *
213
+ * @returns The tag name
214
+ */
215
+ getName?(elementId: string): Promise<string>;
216
+ /**
217
+ * Get the dimensions and position of an element
218
+ * @see {@link https://w3c.github.io/webdriver/#get-element-rect}
219
+ *
220
+ * @param elementId - the id of the element
221
+ *
222
+ * @returns The Rect object containing x, y, width, and height properties
223
+ */
224
+ getElementRect?(elementId: string): Promise<Rect>;
225
+ /**
226
+ * Determine whether an element is enabled
227
+ * @see {@link https://w3c.github.io/webdriver/#is-element-enabled}
228
+ *
229
+ * @param elementId - the id of the element
230
+ *
231
+ * @returns True if the element is enabled, False otherwise
232
+ */
233
+ elementEnabled?(elementId: string): Promise<boolean>;
234
+ /**
235
+ * Get the WAI-ARIA role of an element
236
+ * @see {@link https://w3c.github.io/webdriver/#get-computed-role}
237
+ *
238
+ * @param elementId - the id of the element
239
+ *
240
+ * @returns The role
241
+ */
242
+ getComputedRole?(elementId: string): Promise<string | null>;
243
+ /**
244
+ * Get the accessible name/label of an element
245
+ * @see {@link https://w3c.github.io/webdriver/#get-computed-label}
246
+ *
247
+ * @param elementId - the id of the element
248
+ *
249
+ * @returns The accessible name
250
+ */
251
+ getComputedLabel?(elementId: string): Promise<string | null>;
252
+ /**
253
+ * Determine whether an element is displayed
254
+ * @see {@link https://w3c.github.io/webdriver/#element-displayedness}
255
+ *
256
+ * @param elementId - the id of the element
257
+ *
258
+ * @returns True if any part of the element is rendered within the viewport, False otherwise
259
+ */
260
+ elementDisplayed?(elementId: string): Promise<boolean>;
261
+ /**
262
+ * Click/tap an element
263
+ * @see {@link https://w3c.github.io/webdriver/#element-click}
264
+ *
265
+ * @param elementId - the id of the element
266
+ */
267
+ click?(elementId: string): Promise<void>;
268
+ /**
269
+ * Clear the text/value of an editable element
270
+ * @see {@link https://w3c.github.io/webdriver/#element-clear}
271
+ *
272
+ * @param elementId - the id of the element
273
+ */
274
+ clear?(elementId: string): Promise<void>;
275
+ /**
276
+ * Send keystrokes to an element (or otherwise set its value)
277
+ * @see {@link https://w3c.github.io/webdriver/#element-send-keys}
278
+ *
279
+ * @param text - the text to send to the element
280
+ * @param elementId - the id of the element
281
+ */
282
+ setValue?(text: string, elementId: string): Promise<void>;
283
+ /**
284
+ * Execute JavaScript (or some other kind of script) in the browser/app context
285
+ * @see {@link https://w3c.github.io/webdriver/#execute-script}
286
+ *
287
+ * @param script - the string to be evaluated as the script, which will be made the body of an
288
+ * anonymous function in the case of JS
289
+ * @param args - the list of arguments to be applied to the script as a function
290
+ *
291
+ * @returns The return value of the script execution
292
+ */
293
+ execute?(script: string, args: unknown[]): Promise<unknown>;
294
+ /**
295
+ * Execute JavaScript (or some other kind of script) in the browser/app context, asynchronously
296
+ * @see {@link https://w3c.github.io/webdriver/#execute-async-script}
297
+ *
298
+ * @param script - the string to be evaluated as the script, which will be made the body of an
299
+ * anonymous function in the case of JS
300
+ * @param args - the list of arguments to be applied to the script as a function
301
+ *
302
+ * @returns The promise resolution of the return value of the script execution (or an error
303
+ * object if the promise is rejected)
304
+ */
305
+ executeAsync?(script: string, args: unknown[]): Promise<unknown>;
306
+ /**
307
+ * Get all cookies known to the browsing context
308
+ * @see {@link https://w3c.github.io/webdriver/#get-all-cookies}
309
+ *
310
+ * @returns A list of serialized cookies
311
+ */
312
+ getCookies?(): Promise<Cookie[]>;
313
+ /**
314
+ * Get a cookie by name
315
+ * @see {@link https://w3c.github.io/webdriver/#get-named-cookie}
316
+ *
317
+ * @param name - the name of the cookie
318
+ *
319
+ * @returns A serialized cookie
320
+ */
321
+ getCookie?(name: string): Promise<Cookie>;
322
+ /**
323
+ * Add a cookie to the browsing context
324
+ * @see {@link https://w3c.github.io/webdriver/#add-cookie}
325
+ *
326
+ * @param cookie - the cookie data including properties like name, value, path, domain,
327
+ * secure, httpOnly, expiry, and samesite
328
+ */
329
+ setCookie?(cookie: Cookie): Promise<void>;
330
+ /**
331
+ * Delete a named cookie
332
+ * @see {@link https://w3c.github.io/webdriver/#delete-cookie}
333
+ *
334
+ * @param name - the name of the cookie to delete
335
+ */
336
+ deleteCookie?(name: string): Promise<void>;
337
+ /**
338
+ * Delete all cookies
339
+ * @see {@link https://w3c.github.io/webdriver/#delete-all-cookies}
340
+ */
341
+ deleteCookies?(): Promise<void>;
342
+ /**
343
+ * Perform touch or keyboard actions
344
+ * @see {@link https://w3c.github.io/webdriver/#perform-actions}
345
+ *
346
+ * @param actions - the action sequence
347
+ */
348
+ performActions?(actions: ActionSequence[]): Promise<void>;
349
+ /**
350
+ * Release all keys or buttons that are currently pressed
351
+ * @see {@link https://w3c.github.io/webdriver/#release-actions}
352
+ */
353
+ releaseActions?(): Promise<void>;
354
+ /**
355
+ * Dismiss a simple dialog/alert
356
+ * @see {@link https://w3c.github.io/webdriver/#dismiss-alert}
357
+ */
358
+ postDismissAlert?(): Promise<void>;
359
+ /**
360
+ * Accept a simple dialog/alert
361
+ * @see {@link https://w3c.github.io/webdriver/#accept-alert}
362
+ */
363
+ postAcceptAlert?(): Promise<void>;
364
+ /**
365
+ * Get the text of the displayed alert
366
+ * @see {@link https://w3c.github.io/webdriver/#get-alert-text}
367
+ *
368
+ * @returns The text of the alert
369
+ */
370
+ getAlertText?(): Promise<string | null>;
371
+ /**
372
+ * Set the text field of an alert prompt
373
+ * @see {@link https://w3c.github.io/webdriver/#send-alert-text}
374
+ *
375
+ * @param text - the text to send to the prompt
376
+ */
377
+ setAlertText?(text: string): Promise<void>;
378
+ /**
379
+ * Get a screenshot of the current document as rendered
380
+ * @see {@link https://w3c.github.io/webdriver/#take-screenshot}
381
+ *
382
+ * @returns A base64-encoded string representing the PNG image data
383
+ */
384
+ getScreenshot?(): Promise<string>;
385
+ /**
386
+ * Get an image of a single element as rendered on screen
387
+ * @see {@link https://w3c.github.io/webdriver/#take-element-screenshot}
388
+ *
389
+ * @param elementId - the id of the element
390
+ *
391
+ * @returns A base64-encoded string representing the PNG image data for the element rect
392
+ */
393
+ getElementScreenshot?(elementId: string): Promise<string>;
394
+ }
395
+ export type NewWindowType = 'tab' | 'window';
396
+ export interface NewWindow {
397
+ handle: string;
398
+ type: NewWindowType;
399
+ }
400
+ export interface Rect {
401
+ x: number;
402
+ y: number;
403
+ width: number;
404
+ height: number;
405
+ }
406
+ export type Size = Pick<Rect, 'width' | 'height'>;
407
+ export type Position = Pick<Rect, 'x' | 'y'>;
408
+ export interface Cookie {
409
+ name: string;
410
+ value: string;
411
+ path?: string;
412
+ domain?: string;
413
+ secure?: boolean;
414
+ httpOnly?: boolean;
415
+ expiry?: number;
416
+ sameSite?: 'Lax' | 'Strict';
417
+ }
418
+ //# sourceMappingURL=webdriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webdriver.d.ts","sourceRoot":"","sources":["../../../lib/commands/webdriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3B;;;OAGG;IACH,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,IAAI,OAAO,CAAC,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 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=webdriver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webdriver.js","sourceRoot":"","sources":["../../../lib/commands/webdriver.ts"],"names":[],"mappings":""}
@@ -1,3 +1,22 @@
1
+ /**
2
+ * A collection of constraints describing the allowed capabilities for a driver.
3
+ */
4
+ export type Constraints = {
5
+ readonly [name: string]: Constraint;
6
+ };
7
+ export interface Constraint {
8
+ readonly presence?: boolean | Readonly<{
9
+ allowEmpty: boolean;
10
+ }>;
11
+ readonly isString?: boolean;
12
+ readonly isNumber?: boolean;
13
+ readonly isBoolean?: boolean;
14
+ readonly isObject?: boolean;
15
+ readonly isArray?: boolean;
16
+ readonly deprecated?: boolean;
17
+ readonly inclusion?: Readonly<[string, ...string[]]>;
18
+ readonly inclusionCaseInsensitive?: Readonly<[string, ...string[]]>;
19
+ }
1
20
  export declare const BASE_DESIRED_CAP_CONSTRAINTS: {
2
21
  readonly platformName: {
3
22
  readonly presence: true;
@@ -1 +1 @@
1
- {"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDT,CAAC;AAEjC,MAAM,MAAM,wBAAwB,GAAG,OAAO,4BAA4B,CAAC"}
1
+ {"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,QA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ACrC;IACD,WAAW,EAAE;QACX,SAAS,EAAE,IAAI;KAChB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,IAAI;KAChB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,IAAI;KAChB;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,IAAI;KACf;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;KACf;IACD,YAAY,EAAE;QACZ,SAAS,EAAE,IAAI;KAChB;IACD,4BAA4B,EAAE;QAC5B,SAAS,EAAE,IAAI;KAChB;CAC6B,CAAC"}
1
+ {"version":3,"file":"constraints.js","sourceRoot":"","sources":["../../lib/constraints.ts"],"names":[],"mappings":";;;AAmBa,QAAA,4BAA4B,GAAG;IAC1C,YAAY,EAAE;QACZ,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,QAAQ,EAAE,IAAI;KACf;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,IAAI;KACf;IACD,YAAY,EAAE;QACZ,SAAS,EAAE,IAAI;KAChB;IACD,iBAAiB,EAAE;QACjB,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,SAAS,EAAE,IAAI;KAChB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,SAAS,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;KACrC;IACD,WAAW,EAAE;QACX,SAAS,EAAE,IAAI;KAChB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,IAAI;KAChB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,IAAI;KAChB;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,IAAI;KACf;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;KACf;IACD,YAAY,EAAE;QACZ,SAAS,EAAE,IAAI;KAChB;IACD,4BAA4B,EAAE;QAC5B,SAAS,EAAE,IAAI;KAChB;CAC6B,CAAC"}