1 | /**
|
2 | * !!! PLEASE DO NOT EDIT THIS FILE !!!
|
3 | *
|
4 | * This source file, even though checked in, is auto-generated based on the
|
5 | * current development within the WebDriver Bidi spec. Any changes to this
|
6 | * file need to come from the specification. You can generate this file by calling
|
7 | *
|
8 | * ```
|
9 | * $ npm run generate:bidi
|
10 | * ```
|
11 | *
|
12 | * from the project root. You can find the scripts that generates this file in
|
13 | * ./scripts/bidi/**
|
14 | */
|
15 | import type * as local from './localTypes.js';
|
16 | import type * as remote from './remoteTypes.js';
|
17 | import { BidiCore } from './core.js';
|
18 | export declare class BidiHandler extends BidiCore {
|
19 | /**
|
20 | * WebDriver Bidi command to send command method "session.status" with parameters.
|
21 | * @url https://w3c.github.io/webdriver-bidi/#command-session-status
|
22 | * @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-session-status | command parameter}
|
23 | * @returns `Promise<local.SessionStatusResult>`
|
24 | **/
|
25 | sessionStatus(params: remote.EmptyParams): Promise<local.SessionStatusResult>;
|
26 | /**
|
27 | * WebDriver Bidi command to send command method "session.new" with parameters.
|
28 | * @url https://w3c.github.io/webdriver-bidi/#command-session-new
|
29 | * @param params `remote.SessionNewParameters` {@link https://w3c.github.io/webdriver-bidi/#command-session-new | command parameter}
|
30 | * @returns `Promise<local.SessionNewResult>`
|
31 | **/
|
32 | sessionNew(params: remote.SessionNewParameters): Promise<local.SessionNewResult>;
|
33 | /**
|
34 | * WebDriver Bidi command to send command method "session.end" with parameters.
|
35 | * @url https://w3c.github.io/webdriver-bidi/#command-session-end
|
36 | * @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-session-end | command parameter}
|
37 | * @returns `Promise<local.EmptyResult>`
|
38 | **/
|
39 | sessionEnd(params: remote.EmptyParams): Promise<local.EmptyResult>;
|
40 | /**
|
41 | * WebDriver Bidi command to send command method "session.subscribe" with parameters.
|
42 | * @url https://w3c.github.io/webdriver-bidi/#command-session-subscribe
|
43 | * @param params `remote.SessionSubscriptionRequest` {@link https://w3c.github.io/webdriver-bidi/#command-session-subscribe | command parameter}
|
44 | * @returns `Promise<local.EmptyResult>`
|
45 | **/
|
46 | sessionSubscribe(params: remote.SessionSubscriptionRequest): Promise<local.EmptyResult>;
|
47 | /**
|
48 | * WebDriver Bidi command to send command method "session.unsubscribe" with parameters.
|
49 | * @url https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe
|
50 | * @param params `remote.SessionSubscriptionRequest` {@link https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe | command parameter}
|
51 | * @returns `Promise<local.EmptyResult>`
|
52 | **/
|
53 | sessionUnsubscribe(params: remote.SessionSubscriptionRequest): Promise<local.EmptyResult>;
|
54 | /**
|
55 | * WebDriver Bidi command to send command method "browser.close" with parameters.
|
56 | * @url https://w3c.github.io/webdriver-bidi/#command-browser-close
|
57 | * @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-close | command parameter}
|
58 | * @returns `Promise<local.EmptyResult>`
|
59 | **/
|
60 | browserClose(params: remote.EmptyParams): Promise<local.EmptyResult>;
|
61 | /**
|
62 | * WebDriver Bidi command to send command method "browser.createUserContext" with parameters.
|
63 | * @url https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext
|
64 | * @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-createUserContext | command parameter}
|
65 | * @returns `Promise<local.BrowserCreateUserContextResult>`
|
66 | **/
|
67 | browserCreateUserContext(params: remote.EmptyParams): Promise<local.BrowserCreateUserContextResult>;
|
68 | /**
|
69 | * WebDriver Bidi command to send command method "browser.getUserContexts" with parameters.
|
70 | * @url https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts
|
71 | * @param params `remote.EmptyParams` {@link https://w3c.github.io/webdriver-bidi/#command-browser-getUserContexts | command parameter}
|
72 | * @returns `Promise<local.BrowserGetUserContextsResult>`
|
73 | **/
|
74 | browserGetUserContexts(params: remote.EmptyParams): Promise<local.BrowserGetUserContextsResult>;
|
75 | /**
|
76 | * WebDriver Bidi command to send command method "browser.removeUserContext" with parameters.
|
77 | * @url https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext
|
78 | * @param params `remote.BrowserRemoveUserContextParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browser-removeUserContext | command parameter}
|
79 | * @returns `Promise<local.EmptyResult>`
|
80 | **/
|
81 | browserRemoveUserContext(params: remote.BrowserRemoveUserContextParameters): Promise<local.EmptyResult>;
|
82 | /**
|
83 | * WebDriver Bidi command to send command method "browsingContext.activate" with parameters.
|
84 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate
|
85 | * @param params `remote.BrowsingContextActivateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate | command parameter}
|
86 | * @returns `Promise<local.EmptyResult>`
|
87 | **/
|
88 | browsingContextActivate(params: remote.BrowsingContextActivateParameters): Promise<local.EmptyResult>;
|
89 | /**
|
90 | * WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters.
|
91 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot
|
92 | * @param params `remote.BrowsingContextCaptureScreenshotParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot | command parameter}
|
93 | * @returns `Promise<local.BrowsingContextCaptureScreenshotResult>`
|
94 | **/
|
95 | browsingContextCaptureScreenshot(params: remote.BrowsingContextCaptureScreenshotParameters): Promise<local.BrowsingContextCaptureScreenshotResult>;
|
96 | /**
|
97 | * WebDriver Bidi command to send command method "browsingContext.close" with parameters.
|
98 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-close
|
99 | * @param params `remote.BrowsingContextCloseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-close | command parameter}
|
100 | * @returns `Promise<local.EmptyResult>`
|
101 | **/
|
102 | browsingContextClose(params: remote.BrowsingContextCloseParameters): Promise<local.EmptyResult>;
|
103 | /**
|
104 | * WebDriver Bidi command to send command method "browsingContext.create" with parameters.
|
105 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-create
|
106 | * @param params `remote.BrowsingContextCreateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-create | command parameter}
|
107 | * @returns `Promise<local.BrowsingContextCreateResult>`
|
108 | **/
|
109 | browsingContextCreate(params: remote.BrowsingContextCreateParameters): Promise<local.BrowsingContextCreateResult>;
|
110 | /**
|
111 | * WebDriver Bidi command to send command method "browsingContext.getTree" with parameters.
|
112 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree
|
113 | * @param params `remote.BrowsingContextGetTreeParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree | command parameter}
|
114 | * @returns `Promise<local.BrowsingContextGetTreeResult>`
|
115 | **/
|
116 | browsingContextGetTree(params: remote.BrowsingContextGetTreeParameters): Promise<local.BrowsingContextGetTreeResult>;
|
117 | /**
|
118 | * WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters.
|
119 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt
|
120 | * @param params `remote.BrowsingContextHandleUserPromptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt | command parameter}
|
121 | * @returns `Promise<local.EmptyResult>`
|
122 | **/
|
123 | browsingContextHandleUserPrompt(params: remote.BrowsingContextHandleUserPromptParameters): Promise<local.EmptyResult>;
|
124 | /**
|
125 | * WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters.
|
126 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes
|
127 | * @param params `remote.BrowsingContextLocateNodesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes | command parameter}
|
128 | * @returns `Promise<local.BrowsingContextLocateNodesResult>`
|
129 | **/
|
130 | browsingContextLocateNodes(params: remote.BrowsingContextLocateNodesParameters): Promise<local.BrowsingContextLocateNodesResult>;
|
131 | /**
|
132 | * WebDriver Bidi command to send command method "browsingContext.navigate" with parameters.
|
133 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate
|
134 | * @param params `remote.BrowsingContextNavigateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate | command parameter}
|
135 | * @returns `Promise<local.BrowsingContextNavigateResult>`
|
136 | **/
|
137 | browsingContextNavigate(params: remote.BrowsingContextNavigateParameters): Promise<local.BrowsingContextNavigateResult>;
|
138 | /**
|
139 | * WebDriver Bidi command to send command method "browsingContext.print" with parameters.
|
140 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-print
|
141 | * @param params `remote.BrowsingContextPrintParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-print | command parameter}
|
142 | * @returns `Promise<local.BrowsingContextPrintResult>`
|
143 | **/
|
144 | browsingContextPrint(params: remote.BrowsingContextPrintParameters): Promise<local.BrowsingContextPrintResult>;
|
145 | /**
|
146 | * WebDriver Bidi command to send command method "browsingContext.reload" with parameters.
|
147 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload
|
148 | * @param params `remote.BrowsingContextReloadParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload | command parameter}
|
149 | * @returns `Promise<local.EmptyResult>`
|
150 | **/
|
151 | browsingContextReload(params: remote.BrowsingContextReloadParameters): Promise<local.EmptyResult>;
|
152 | /**
|
153 | * WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters.
|
154 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport
|
155 | * @param params `remote.BrowsingContextSetViewportParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport | command parameter}
|
156 | * @returns `Promise<local.EmptyResult>`
|
157 | **/
|
158 | browsingContextSetViewport(params: remote.BrowsingContextSetViewportParameters): Promise<local.EmptyResult>;
|
159 | /**
|
160 | * WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters.
|
161 | * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory
|
162 | * @param params `remote.BrowsingContextTraverseHistoryParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory | command parameter}
|
163 | * @returns `Promise<local.BrowsingContextTraverseHistoryResult>`
|
164 | **/
|
165 | browsingContextTraverseHistory(params: remote.BrowsingContextTraverseHistoryParameters): Promise<local.BrowsingContextTraverseHistoryResult>;
|
166 | /**
|
167 | * WebDriver Bidi command to send command method "network.addIntercept" with parameters.
|
168 | * @url https://w3c.github.io/webdriver-bidi/#command-network-addIntercept
|
169 | * @param params `remote.NetworkAddInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-addIntercept | command parameter}
|
170 | * @returns `Promise<local.NetworkAddInterceptResult>`
|
171 | **/
|
172 | networkAddIntercept(params: remote.NetworkAddInterceptParameters): Promise<local.NetworkAddInterceptResult>;
|
173 | /**
|
174 | * WebDriver Bidi command to send command method "network.continueRequest" with parameters.
|
175 | * @url https://w3c.github.io/webdriver-bidi/#command-network-continueRequest
|
176 | * @param params `remote.NetworkContinueRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueRequest | command parameter}
|
177 | * @returns `Promise<local.EmptyResult>`
|
178 | **/
|
179 | networkContinueRequest(params: remote.NetworkContinueRequestParameters): Promise<local.EmptyResult>;
|
180 | /**
|
181 | * WebDriver Bidi command to send command method "network.continueResponse" with parameters.
|
182 | * @url https://w3c.github.io/webdriver-bidi/#command-network-continueResponse
|
183 | * @param params `remote.NetworkContinueResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueResponse | command parameter}
|
184 | * @returns `Promise<local.EmptyResult>`
|
185 | **/
|
186 | networkContinueResponse(params: remote.NetworkContinueResponseParameters): Promise<local.EmptyResult>;
|
187 | /**
|
188 | * WebDriver Bidi command to send command method "network.continueWithAuth" with parameters.
|
189 | * @url https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth
|
190 | * @param params `remote.NetworkContinueWithAuthParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth | command parameter}
|
191 | * @returns `Promise<local.EmptyResult>`
|
192 | **/
|
193 | networkContinueWithAuth(params: remote.NetworkContinueWithAuthParameters): Promise<local.EmptyResult>;
|
194 | /**
|
195 | * WebDriver Bidi command to send command method "network.failRequest" with parameters.
|
196 | * @url https://w3c.github.io/webdriver-bidi/#command-network-failRequest
|
197 | * @param params `remote.NetworkFailRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-failRequest | command parameter}
|
198 | * @returns `Promise<local.EmptyResult>`
|
199 | **/
|
200 | networkFailRequest(params: remote.NetworkFailRequestParameters): Promise<local.EmptyResult>;
|
201 | /**
|
202 | * WebDriver Bidi command to send command method "network.provideResponse" with parameters.
|
203 | * @url https://w3c.github.io/webdriver-bidi/#command-network-provideResponse
|
204 | * @param params `remote.NetworkProvideResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-provideResponse | command parameter}
|
205 | * @returns `Promise<local.EmptyResult>`
|
206 | **/
|
207 | networkProvideResponse(params: remote.NetworkProvideResponseParameters): Promise<local.EmptyResult>;
|
208 | /**
|
209 | * WebDriver Bidi command to send command method "network.removeIntercept" with parameters.
|
210 | * @url https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept
|
211 | * @param params `remote.NetworkRemoveInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept | command parameter}
|
212 | * @returns `Promise<local.EmptyResult>`
|
213 | **/
|
214 | networkRemoveIntercept(params: remote.NetworkRemoveInterceptParameters): Promise<local.EmptyResult>;
|
215 | /**
|
216 | * WebDriver Bidi command to send command method "script.addPreloadScript" with parameters.
|
217 | * @url https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript
|
218 | * @param params `remote.ScriptAddPreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript | command parameter}
|
219 | * @returns `Promise<local.ScriptAddPreloadScriptResult>`
|
220 | **/
|
221 | scriptAddPreloadScript(params: remote.ScriptAddPreloadScriptParameters): Promise<local.ScriptAddPreloadScriptResult>;
|
222 | /**
|
223 | * WebDriver Bidi command to send command method "script.disown" with parameters.
|
224 | * @url https://w3c.github.io/webdriver-bidi/#command-script-disown
|
225 | * @param params `remote.ScriptDisownParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-disown | command parameter}
|
226 | * @returns `Promise<local.EmptyResult>`
|
227 | **/
|
228 | scriptDisown(params: remote.ScriptDisownParameters): Promise<local.EmptyResult>;
|
229 | /**
|
230 | * WebDriver Bidi command to send command method "script.callFunction" with parameters.
|
231 | * @url https://w3c.github.io/webdriver-bidi/#command-script-callFunction
|
232 | * @param params `remote.ScriptCallFunctionParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-callFunction | command parameter}
|
233 | * @returns `Promise<local.EmptyResult>`
|
234 | **/
|
235 | scriptCallFunction(params: remote.ScriptCallFunctionParameters): Promise<local.ScriptEvaluateResult>;
|
236 | /**
|
237 | * WebDriver Bidi command to send command method "script.evaluate" with parameters.
|
238 | * @url https://w3c.github.io/webdriver-bidi/#command-script-evaluate
|
239 | * @param params `remote.ScriptEvaluateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-evaluate | command parameter}
|
240 | * @returns `Promise<local.ScriptEvaluateResult>`
|
241 | **/
|
242 | scriptEvaluate(params: remote.ScriptEvaluateParameters): Promise<local.ScriptEvaluateResult>;
|
243 | /**
|
244 | * WebDriver Bidi command to send command method "script.getRealms" with parameters.
|
245 | * @url https://w3c.github.io/webdriver-bidi/#command-script-getRealms
|
246 | * @param params `remote.ScriptGetRealmsParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-getRealms | command parameter}
|
247 | * @returns `Promise<local.ScriptGetRealmsResult>`
|
248 | **/
|
249 | scriptGetRealms(params: remote.ScriptGetRealmsParameters): Promise<local.ScriptGetRealmsResult>;
|
250 | /**
|
251 | * WebDriver Bidi command to send command method "script.removePreloadScript" with parameters.
|
252 | * @url https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript
|
253 | * @param params `remote.ScriptRemovePreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript | command parameter}
|
254 | * @returns `Promise<local.EmptyResult>`
|
255 | **/
|
256 | scriptRemovePreloadScript(params: remote.ScriptRemovePreloadScriptParameters): Promise<local.EmptyResult>;
|
257 | /**
|
258 | * WebDriver Bidi command to send command method "storage.getCookies" with parameters.
|
259 | * @url https://w3c.github.io/webdriver-bidi/#command-storage-getCookies
|
260 | * @param params `remote.StorageGetCookiesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-getCookies | command parameter}
|
261 | * @returns `Promise<local.StorageGetCookiesResult>`
|
262 | **/
|
263 | storageGetCookies(params: remote.StorageGetCookiesParameters): Promise<local.StorageGetCookiesResult>;
|
264 | /**
|
265 | * WebDriver Bidi command to send command method "storage.setCookie" with parameters.
|
266 | * @url https://w3c.github.io/webdriver-bidi/#command-storage-setCookie
|
267 | * @param params `remote.StorageSetCookieParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-setCookie | command parameter}
|
268 | * @returns `Promise<local.StorageSetCookieResult>`
|
269 | **/
|
270 | storageSetCookie(params: remote.StorageSetCookieParameters): Promise<local.StorageSetCookieResult>;
|
271 | /**
|
272 | * WebDriver Bidi command to send command method "storage.deleteCookies" with parameters.
|
273 | * @url https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies
|
274 | * @param params `remote.StorageDeleteCookiesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-storage-deleteCookies | command parameter}
|
275 | * @returns `Promise<local.StorageDeleteCookiesResult>`
|
276 | **/
|
277 | storageDeleteCookies(params: remote.StorageDeleteCookiesParameters): Promise<local.StorageDeleteCookiesResult>;
|
278 | /**
|
279 | * WebDriver Bidi command to send command method "input.performActions" with parameters.
|
280 | * @url https://w3c.github.io/webdriver-bidi/#command-input-performActions
|
281 | * @param params `remote.InputPerformActionsParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-performActions | command parameter}
|
282 | * @returns `Promise<local.EmptyResult>`
|
283 | **/
|
284 | inputPerformActions(params: remote.InputPerformActionsParameters): Promise<local.EmptyResult>;
|
285 | /**
|
286 | * WebDriver Bidi command to send command method "input.releaseActions" with parameters.
|
287 | * @url https://w3c.github.io/webdriver-bidi/#command-input-releaseActions
|
288 | * @param params `remote.InputReleaseActionsParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-releaseActions | command parameter}
|
289 | * @returns `Promise<local.EmptyResult>`
|
290 | **/
|
291 | inputReleaseActions(params: remote.InputReleaseActionsParameters): Promise<local.EmptyResult>;
|
292 | /**
|
293 | * WebDriver Bidi command to send command method "input.setFiles" with parameters.
|
294 | * @url https://w3c.github.io/webdriver-bidi/#command-input-setFiles
|
295 | * @param params `remote.InputSetFilesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-setFiles | command parameter}
|
296 | * @returns `Promise<local.EmptyResult>`
|
297 | **/
|
298 | inputSetFiles(params: remote.InputSetFilesParameters): Promise<local.EmptyResult>;
|
299 | }
|
300 | //# sourceMappingURL=handler.d.ts.map |
\ | No newline at end of file |