UNPKG

17.3 kBTypeScriptView Raw
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 */
15import type * as local from './localTypes.js';
16import type * as remote from './remoteTypes.js';
17import { BidiCore } from './core.js';
18export 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 "browsingContext.activate" with parameters.
63 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate
64 * @param params `remote.BrowsingContextActivateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate | command parameter}
65 * @returns `Promise<local.EmptyResult>`
66 **/
67 browsingContextActivate(params: remote.BrowsingContextActivateParameters): Promise<local.EmptyResult>;
68 /**
69 * WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters.
70 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot
71 * @param params `remote.BrowsingContextCaptureScreenshotParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot | command parameter}
72 * @returns `Promise<local.BrowsingContextCaptureScreenshotResult>`
73 **/
74 browsingContextCaptureScreenshot(params: remote.BrowsingContextCaptureScreenshotParameters): Promise<local.BrowsingContextCaptureScreenshotResult>;
75 /**
76 * WebDriver Bidi command to send command method "browsingContext.close" with parameters.
77 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-close
78 * @param params `remote.BrowsingContextCloseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-close | command parameter}
79 * @returns `Promise<local.EmptyResult>`
80 **/
81 browsingContextClose(params: remote.BrowsingContextCloseParameters): Promise<local.EmptyResult>;
82 /**
83 * WebDriver Bidi command to send command method "browsingContext.create" with parameters.
84 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-create
85 * @param params `remote.BrowsingContextCreateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-create | command parameter}
86 * @returns `Promise<local.BrowsingContextCreateResult>`
87 **/
88 browsingContextCreate(params: remote.BrowsingContextCreateParameters): Promise<local.BrowsingContextCreateResult>;
89 /**
90 * WebDriver Bidi command to send command method "browsingContext.getTree" with parameters.
91 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree
92 * @param params `remote.BrowsingContextGetTreeParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree | command parameter}
93 * @returns `Promise<local.BrowsingContextGetTreeResult>`
94 **/
95 browsingContextGetTree(params: remote.BrowsingContextGetTreeParameters): Promise<local.BrowsingContextGetTreeResult>;
96 /**
97 * WebDriver Bidi command to send command method "browsingContext.handleUserPrompt" with parameters.
98 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt
99 * @param params `remote.BrowsingContextHandleUserPromptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt | command parameter}
100 * @returns `Promise<local.EmptyResult>`
101 **/
102 browsingContextHandleUserPrompt(params: remote.BrowsingContextHandleUserPromptParameters): Promise<local.EmptyResult>;
103 /**
104 * WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters.
105 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes
106 * @param params `remote.BrowsingContextLocateNodesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes | command parameter}
107 * @returns `Promise<local.BrowsingContextLocateNodesResult>`
108 **/
109 browsingContextLocateNodes(params: remote.BrowsingContextLocateNodesParameters): Promise<local.BrowsingContextLocateNodesResult>;
110 /**
111 * WebDriver Bidi command to send command method "browsingContext.navigate" with parameters.
112 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate
113 * @param params `remote.BrowsingContextNavigateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate | command parameter}
114 * @returns `Promise<local.BrowsingContextNavigateResult>`
115 **/
116 browsingContextNavigate(params: remote.BrowsingContextNavigateParameters): Promise<local.BrowsingContextNavigateResult>;
117 /**
118 * WebDriver Bidi command to send command method "browsingContext.print" with parameters.
119 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-print
120 * @param params `remote.BrowsingContextPrintParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-print | command parameter}
121 * @returns `Promise<local.BrowsingContextPrintResult>`
122 **/
123 browsingContextPrint(params: remote.BrowsingContextPrintParameters): Promise<local.BrowsingContextPrintResult>;
124 /**
125 * WebDriver Bidi command to send command method "browsingContext.reload" with parameters.
126 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload
127 * @param params `remote.BrowsingContextReloadParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload | command parameter}
128 * @returns `Promise<local.EmptyResult>`
129 **/
130 browsingContextReload(params: remote.BrowsingContextReloadParameters): Promise<local.EmptyResult>;
131 /**
132 * WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters.
133 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport
134 * @param params `remote.BrowsingContextSetViewportParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport | command parameter}
135 * @returns `Promise<local.EmptyResult>`
136 **/
137 browsingContextSetViewport(params: remote.BrowsingContextSetViewportParameters): Promise<local.EmptyResult>;
138 /**
139 * WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters.
140 * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory
141 * @param params `remote.BrowsingContextTraverseHistoryParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory | command parameter}
142 * @returns `Promise<local.BrowsingContextTraverseHistoryResult>`
143 **/
144 browsingContextTraverseHistory(params: remote.BrowsingContextTraverseHistoryParameters): Promise<local.BrowsingContextTraverseHistoryResult>;
145 /**
146 * WebDriver Bidi command to send command method "network.addIntercept" with parameters.
147 * @url https://w3c.github.io/webdriver-bidi/#command-network-addIntercept
148 * @param params `remote.NetworkAddInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-addIntercept | command parameter}
149 * @returns `Promise<local.NetworkAddInterceptResult>`
150 **/
151 networkAddIntercept(params: remote.NetworkAddInterceptParameters): Promise<local.NetworkAddInterceptResult>;
152 /**
153 * WebDriver Bidi command to send command method "network.continueRequest" with parameters.
154 * @url https://w3c.github.io/webdriver-bidi/#command-network-continueRequest
155 * @param params `remote.NetworkContinueRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueRequest | command parameter}
156 * @returns `Promise<local.EmptyResult>`
157 **/
158 networkContinueRequest(params: remote.NetworkContinueRequestParameters): Promise<local.EmptyResult>;
159 /**
160 * WebDriver Bidi command to send command method "network.continueResponse" with parameters.
161 * @url https://w3c.github.io/webdriver-bidi/#command-network-continueResponse
162 * @param params `remote.NetworkContinueResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueResponse | command parameter}
163 * @returns `Promise<local.EmptyResult>`
164 **/
165 networkContinueResponse(params: remote.NetworkContinueResponseParameters): Promise<local.EmptyResult>;
166 /**
167 * WebDriver Bidi command to send command method "network.continueWithAuth" with parameters.
168 * @url https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth
169 * @param params `remote.NetworkContinueWithAuthParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth | command parameter}
170 * @returns `Promise<local.EmptyResult>`
171 **/
172 networkContinueWithAuth(params: remote.NetworkContinueWithAuthParameters): Promise<local.EmptyResult>;
173 /**
174 * WebDriver Bidi command to send command method "network.failRequest" with parameters.
175 * @url https://w3c.github.io/webdriver-bidi/#command-network-failRequest
176 * @param params `remote.NetworkFailRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-failRequest | command parameter}
177 * @returns `Promise<local.EmptyResult>`
178 **/
179 networkFailRequest(params: remote.NetworkFailRequestParameters): Promise<local.EmptyResult>;
180 /**
181 * WebDriver Bidi command to send command method "network.provideResponse" with parameters.
182 * @url https://w3c.github.io/webdriver-bidi/#command-network-provideResponse
183 * @param params `remote.NetworkProvideResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-provideResponse | command parameter}
184 * @returns `Promise<local.EmptyResult>`
185 **/
186 networkProvideResponse(params: remote.NetworkProvideResponseParameters): Promise<local.EmptyResult>;
187 /**
188 * WebDriver Bidi command to send command method "network.removeIntercept" with parameters.
189 * @url https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept
190 * @param params `remote.NetworkRemoveInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept | command parameter}
191 * @returns `Promise<local.EmptyResult>`
192 **/
193 networkRemoveIntercept(params: remote.NetworkRemoveInterceptParameters): Promise<local.EmptyResult>;
194 /**
195 * WebDriver Bidi command to send command method "script.addPreloadScript" with parameters.
196 * @url https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript
197 * @param params `remote.ScriptAddPreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript | command parameter}
198 * @returns `Promise<local.ScriptAddPreloadScriptResult>`
199 **/
200 scriptAddPreloadScript(params: remote.ScriptAddPreloadScriptParameters): Promise<local.ScriptAddPreloadScriptResult>;
201 /**
202 * WebDriver Bidi command to send command method "script.disown" with parameters.
203 * @url https://w3c.github.io/webdriver-bidi/#command-script-disown
204 * @param params `remote.ScriptDisownParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-disown | command parameter}
205 * @returns `Promise<local.EmptyResult>`
206 **/
207 scriptDisown(params: remote.ScriptDisownParameters): Promise<local.EmptyResult>;
208 /**
209 * WebDriver Bidi command to send command method "script.callFunction" with parameters.
210 * @url https://w3c.github.io/webdriver-bidi/#command-script-callFunction
211 * @param params `remote.ScriptCallFunctionParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-callFunction | command parameter}
212 * @returns `Promise<local.EmptyResult>`
213 **/
214 scriptCallFunction(params: remote.ScriptCallFunctionParameters): Promise<local.EmptyResult>;
215 /**
216 * WebDriver Bidi command to send command method "script.evaluate" with parameters.
217 * @url https://w3c.github.io/webdriver-bidi/#command-script-evaluate
218 * @param params `remote.ScriptEvaluateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-evaluate | command parameter}
219 * @returns `Promise<local.ScriptEvaluateResult>`
220 **/
221 scriptEvaluate(params: remote.ScriptEvaluateParameters): Promise<local.ScriptEvaluateResult>;
222 /**
223 * WebDriver Bidi command to send command method "script.getRealms" with parameters.
224 * @url https://w3c.github.io/webdriver-bidi/#command-script-getRealms
225 * @param params `remote.ScriptGetRealmsParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-getRealms | command parameter}
226 * @returns `Promise<local.ScriptGetRealmsResult>`
227 **/
228 scriptGetRealms(params: remote.ScriptGetRealmsParameters): Promise<local.ScriptGetRealmsResult>;
229 /**
230 * WebDriver Bidi command to send command method "script.removePreloadScript" with parameters.
231 * @url https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript
232 * @param params `remote.ScriptRemovePreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript | command parameter}
233 * @returns `Promise<local.EmptyResult>`
234 **/
235 scriptRemovePreloadScript(params: remote.ScriptRemovePreloadScriptParameters): Promise<local.EmptyResult>;
236 /**
237 * WebDriver Bidi command to send command method "input.performActions" with parameters.
238 * @url https://w3c.github.io/webdriver-bidi/#command-input-performActions
239 * @param params `remote.InputPerformActionsParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-performActions | command parameter}
240 * @returns `Promise<local.EmptyResult>`
241 **/
242 inputPerformActions(params: remote.InputPerformActionsParameters): Promise<local.EmptyResult>;
243 /**
244 * WebDriver Bidi command to send command method "input.releaseActions" with parameters.
245 * @url https://w3c.github.io/webdriver-bidi/#command-input-releaseActions
246 * @param params `remote.InputReleaseActionsParameters` {@link https://w3c.github.io/webdriver-bidi/#command-input-releaseActions | command parameter}
247 * @returns `Promise<local.EmptyResult>`
248 **/
249 inputReleaseActions(params: remote.InputReleaseActionsParameters): Promise<local.EmptyResult>;
250}
251//# sourceMappingURL=handler.d.ts.map
\No newline at end of file