devtools-protocol 0.0.1279463 → 0.0.1280070
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.
@@ -117,18 +117,18 @@ export namespace ProtocolTestsProxyApi {
|
|
117
117
|
/**
|
118
118
|
* Does nothing.
|
119
119
|
*/
|
120
|
-
clearMessages(): Promise<void>;
|
120
|
+
clearMessages(): Promise<{id: number, result: void, sessionId: string}>;
|
121
121
|
|
122
122
|
/**
|
123
123
|
* Disables console domain, prevents further console messages from being reported to the client.
|
124
124
|
*/
|
125
|
-
disable(): Promise<void>;
|
125
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
126
126
|
|
127
127
|
/**
|
128
128
|
* Enables console domain, sends the messages collected so far to the client by means of the
|
129
129
|
* `messageAdded` notification.
|
130
130
|
*/
|
131
|
-
enable(): Promise<void>;
|
131
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
132
132
|
|
133
133
|
/**
|
134
134
|
* Issued when new console message is added.
|
@@ -143,36 +143,36 @@ export namespace ProtocolTestsProxyApi {
|
|
143
143
|
/**
|
144
144
|
* Continues execution until specific location is reached.
|
145
145
|
*/
|
146
|
-
continueToLocation(params: Protocol.Debugger.ContinueToLocationRequest): Promise<void>;
|
146
|
+
continueToLocation(params: Protocol.Debugger.ContinueToLocationRequest): Promise<{id: number, result: void, sessionId: string}>;
|
147
147
|
|
148
148
|
/**
|
149
149
|
* Disables debugger for given page.
|
150
150
|
*/
|
151
|
-
disable(): Promise<void>;
|
151
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
152
152
|
|
153
153
|
/**
|
154
154
|
* Enables debugger for the given page. Clients should not assume that the debugging has been
|
155
155
|
* enabled until the result for this command is received.
|
156
156
|
*/
|
157
|
-
enable(params: Protocol.Debugger.EnableRequest): Promise<Protocol.Debugger.EnableResponse>;
|
157
|
+
enable(params: Protocol.Debugger.EnableRequest): Promise<{id: number, result: Protocol.Debugger.EnableResponse, sessionId: string}>;
|
158
158
|
|
159
159
|
/**
|
160
160
|
* Evaluates expression on a given call frame.
|
161
161
|
*/
|
162
|
-
evaluateOnCallFrame(params: Protocol.Debugger.EvaluateOnCallFrameRequest): Promise<Protocol.Debugger.EvaluateOnCallFrameResponse>;
|
162
|
+
evaluateOnCallFrame(params: Protocol.Debugger.EvaluateOnCallFrameRequest): Promise<{id: number, result: Protocol.Debugger.EvaluateOnCallFrameResponse, sessionId: string}>;
|
163
163
|
|
164
164
|
/**
|
165
165
|
* Returns possible locations for breakpoint. scriptId in start and end range locations should be
|
166
166
|
* the same.
|
167
167
|
*/
|
168
|
-
getPossibleBreakpoints(params: Protocol.Debugger.GetPossibleBreakpointsRequest): Promise<Protocol.Debugger.GetPossibleBreakpointsResponse>;
|
168
|
+
getPossibleBreakpoints(params: Protocol.Debugger.GetPossibleBreakpointsRequest): Promise<{id: number, result: Protocol.Debugger.GetPossibleBreakpointsResponse, sessionId: string}>;
|
169
169
|
|
170
170
|
/**
|
171
171
|
* Returns source for the script with given id.
|
172
172
|
*/
|
173
|
-
getScriptSource(params: Protocol.Debugger.GetScriptSourceRequest): Promise<Protocol.Debugger.GetScriptSourceResponse>;
|
173
|
+
getScriptSource(params: Protocol.Debugger.GetScriptSourceRequest): Promise<{id: number, result: Protocol.Debugger.GetScriptSourceResponse, sessionId: string}>;
|
174
174
|
|
175
|
-
disassembleWasmModule(params: Protocol.Debugger.DisassembleWasmModuleRequest): Promise<Protocol.Debugger.DisassembleWasmModuleResponse>;
|
175
|
+
disassembleWasmModule(params: Protocol.Debugger.DisassembleWasmModuleRequest): Promise<{id: number, result: Protocol.Debugger.DisassembleWasmModuleResponse, sessionId: string}>;
|
176
176
|
|
177
177
|
/**
|
178
178
|
* Disassemble the next chunk of lines for the module corresponding to the
|
@@ -180,29 +180,29 @@ export namespace ProtocolTestsProxyApi {
|
|
180
180
|
* and return an empty chunk. Any subsequent calls for the now invalid stream
|
181
181
|
* will return errors.
|
182
182
|
*/
|
183
|
-
nextWasmDisassemblyChunk(params: Protocol.Debugger.NextWasmDisassemblyChunkRequest): Promise<Protocol.Debugger.NextWasmDisassemblyChunkResponse>;
|
183
|
+
nextWasmDisassemblyChunk(params: Protocol.Debugger.NextWasmDisassemblyChunkRequest): Promise<{id: number, result: Protocol.Debugger.NextWasmDisassemblyChunkResponse, sessionId: string}>;
|
184
184
|
|
185
185
|
/**
|
186
186
|
* This command is deprecated. Use getScriptSource instead.
|
187
187
|
*/
|
188
|
-
getWasmBytecode(params: Protocol.Debugger.GetWasmBytecodeRequest): Promise<Protocol.Debugger.GetWasmBytecodeResponse>;
|
188
|
+
getWasmBytecode(params: Protocol.Debugger.GetWasmBytecodeRequest): Promise<{id: number, result: Protocol.Debugger.GetWasmBytecodeResponse, sessionId: string}>;
|
189
189
|
|
190
190
|
/**
|
191
191
|
* Returns stack trace with given `stackTraceId`.
|
192
192
|
*/
|
193
|
-
getStackTrace(params: Protocol.Debugger.GetStackTraceRequest): Promise<Protocol.Debugger.GetStackTraceResponse>;
|
193
|
+
getStackTrace(params: Protocol.Debugger.GetStackTraceRequest): Promise<{id: number, result: Protocol.Debugger.GetStackTraceResponse, sessionId: string}>;
|
194
194
|
|
195
195
|
/**
|
196
196
|
* Stops on the next JavaScript statement.
|
197
197
|
*/
|
198
|
-
pause(): Promise<void>;
|
198
|
+
pause(): Promise<{id: number, result: void, sessionId: string}>;
|
199
199
|
|
200
|
-
pauseOnAsyncCall(params: Protocol.Debugger.PauseOnAsyncCallRequest): Promise<void>;
|
200
|
+
pauseOnAsyncCall(params: Protocol.Debugger.PauseOnAsyncCallRequest): Promise<{id: number, result: void, sessionId: string}>;
|
201
201
|
|
202
202
|
/**
|
203
203
|
* Removes JavaScript breakpoint.
|
204
204
|
*/
|
205
|
-
removeBreakpoint(params: Protocol.Debugger.RemoveBreakpointRequest): Promise<void>;
|
205
|
+
removeBreakpoint(params: Protocol.Debugger.RemoveBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
206
206
|
|
207
207
|
/**
|
208
208
|
* Restarts particular call frame from the beginning. The old, deprecated
|
@@ -219,29 +219,29 @@ export namespace ProtocolTestsProxyApi {
|
|
219
219
|
* Use the call frames from the `Debugger#paused` events instead, that fires
|
220
220
|
* once V8 pauses at the beginning of the restarted function.
|
221
221
|
*/
|
222
|
-
restartFrame(params: Protocol.Debugger.RestartFrameRequest): Promise<Protocol.Debugger.RestartFrameResponse>;
|
222
|
+
restartFrame(params: Protocol.Debugger.RestartFrameRequest): Promise<{id: number, result: Protocol.Debugger.RestartFrameResponse, sessionId: string}>;
|
223
223
|
|
224
224
|
/**
|
225
225
|
* Resumes JavaScript execution.
|
226
226
|
*/
|
227
|
-
resume(params: Protocol.Debugger.ResumeRequest): Promise<void>;
|
227
|
+
resume(params: Protocol.Debugger.ResumeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
228
228
|
|
229
229
|
/**
|
230
230
|
* Searches for given string in script content.
|
231
231
|
*/
|
232
|
-
searchInContent(params: Protocol.Debugger.SearchInContentRequest): Promise<Protocol.Debugger.SearchInContentResponse>;
|
232
|
+
searchInContent(params: Protocol.Debugger.SearchInContentRequest): Promise<{id: number, result: Protocol.Debugger.SearchInContentResponse, sessionId: string}>;
|
233
233
|
|
234
234
|
/**
|
235
235
|
* Enables or disables async call stacks tracking.
|
236
236
|
*/
|
237
|
-
setAsyncCallStackDepth(params: Protocol.Debugger.SetAsyncCallStackDepthRequest): Promise<void>;
|
237
|
+
setAsyncCallStackDepth(params: Protocol.Debugger.SetAsyncCallStackDepthRequest): Promise<{id: number, result: void, sessionId: string}>;
|
238
238
|
|
239
239
|
/**
|
240
240
|
* Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in
|
241
241
|
* scripts with url matching one of the patterns. VM will try to leave blackboxed script by
|
242
242
|
* performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
|
243
243
|
*/
|
244
|
-
setBlackboxPatterns(params: Protocol.Debugger.SetBlackboxPatternsRequest): Promise<void>;
|
244
|
+
setBlackboxPatterns(params: Protocol.Debugger.SetBlackboxPatternsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
245
245
|
|
246
246
|
/**
|
247
247
|
* Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted
|
@@ -249,17 +249,17 @@ export namespace ProtocolTestsProxyApi {
|
|
249
249
|
* Positions array contains positions where blackbox state is changed. First interval isn't
|
250
250
|
* blackboxed. Array should be sorted.
|
251
251
|
*/
|
252
|
-
setBlackboxedRanges(params: Protocol.Debugger.SetBlackboxedRangesRequest): Promise<void>;
|
252
|
+
setBlackboxedRanges(params: Protocol.Debugger.SetBlackboxedRangesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
253
253
|
|
254
254
|
/**
|
255
255
|
* Sets JavaScript breakpoint at a given location.
|
256
256
|
*/
|
257
|
-
setBreakpoint(params: Protocol.Debugger.SetBreakpointRequest): Promise<Protocol.Debugger.SetBreakpointResponse>;
|
257
|
+
setBreakpoint(params: Protocol.Debugger.SetBreakpointRequest): Promise<{id: number, result: Protocol.Debugger.SetBreakpointResponse, sessionId: string}>;
|
258
258
|
|
259
259
|
/**
|
260
260
|
* Sets instrumentation breakpoint.
|
261
261
|
*/
|
262
|
-
setInstrumentationBreakpoint(params: Protocol.Debugger.SetInstrumentationBreakpointRequest): Promise<Protocol.Debugger.SetInstrumentationBreakpointResponse>;
|
262
|
+
setInstrumentationBreakpoint(params: Protocol.Debugger.SetInstrumentationBreakpointRequest): Promise<{id: number, result: Protocol.Debugger.SetInstrumentationBreakpointResponse, sessionId: string}>;
|
263
263
|
|
264
264
|
/**
|
265
265
|
* Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this
|
@@ -267,30 +267,30 @@ export namespace ProtocolTestsProxyApi {
|
|
267
267
|
* `locations` property. Further matching script parsing will result in subsequent
|
268
268
|
* `breakpointResolved` events issued. This logical breakpoint will survive page reloads.
|
269
269
|
*/
|
270
|
-
setBreakpointByUrl(params: Protocol.Debugger.SetBreakpointByUrlRequest): Promise<Protocol.Debugger.SetBreakpointByUrlResponse>;
|
270
|
+
setBreakpointByUrl(params: Protocol.Debugger.SetBreakpointByUrlRequest): Promise<{id: number, result: Protocol.Debugger.SetBreakpointByUrlResponse, sessionId: string}>;
|
271
271
|
|
272
272
|
/**
|
273
273
|
* Sets JavaScript breakpoint before each call to the given function.
|
274
274
|
* If another function was created from the same source as a given one,
|
275
275
|
* calling it will also trigger the breakpoint.
|
276
276
|
*/
|
277
|
-
setBreakpointOnFunctionCall(params: Protocol.Debugger.SetBreakpointOnFunctionCallRequest): Promise<Protocol.Debugger.SetBreakpointOnFunctionCallResponse>;
|
277
|
+
setBreakpointOnFunctionCall(params: Protocol.Debugger.SetBreakpointOnFunctionCallRequest): Promise<{id: number, result: Protocol.Debugger.SetBreakpointOnFunctionCallResponse, sessionId: string}>;
|
278
278
|
|
279
279
|
/**
|
280
280
|
* Activates / deactivates all breakpoints on the page.
|
281
281
|
*/
|
282
|
-
setBreakpointsActive(params: Protocol.Debugger.SetBreakpointsActiveRequest): Promise<void>;
|
282
|
+
setBreakpointsActive(params: Protocol.Debugger.SetBreakpointsActiveRequest): Promise<{id: number, result: void, sessionId: string}>;
|
283
283
|
|
284
284
|
/**
|
285
285
|
* Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions,
|
286
286
|
* or caught exceptions, no exceptions. Initial pause on exceptions state is `none`.
|
287
287
|
*/
|
288
|
-
setPauseOnExceptions(params: Protocol.Debugger.SetPauseOnExceptionsRequest): Promise<void>;
|
288
|
+
setPauseOnExceptions(params: Protocol.Debugger.SetPauseOnExceptionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
289
289
|
|
290
290
|
/**
|
291
291
|
* Changes return value in top frame. Available only at return break position.
|
292
292
|
*/
|
293
|
-
setReturnValue(params: Protocol.Debugger.SetReturnValueRequest): Promise<void>;
|
293
|
+
setReturnValue(params: Protocol.Debugger.SetReturnValueRequest): Promise<{id: number, result: void, sessionId: string}>;
|
294
294
|
|
295
295
|
/**
|
296
296
|
* Edits JavaScript source live.
|
@@ -301,33 +301,33 @@ export namespace ProtocolTestsProxyApi {
|
|
301
301
|
* the live edit will be successful and a `Debugger.restartFrame` for the
|
302
302
|
* top-most function is automatically triggered.
|
303
303
|
*/
|
304
|
-
setScriptSource(params: Protocol.Debugger.SetScriptSourceRequest): Promise<Protocol.Debugger.SetScriptSourceResponse>;
|
304
|
+
setScriptSource(params: Protocol.Debugger.SetScriptSourceRequest): Promise<{id: number, result: Protocol.Debugger.SetScriptSourceResponse, sessionId: string}>;
|
305
305
|
|
306
306
|
/**
|
307
307
|
* Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
|
308
308
|
*/
|
309
|
-
setSkipAllPauses(params: Protocol.Debugger.SetSkipAllPausesRequest): Promise<void>;
|
309
|
+
setSkipAllPauses(params: Protocol.Debugger.SetSkipAllPausesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
310
310
|
|
311
311
|
/**
|
312
312
|
* Changes value of variable in a callframe. Object-based scopes are not supported and must be
|
313
313
|
* mutated manually.
|
314
314
|
*/
|
315
|
-
setVariableValue(params: Protocol.Debugger.SetVariableValueRequest): Promise<void>;
|
315
|
+
setVariableValue(params: Protocol.Debugger.SetVariableValueRequest): Promise<{id: number, result: void, sessionId: string}>;
|
316
316
|
|
317
317
|
/**
|
318
318
|
* Steps into the function call.
|
319
319
|
*/
|
320
|
-
stepInto(params: Protocol.Debugger.StepIntoRequest): Promise<void>;
|
320
|
+
stepInto(params: Protocol.Debugger.StepIntoRequest): Promise<{id: number, result: void, sessionId: string}>;
|
321
321
|
|
322
322
|
/**
|
323
323
|
* Steps out of the function call.
|
324
324
|
*/
|
325
|
-
stepOut(): Promise<void>;
|
325
|
+
stepOut(): Promise<{id: number, result: void, sessionId: string}>;
|
326
326
|
|
327
327
|
/**
|
328
328
|
* Steps over the statement.
|
329
329
|
*/
|
330
|
-
stepOver(params: Protocol.Debugger.StepOverRequest): Promise<void>;
|
330
|
+
stepOver(params: Protocol.Debugger.StepOverRequest): Promise<{id: number, result: void, sessionId: string}>;
|
331
331
|
|
332
332
|
/**
|
333
333
|
* Fired when breakpoint is resolved to an actual script and location.
|
@@ -372,29 +372,29 @@ export namespace ProtocolTestsProxyApi {
|
|
372
372
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details
|
373
373
|
* $x functions).
|
374
374
|
*/
|
375
|
-
addInspectedHeapObject(params: Protocol.HeapProfiler.AddInspectedHeapObjectRequest): Promise<void>;
|
375
|
+
addInspectedHeapObject(params: Protocol.HeapProfiler.AddInspectedHeapObjectRequest): Promise<{id: number, result: void, sessionId: string}>;
|
376
376
|
|
377
|
-
collectGarbage(): Promise<void>;
|
377
|
+
collectGarbage(): Promise<{id: number, result: void, sessionId: string}>;
|
378
378
|
|
379
|
-
disable(): Promise<void>;
|
379
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
380
380
|
|
381
|
-
enable(): Promise<void>;
|
381
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
382
382
|
|
383
|
-
getHeapObjectId(params: Protocol.HeapProfiler.GetHeapObjectIdRequest): Promise<Protocol.HeapProfiler.GetHeapObjectIdResponse>;
|
383
|
+
getHeapObjectId(params: Protocol.HeapProfiler.GetHeapObjectIdRequest): Promise<{id: number, result: Protocol.HeapProfiler.GetHeapObjectIdResponse, sessionId: string}>;
|
384
384
|
|
385
|
-
getObjectByHeapObjectId(params: Protocol.HeapProfiler.GetObjectByHeapObjectIdRequest): Promise<Protocol.HeapProfiler.GetObjectByHeapObjectIdResponse>;
|
385
|
+
getObjectByHeapObjectId(params: Protocol.HeapProfiler.GetObjectByHeapObjectIdRequest): Promise<{id: number, result: Protocol.HeapProfiler.GetObjectByHeapObjectIdResponse, sessionId: string}>;
|
386
386
|
|
387
|
-
getSamplingProfile(): Promise<Protocol.HeapProfiler.GetSamplingProfileResponse>;
|
387
|
+
getSamplingProfile(): Promise<{id: number, result: Protocol.HeapProfiler.GetSamplingProfileResponse, sessionId: string}>;
|
388
388
|
|
389
|
-
startSampling(params: Protocol.HeapProfiler.StartSamplingRequest): Promise<void>;
|
389
|
+
startSampling(params: Protocol.HeapProfiler.StartSamplingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
390
390
|
|
391
|
-
startTrackingHeapObjects(params: Protocol.HeapProfiler.StartTrackingHeapObjectsRequest): Promise<void>;
|
391
|
+
startTrackingHeapObjects(params: Protocol.HeapProfiler.StartTrackingHeapObjectsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
392
392
|
|
393
|
-
stopSampling(): Promise<Protocol.HeapProfiler.StopSamplingResponse>;
|
393
|
+
stopSampling(): Promise<{id: number, result: Protocol.HeapProfiler.StopSamplingResponse, sessionId: string}>;
|
394
394
|
|
395
|
-
stopTrackingHeapObjects(params: Protocol.HeapProfiler.StopTrackingHeapObjectsRequest): Promise<void>;
|
395
|
+
stopTrackingHeapObjects(params: Protocol.HeapProfiler.StopTrackingHeapObjectsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
396
396
|
|
397
|
-
takeHeapSnapshot(params: Protocol.HeapProfiler.TakeHeapSnapshotRequest): Promise<void>;
|
397
|
+
takeHeapSnapshot(params: Protocol.HeapProfiler.TakeHeapSnapshotRequest): Promise<{id: number, result: void, sessionId: string}>;
|
398
398
|
|
399
399
|
onAddHeapSnapshotChunk(listener: (event: { params: Protocol.HeapProfiler.AddHeapSnapshotChunkEvent }) => void): void;
|
400
400
|
offAddHeapSnapshotChunk(listener: (event: { params: Protocol.HeapProfiler.AddHeapSnapshotChunkEvent }) => void): void;
|
@@ -427,43 +427,43 @@ export namespace ProtocolTestsProxyApi {
|
|
427
427
|
}
|
428
428
|
|
429
429
|
export interface ProfilerApi {
|
430
|
-
disable(): Promise<void>;
|
430
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
431
431
|
|
432
|
-
enable(): Promise<void>;
|
432
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
433
433
|
|
434
434
|
/**
|
435
435
|
* Collect coverage data for the current isolate. The coverage data may be incomplete due to
|
436
436
|
* garbage collection.
|
437
437
|
*/
|
438
|
-
getBestEffortCoverage(): Promise<Protocol.Profiler.GetBestEffortCoverageResponse>;
|
438
|
+
getBestEffortCoverage(): Promise<{id: number, result: Protocol.Profiler.GetBestEffortCoverageResponse, sessionId: string}>;
|
439
439
|
|
440
440
|
/**
|
441
441
|
* Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
|
442
442
|
*/
|
443
|
-
setSamplingInterval(params: Protocol.Profiler.SetSamplingIntervalRequest): Promise<void>;
|
443
|
+
setSamplingInterval(params: Protocol.Profiler.SetSamplingIntervalRequest): Promise<{id: number, result: void, sessionId: string}>;
|
444
444
|
|
445
|
-
start(): Promise<void>;
|
445
|
+
start(): Promise<{id: number, result: void, sessionId: string}>;
|
446
446
|
|
447
447
|
/**
|
448
448
|
* Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code
|
449
449
|
* coverage may be incomplete. Enabling prevents running optimized code and resets execution
|
450
450
|
* counters.
|
451
451
|
*/
|
452
|
-
startPreciseCoverage(params: Protocol.Profiler.StartPreciseCoverageRequest): Promise<Protocol.Profiler.StartPreciseCoverageResponse>;
|
452
|
+
startPreciseCoverage(params: Protocol.Profiler.StartPreciseCoverageRequest): Promise<{id: number, result: Protocol.Profiler.StartPreciseCoverageResponse, sessionId: string}>;
|
453
453
|
|
454
|
-
stop(): Promise<Protocol.Profiler.StopResponse>;
|
454
|
+
stop(): Promise<{id: number, result: Protocol.Profiler.StopResponse, sessionId: string}>;
|
455
455
|
|
456
456
|
/**
|
457
457
|
* Disable precise code coverage. Disabling releases unnecessary execution count records and allows
|
458
458
|
* executing optimized code.
|
459
459
|
*/
|
460
|
-
stopPreciseCoverage(): Promise<void>;
|
460
|
+
stopPreciseCoverage(): Promise<{id: number, result: void, sessionId: string}>;
|
461
461
|
|
462
462
|
/**
|
463
463
|
* Collect coverage data for the current isolate, and resets execution counters. Precise code
|
464
464
|
* coverage needs to have started.
|
465
465
|
*/
|
466
|
-
takePreciseCoverage(): Promise<Protocol.Profiler.TakePreciseCoverageResponse>;
|
466
|
+
takePreciseCoverage(): Promise<{id: number, result: Protocol.Profiler.TakePreciseCoverageResponse, sessionId: string}>;
|
467
467
|
|
468
468
|
onConsoleProfileFinished(listener: (event: { params: Protocol.Profiler.ConsoleProfileFinishedEvent }) => void): void;
|
469
469
|
offConsoleProfileFinished(listener: (event: { params: Protocol.Profiler.ConsoleProfileFinishedEvent }) => void): void;
|
@@ -492,99 +492,99 @@ export namespace ProtocolTestsProxyApi {
|
|
492
492
|
/**
|
493
493
|
* Add handler to promise with given promise object id.
|
494
494
|
*/
|
495
|
-
awaitPromise(params: Protocol.Runtime.AwaitPromiseRequest): Promise<Protocol.Runtime.AwaitPromiseResponse>;
|
495
|
+
awaitPromise(params: Protocol.Runtime.AwaitPromiseRequest): Promise<{id: number, result: Protocol.Runtime.AwaitPromiseResponse, sessionId: string}>;
|
496
496
|
|
497
497
|
/**
|
498
498
|
* Calls function with given declaration on the given object. Object group of the result is
|
499
499
|
* inherited from the target object.
|
500
500
|
*/
|
501
|
-
callFunctionOn(params: Protocol.Runtime.CallFunctionOnRequest): Promise<Protocol.Runtime.CallFunctionOnResponse>;
|
501
|
+
callFunctionOn(params: Protocol.Runtime.CallFunctionOnRequest): Promise<{id: number, result: Protocol.Runtime.CallFunctionOnResponse, sessionId: string}>;
|
502
502
|
|
503
503
|
/**
|
504
504
|
* Compiles expression.
|
505
505
|
*/
|
506
|
-
compileScript(params: Protocol.Runtime.CompileScriptRequest): Promise<Protocol.Runtime.CompileScriptResponse>;
|
506
|
+
compileScript(params: Protocol.Runtime.CompileScriptRequest): Promise<{id: number, result: Protocol.Runtime.CompileScriptResponse, sessionId: string}>;
|
507
507
|
|
508
508
|
/**
|
509
509
|
* Disables reporting of execution contexts creation.
|
510
510
|
*/
|
511
|
-
disable(): Promise<void>;
|
511
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
512
512
|
|
513
513
|
/**
|
514
514
|
* Discards collected exceptions and console API calls.
|
515
515
|
*/
|
516
|
-
discardConsoleEntries(): Promise<void>;
|
516
|
+
discardConsoleEntries(): Promise<{id: number, result: void, sessionId: string}>;
|
517
517
|
|
518
518
|
/**
|
519
519
|
* Enables reporting of execution contexts creation by means of `executionContextCreated` event.
|
520
520
|
* When the reporting gets enabled the event will be sent immediately for each existing execution
|
521
521
|
* context.
|
522
522
|
*/
|
523
|
-
enable(): Promise<void>;
|
523
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
524
524
|
|
525
525
|
/**
|
526
526
|
* Evaluates expression on global object.
|
527
527
|
*/
|
528
|
-
evaluate(params: Protocol.Runtime.EvaluateRequest): Promise<Protocol.Runtime.EvaluateResponse>;
|
528
|
+
evaluate(params: Protocol.Runtime.EvaluateRequest): Promise<{id: number, result: Protocol.Runtime.EvaluateResponse, sessionId: string}>;
|
529
529
|
|
530
530
|
/**
|
531
531
|
* Returns the isolate id.
|
532
532
|
*/
|
533
|
-
getIsolateId(): Promise<Protocol.Runtime.GetIsolateIdResponse>;
|
533
|
+
getIsolateId(): Promise<{id: number, result: Protocol.Runtime.GetIsolateIdResponse, sessionId: string}>;
|
534
534
|
|
535
535
|
/**
|
536
536
|
* Returns the JavaScript heap usage.
|
537
537
|
* It is the total usage of the corresponding isolate not scoped to a particular Runtime.
|
538
538
|
*/
|
539
|
-
getHeapUsage(): Promise<Protocol.Runtime.GetHeapUsageResponse>;
|
539
|
+
getHeapUsage(): Promise<{id: number, result: Protocol.Runtime.GetHeapUsageResponse, sessionId: string}>;
|
540
540
|
|
541
541
|
/**
|
542
542
|
* Returns properties of a given object. Object group of the result is inherited from the target
|
543
543
|
* object.
|
544
544
|
*/
|
545
|
-
getProperties(params: Protocol.Runtime.GetPropertiesRequest): Promise<Protocol.Runtime.GetPropertiesResponse>;
|
545
|
+
getProperties(params: Protocol.Runtime.GetPropertiesRequest): Promise<{id: number, result: Protocol.Runtime.GetPropertiesResponse, sessionId: string}>;
|
546
546
|
|
547
547
|
/**
|
548
548
|
* Returns all let, const and class variables from global scope.
|
549
549
|
*/
|
550
|
-
globalLexicalScopeNames(params: Protocol.Runtime.GlobalLexicalScopeNamesRequest): Promise<Protocol.Runtime.GlobalLexicalScopeNamesResponse>;
|
550
|
+
globalLexicalScopeNames(params: Protocol.Runtime.GlobalLexicalScopeNamesRequest): Promise<{id: number, result: Protocol.Runtime.GlobalLexicalScopeNamesResponse, sessionId: string}>;
|
551
551
|
|
552
|
-
queryObjects(params: Protocol.Runtime.QueryObjectsRequest): Promise<Protocol.Runtime.QueryObjectsResponse>;
|
552
|
+
queryObjects(params: Protocol.Runtime.QueryObjectsRequest): Promise<{id: number, result: Protocol.Runtime.QueryObjectsResponse, sessionId: string}>;
|
553
553
|
|
554
554
|
/**
|
555
555
|
* Releases remote object with given id.
|
556
556
|
*/
|
557
|
-
releaseObject(params: Protocol.Runtime.ReleaseObjectRequest): Promise<void>;
|
557
|
+
releaseObject(params: Protocol.Runtime.ReleaseObjectRequest): Promise<{id: number, result: void, sessionId: string}>;
|
558
558
|
|
559
559
|
/**
|
560
560
|
* Releases all remote objects that belong to a given group.
|
561
561
|
*/
|
562
|
-
releaseObjectGroup(params: Protocol.Runtime.ReleaseObjectGroupRequest): Promise<void>;
|
562
|
+
releaseObjectGroup(params: Protocol.Runtime.ReleaseObjectGroupRequest): Promise<{id: number, result: void, sessionId: string}>;
|
563
563
|
|
564
564
|
/**
|
565
565
|
* Tells inspected instance to run if it was waiting for debugger to attach.
|
566
566
|
*/
|
567
|
-
runIfWaitingForDebugger(): Promise<void>;
|
567
|
+
runIfWaitingForDebugger(): Promise<{id: number, result: void, sessionId: string}>;
|
568
568
|
|
569
569
|
/**
|
570
570
|
* Runs script with given id in a given context.
|
571
571
|
*/
|
572
|
-
runScript(params: Protocol.Runtime.RunScriptRequest): Promise<Protocol.Runtime.RunScriptResponse>;
|
572
|
+
runScript(params: Protocol.Runtime.RunScriptRequest): Promise<{id: number, result: Protocol.Runtime.RunScriptResponse, sessionId: string}>;
|
573
573
|
|
574
574
|
/**
|
575
575
|
* Enables or disables async call stacks tracking.
|
576
576
|
*/
|
577
|
-
setAsyncCallStackDepth(params: Protocol.Runtime.SetAsyncCallStackDepthRequest): Promise<void>;
|
577
|
+
setAsyncCallStackDepth(params: Protocol.Runtime.SetAsyncCallStackDepthRequest): Promise<{id: number, result: void, sessionId: string}>;
|
578
578
|
|
579
|
-
setCustomObjectFormatterEnabled(params: Protocol.Runtime.SetCustomObjectFormatterEnabledRequest): Promise<void>;
|
579
|
+
setCustomObjectFormatterEnabled(params: Protocol.Runtime.SetCustomObjectFormatterEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
580
580
|
|
581
|
-
setMaxCallStackSizeToCapture(params: Protocol.Runtime.SetMaxCallStackSizeToCaptureRequest): Promise<void>;
|
581
|
+
setMaxCallStackSizeToCapture(params: Protocol.Runtime.SetMaxCallStackSizeToCaptureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
582
582
|
|
583
583
|
/**
|
584
584
|
* Terminate current or next JavaScript execution.
|
585
585
|
* Will cancel the termination when the outer-most script execution ends.
|
586
586
|
*/
|
587
|
-
terminateExecution(): Promise<void>;
|
587
|
+
terminateExecution(): Promise<{id: number, result: void, sessionId: string}>;
|
588
588
|
|
589
589
|
/**
|
590
590
|
* If executionContextId is empty, adds binding with the given name on the
|
@@ -594,13 +594,13 @@ export namespace ProtocolTestsProxyApi {
|
|
594
594
|
* in case of any other input, function throws an exception.
|
595
595
|
* Each binding function call produces Runtime.bindingCalled notification.
|
596
596
|
*/
|
597
|
-
addBinding(params: Protocol.Runtime.AddBindingRequest): Promise<void>;
|
597
|
+
addBinding(params: Protocol.Runtime.AddBindingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
598
598
|
|
599
599
|
/**
|
600
600
|
* This method does not remove binding function from global object but
|
601
601
|
* unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
602
602
|
*/
|
603
|
-
removeBinding(params: Protocol.Runtime.RemoveBindingRequest): Promise<void>;
|
603
|
+
removeBinding(params: Protocol.Runtime.RemoveBindingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
604
604
|
|
605
605
|
/**
|
606
606
|
* This method tries to lookup and populate exception details for a
|
@@ -609,7 +609,7 @@ export namespace ProtocolTestsProxyApi {
|
|
609
609
|
* only be populated if the Runtime domain was enabled at the time when the
|
610
610
|
* Error was thrown.
|
611
611
|
*/
|
612
|
-
getExceptionDetails(params: Protocol.Runtime.GetExceptionDetailsRequest): Promise<Protocol.Runtime.GetExceptionDetailsResponse>;
|
612
|
+
getExceptionDetails(params: Protocol.Runtime.GetExceptionDetailsRequest): Promise<{id: number, result: Protocol.Runtime.GetExceptionDetailsResponse, sessionId: string}>;
|
613
613
|
|
614
614
|
/**
|
615
615
|
* Notification is issued every time when binding is called.
|
@@ -674,7 +674,7 @@ export namespace ProtocolTestsProxyApi {
|
|
674
674
|
/**
|
675
675
|
* Returns supported domains.
|
676
676
|
*/
|
677
|
-
getDomains(): Promise<Protocol.Schema.GetDomainsResponse>;
|
677
|
+
getDomains(): Promise<{id: number, result: Protocol.Schema.GetDomainsResponse, sessionId: string}>;
|
678
678
|
|
679
679
|
}
|
680
680
|
|
@@ -682,41 +682,41 @@ export namespace ProtocolTestsProxyApi {
|
|
682
682
|
/**
|
683
683
|
* Disables the accessibility domain.
|
684
684
|
*/
|
685
|
-
disable(): Promise<void>;
|
685
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
686
686
|
|
687
687
|
/**
|
688
688
|
* Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls.
|
689
689
|
* This turns on accessibility for the page, which can impact performance until accessibility is disabled.
|
690
690
|
*/
|
691
|
-
enable(): Promise<void>;
|
691
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
692
692
|
|
693
693
|
/**
|
694
694
|
* Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
|
695
695
|
*/
|
696
|
-
getPartialAXTree(params: Protocol.Accessibility.GetPartialAXTreeRequest): Promise<Protocol.Accessibility.GetPartialAXTreeResponse>;
|
696
|
+
getPartialAXTree(params: Protocol.Accessibility.GetPartialAXTreeRequest): Promise<{id: number, result: Protocol.Accessibility.GetPartialAXTreeResponse, sessionId: string}>;
|
697
697
|
|
698
698
|
/**
|
699
699
|
* Fetches the entire accessibility tree for the root Document
|
700
700
|
*/
|
701
|
-
getFullAXTree(params: Protocol.Accessibility.GetFullAXTreeRequest): Promise<Protocol.Accessibility.GetFullAXTreeResponse>;
|
701
|
+
getFullAXTree(params: Protocol.Accessibility.GetFullAXTreeRequest): Promise<{id: number, result: Protocol.Accessibility.GetFullAXTreeResponse, sessionId: string}>;
|
702
702
|
|
703
703
|
/**
|
704
704
|
* Fetches the root node.
|
705
705
|
* Requires `enable()` to have been called previously.
|
706
706
|
*/
|
707
|
-
getRootAXNode(params: Protocol.Accessibility.GetRootAXNodeRequest): Promise<Protocol.Accessibility.GetRootAXNodeResponse>;
|
707
|
+
getRootAXNode(params: Protocol.Accessibility.GetRootAXNodeRequest): Promise<{id: number, result: Protocol.Accessibility.GetRootAXNodeResponse, sessionId: string}>;
|
708
708
|
|
709
709
|
/**
|
710
710
|
* Fetches a node and all ancestors up to and including the root.
|
711
711
|
* Requires `enable()` to have been called previously.
|
712
712
|
*/
|
713
|
-
getAXNodeAndAncestors(params: Protocol.Accessibility.GetAXNodeAndAncestorsRequest): Promise<Protocol.Accessibility.GetAXNodeAndAncestorsResponse>;
|
713
|
+
getAXNodeAndAncestors(params: Protocol.Accessibility.GetAXNodeAndAncestorsRequest): Promise<{id: number, result: Protocol.Accessibility.GetAXNodeAndAncestorsResponse, sessionId: string}>;
|
714
714
|
|
715
715
|
/**
|
716
716
|
* Fetches a particular accessibility node by AXNodeId.
|
717
717
|
* Requires `enable()` to have been called previously.
|
718
718
|
*/
|
719
|
-
getChildAXNodes(params: Protocol.Accessibility.GetChildAXNodesRequest): Promise<Protocol.Accessibility.GetChildAXNodesResponse>;
|
719
|
+
getChildAXNodes(params: Protocol.Accessibility.GetChildAXNodesRequest): Promise<{id: number, result: Protocol.Accessibility.GetChildAXNodesResponse, sessionId: string}>;
|
720
720
|
|
721
721
|
/**
|
722
722
|
* Query a DOM node's accessibility subtree for accessible name and role.
|
@@ -725,7 +725,7 @@ export namespace ProtocolTestsProxyApi {
|
|
725
725
|
* node is specified, or the DOM node does not exist, the command returns an error. If neither
|
726
726
|
* `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.
|
727
727
|
*/
|
728
|
-
queryAXTree(params: Protocol.Accessibility.QueryAXTreeRequest): Promise<Protocol.Accessibility.QueryAXTreeResponse>;
|
728
|
+
queryAXTree(params: Protocol.Accessibility.QueryAXTreeRequest): Promise<{id: number, result: Protocol.Accessibility.QueryAXTreeResponse, sessionId: string}>;
|
729
729
|
|
730
730
|
/**
|
731
731
|
* The loadComplete event mirrors the load complete event sent by the browser to assistive
|
@@ -748,52 +748,52 @@ export namespace ProtocolTestsProxyApi {
|
|
748
748
|
/**
|
749
749
|
* Disables animation domain notifications.
|
750
750
|
*/
|
751
|
-
disable(): Promise<void>;
|
751
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
752
752
|
|
753
753
|
/**
|
754
754
|
* Enables animation domain notifications.
|
755
755
|
*/
|
756
|
-
enable(): Promise<void>;
|
756
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
757
757
|
|
758
758
|
/**
|
759
759
|
* Returns the current time of the an animation.
|
760
760
|
*/
|
761
|
-
getCurrentTime(params: Protocol.Animation.GetCurrentTimeRequest): Promise<Protocol.Animation.GetCurrentTimeResponse>;
|
761
|
+
getCurrentTime(params: Protocol.Animation.GetCurrentTimeRequest): Promise<{id: number, result: Protocol.Animation.GetCurrentTimeResponse, sessionId: string}>;
|
762
762
|
|
763
763
|
/**
|
764
764
|
* Gets the playback rate of the document timeline.
|
765
765
|
*/
|
766
|
-
getPlaybackRate(): Promise<Protocol.Animation.GetPlaybackRateResponse>;
|
766
|
+
getPlaybackRate(): Promise<{id: number, result: Protocol.Animation.GetPlaybackRateResponse, sessionId: string}>;
|
767
767
|
|
768
768
|
/**
|
769
769
|
* Releases a set of animations to no longer be manipulated.
|
770
770
|
*/
|
771
|
-
releaseAnimations(params: Protocol.Animation.ReleaseAnimationsRequest): Promise<void>;
|
771
|
+
releaseAnimations(params: Protocol.Animation.ReleaseAnimationsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
772
772
|
|
773
773
|
/**
|
774
774
|
* Gets the remote object of the Animation.
|
775
775
|
*/
|
776
|
-
resolveAnimation(params: Protocol.Animation.ResolveAnimationRequest): Promise<Protocol.Animation.ResolveAnimationResponse>;
|
776
|
+
resolveAnimation(params: Protocol.Animation.ResolveAnimationRequest): Promise<{id: number, result: Protocol.Animation.ResolveAnimationResponse, sessionId: string}>;
|
777
777
|
|
778
778
|
/**
|
779
779
|
* Seek a set of animations to a particular time within each animation.
|
780
780
|
*/
|
781
|
-
seekAnimations(params: Protocol.Animation.SeekAnimationsRequest): Promise<void>;
|
781
|
+
seekAnimations(params: Protocol.Animation.SeekAnimationsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
782
782
|
|
783
783
|
/**
|
784
784
|
* Sets the paused state of a set of animations.
|
785
785
|
*/
|
786
|
-
setPaused(params: Protocol.Animation.SetPausedRequest): Promise<void>;
|
786
|
+
setPaused(params: Protocol.Animation.SetPausedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
787
787
|
|
788
788
|
/**
|
789
789
|
* Sets the playback rate of the document timeline.
|
790
790
|
*/
|
791
|
-
setPlaybackRate(params: Protocol.Animation.SetPlaybackRateRequest): Promise<void>;
|
791
|
+
setPlaybackRate(params: Protocol.Animation.SetPlaybackRateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
792
792
|
|
793
793
|
/**
|
794
794
|
* Sets the timing of an animation node.
|
795
795
|
*/
|
796
|
-
setTiming(params: Protocol.Animation.SetTimingRequest): Promise<void>;
|
796
|
+
setTiming(params: Protocol.Animation.SetTimingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
797
797
|
|
798
798
|
/**
|
799
799
|
* Event for when an animation has been cancelled.
|
@@ -823,30 +823,30 @@ export namespace ProtocolTestsProxyApi {
|
|
823
823
|
* Returns the response body and size if it were re-encoded with the specified settings. Only
|
824
824
|
* applies to images.
|
825
825
|
*/
|
826
|
-
getEncodedResponse(params: Protocol.Audits.GetEncodedResponseRequest): Promise<Protocol.Audits.GetEncodedResponseResponse>;
|
826
|
+
getEncodedResponse(params: Protocol.Audits.GetEncodedResponseRequest): Promise<{id: number, result: Protocol.Audits.GetEncodedResponseResponse, sessionId: string}>;
|
827
827
|
|
828
828
|
/**
|
829
829
|
* Disables issues domain, prevents further issues from being reported to the client.
|
830
830
|
*/
|
831
|
-
disable(): Promise<void>;
|
831
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
832
832
|
|
833
833
|
/**
|
834
834
|
* Enables issues domain, sends the issues collected so far to the client by means of the
|
835
835
|
* `issueAdded` event.
|
836
836
|
*/
|
837
|
-
enable(): Promise<void>;
|
837
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
838
838
|
|
839
839
|
/**
|
840
840
|
* Runs the contrast check for the target page. Found issues are reported
|
841
841
|
* using Audits.issueAdded event.
|
842
842
|
*/
|
843
|
-
checkContrast(params: Protocol.Audits.CheckContrastRequest): Promise<void>;
|
843
|
+
checkContrast(params: Protocol.Audits.CheckContrastRequest): Promise<{id: number, result: void, sessionId: string}>;
|
844
844
|
|
845
845
|
/**
|
846
846
|
* Runs the form issues check for the target page. Found issues are reported
|
847
847
|
* using Audits.issueAdded event.
|
848
848
|
*/
|
849
|
-
checkFormsIssues(): Promise<Protocol.Audits.CheckFormsIssuesResponse>;
|
849
|
+
checkFormsIssues(): Promise<{id: number, result: Protocol.Audits.CheckFormsIssuesResponse, sessionId: string}>;
|
850
850
|
|
851
851
|
onIssueAdded(listener: (event: { params: Protocol.Audits.IssueAddedEvent }) => void): void;
|
852
852
|
offIssueAdded(listener: (event: { params: Protocol.Audits.IssueAddedEvent }) => void): void;
|
@@ -859,22 +859,22 @@ export namespace ProtocolTestsProxyApi {
|
|
859
859
|
* Trigger autofill on a form identified by the fieldId.
|
860
860
|
* If the field and related form cannot be autofilled, returns an error.
|
861
861
|
*/
|
862
|
-
trigger(params: Protocol.Autofill.TriggerRequest): Promise<void>;
|
862
|
+
trigger(params: Protocol.Autofill.TriggerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
863
863
|
|
864
864
|
/**
|
865
865
|
* Set addresses so that developers can verify their forms implementation.
|
866
866
|
*/
|
867
|
-
setAddresses(params: Protocol.Autofill.SetAddressesRequest): Promise<void>;
|
867
|
+
setAddresses(params: Protocol.Autofill.SetAddressesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
868
868
|
|
869
869
|
/**
|
870
870
|
* Disables autofill domain notifications.
|
871
871
|
*/
|
872
|
-
disable(): Promise<void>;
|
872
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
873
873
|
|
874
874
|
/**
|
875
875
|
* Enables autofill domain notifications.
|
876
876
|
*/
|
877
|
-
enable(): Promise<void>;
|
877
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
878
878
|
|
879
879
|
/**
|
880
880
|
* Emitted when an address form is filled.
|
@@ -889,22 +889,22 @@ export namespace ProtocolTestsProxyApi {
|
|
889
889
|
/**
|
890
890
|
* Enables event updates for the service.
|
891
891
|
*/
|
892
|
-
startObserving(params: Protocol.BackgroundService.StartObservingRequest): Promise<void>;
|
892
|
+
startObserving(params: Protocol.BackgroundService.StartObservingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
893
893
|
|
894
894
|
/**
|
895
895
|
* Disables event updates for the service.
|
896
896
|
*/
|
897
|
-
stopObserving(params: Protocol.BackgroundService.StopObservingRequest): Promise<void>;
|
897
|
+
stopObserving(params: Protocol.BackgroundService.StopObservingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
898
898
|
|
899
899
|
/**
|
900
900
|
* Set the recording state for the service.
|
901
901
|
*/
|
902
|
-
setRecording(params: Protocol.BackgroundService.SetRecordingRequest): Promise<void>;
|
902
|
+
setRecording(params: Protocol.BackgroundService.SetRecordingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
903
903
|
|
904
904
|
/**
|
905
905
|
* Clears all stored data for the service.
|
906
906
|
*/
|
907
|
-
clearEvents(params: Protocol.BackgroundService.ClearEventsRequest): Promise<void>;
|
907
|
+
clearEvents(params: Protocol.BackgroundService.ClearEventsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
908
908
|
|
909
909
|
/**
|
910
910
|
* Called when the recording state for the service has been updated.
|
@@ -927,94 +927,94 @@ export namespace ProtocolTestsProxyApi {
|
|
927
927
|
/**
|
928
928
|
* Set permission settings for given origin.
|
929
929
|
*/
|
930
|
-
setPermission(params: Protocol.Browser.SetPermissionRequest): Promise<void>;
|
930
|
+
setPermission(params: Protocol.Browser.SetPermissionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
931
931
|
|
932
932
|
/**
|
933
933
|
* Grant specific permissions to the given origin and reject all others.
|
934
934
|
*/
|
935
|
-
grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<void>;
|
935
|
+
grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
936
936
|
|
937
937
|
/**
|
938
938
|
* Reset all permission management for all origins.
|
939
939
|
*/
|
940
|
-
resetPermissions(params: Protocol.Browser.ResetPermissionsRequest): Promise<void>;
|
940
|
+
resetPermissions(params: Protocol.Browser.ResetPermissionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
941
941
|
|
942
942
|
/**
|
943
943
|
* Set the behavior when downloading a file.
|
944
944
|
*/
|
945
|
-
setDownloadBehavior(params: Protocol.Browser.SetDownloadBehaviorRequest): Promise<void>;
|
945
|
+
setDownloadBehavior(params: Protocol.Browser.SetDownloadBehaviorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
946
946
|
|
947
947
|
/**
|
948
948
|
* Cancel a download if in progress
|
949
949
|
*/
|
950
|
-
cancelDownload(params: Protocol.Browser.CancelDownloadRequest): Promise<void>;
|
950
|
+
cancelDownload(params: Protocol.Browser.CancelDownloadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
951
951
|
|
952
952
|
/**
|
953
953
|
* Close browser gracefully.
|
954
954
|
*/
|
955
|
-
close(): Promise<void>;
|
955
|
+
close(): Promise<{id: number, result: void, sessionId: string}>;
|
956
956
|
|
957
957
|
/**
|
958
958
|
* Crashes browser on the main thread.
|
959
959
|
*/
|
960
|
-
crash(): Promise<void>;
|
960
|
+
crash(): Promise<{id: number, result: void, sessionId: string}>;
|
961
961
|
|
962
962
|
/**
|
963
963
|
* Crashes GPU process.
|
964
964
|
*/
|
965
|
-
crashGpuProcess(): Promise<void>;
|
965
|
+
crashGpuProcess(): Promise<{id: number, result: void, sessionId: string}>;
|
966
966
|
|
967
967
|
/**
|
968
968
|
* Returns version information.
|
969
969
|
*/
|
970
|
-
getVersion(): Promise<Protocol.Browser.GetVersionResponse>;
|
970
|
+
getVersion(): Promise<{id: number, result: Protocol.Browser.GetVersionResponse, sessionId: string}>;
|
971
971
|
|
972
972
|
/**
|
973
973
|
* Returns the command line switches for the browser process if, and only if
|
974
974
|
* --enable-automation is on the commandline.
|
975
975
|
*/
|
976
|
-
getBrowserCommandLine(): Promise<Protocol.Browser.GetBrowserCommandLineResponse>;
|
976
|
+
getBrowserCommandLine(): Promise<{id: number, result: Protocol.Browser.GetBrowserCommandLineResponse, sessionId: string}>;
|
977
977
|
|
978
978
|
/**
|
979
979
|
* Get Chrome histograms.
|
980
980
|
*/
|
981
|
-
getHistograms(params: Protocol.Browser.GetHistogramsRequest): Promise<Protocol.Browser.GetHistogramsResponse>;
|
981
|
+
getHistograms(params: Protocol.Browser.GetHistogramsRequest): Promise<{id: number, result: Protocol.Browser.GetHistogramsResponse, sessionId: string}>;
|
982
982
|
|
983
983
|
/**
|
984
984
|
* Get a Chrome histogram by name.
|
985
985
|
*/
|
986
|
-
getHistogram(params: Protocol.Browser.GetHistogramRequest): Promise<Protocol.Browser.GetHistogramResponse>;
|
986
|
+
getHistogram(params: Protocol.Browser.GetHistogramRequest): Promise<{id: number, result: Protocol.Browser.GetHistogramResponse, sessionId: string}>;
|
987
987
|
|
988
988
|
/**
|
989
989
|
* Get position and size of the browser window.
|
990
990
|
*/
|
991
|
-
getWindowBounds(params: Protocol.Browser.GetWindowBoundsRequest): Promise<Protocol.Browser.GetWindowBoundsResponse>;
|
991
|
+
getWindowBounds(params: Protocol.Browser.GetWindowBoundsRequest): Promise<{id: number, result: Protocol.Browser.GetWindowBoundsResponse, sessionId: string}>;
|
992
992
|
|
993
993
|
/**
|
994
994
|
* Get the browser window that contains the devtools target.
|
995
995
|
*/
|
996
|
-
getWindowForTarget(params: Protocol.Browser.GetWindowForTargetRequest): Promise<Protocol.Browser.GetWindowForTargetResponse>;
|
996
|
+
getWindowForTarget(params: Protocol.Browser.GetWindowForTargetRequest): Promise<{id: number, result: Protocol.Browser.GetWindowForTargetResponse, sessionId: string}>;
|
997
997
|
|
998
998
|
/**
|
999
999
|
* Set position and/or size of the browser window.
|
1000
1000
|
*/
|
1001
|
-
setWindowBounds(params: Protocol.Browser.SetWindowBoundsRequest): Promise<void>;
|
1001
|
+
setWindowBounds(params: Protocol.Browser.SetWindowBoundsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1002
1002
|
|
1003
1003
|
/**
|
1004
1004
|
* Set dock tile details, platform-specific.
|
1005
1005
|
*/
|
1006
|
-
setDockTile(params: Protocol.Browser.SetDockTileRequest): Promise<void>;
|
1006
|
+
setDockTile(params: Protocol.Browser.SetDockTileRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1007
1007
|
|
1008
1008
|
/**
|
1009
1009
|
* Invoke custom browser commands used by telemetry.
|
1010
1010
|
*/
|
1011
|
-
executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<void>;
|
1011
|
+
executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1012
1012
|
|
1013
1013
|
/**
|
1014
1014
|
* Allows a site to use privacy sandbox features that require enrollment
|
1015
1015
|
* without the site actually being enrolled. Only supported on page targets.
|
1016
1016
|
*/
|
1017
|
-
addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
|
1017
|
+
addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1018
1018
|
|
1019
1019
|
/**
|
1020
1020
|
* Fired when page is about to start a download.
|
@@ -1037,68 +1037,68 @@ export namespace ProtocolTestsProxyApi {
|
|
1037
1037
|
* Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
|
1038
1038
|
* position specified by `location`.
|
1039
1039
|
*/
|
1040
|
-
addRule(params: Protocol.CSS.AddRuleRequest): Promise<Protocol.CSS.AddRuleResponse>;
|
1040
|
+
addRule(params: Protocol.CSS.AddRuleRequest): Promise<{id: number, result: Protocol.CSS.AddRuleResponse, sessionId: string}>;
|
1041
1041
|
|
1042
1042
|
/**
|
1043
1043
|
* Returns all class names from specified stylesheet.
|
1044
1044
|
*/
|
1045
|
-
collectClassNames(params: Protocol.CSS.CollectClassNamesRequest): Promise<Protocol.CSS.CollectClassNamesResponse>;
|
1045
|
+
collectClassNames(params: Protocol.CSS.CollectClassNamesRequest): Promise<{id: number, result: Protocol.CSS.CollectClassNamesResponse, sessionId: string}>;
|
1046
1046
|
|
1047
1047
|
/**
|
1048
1048
|
* Creates a new special "via-inspector" stylesheet in the frame with given `frameId`.
|
1049
1049
|
*/
|
1050
|
-
createStyleSheet(params: Protocol.CSS.CreateStyleSheetRequest): Promise<Protocol.CSS.CreateStyleSheetResponse>;
|
1050
|
+
createStyleSheet(params: Protocol.CSS.CreateStyleSheetRequest): Promise<{id: number, result: Protocol.CSS.CreateStyleSheetResponse, sessionId: string}>;
|
1051
1051
|
|
1052
1052
|
/**
|
1053
1053
|
* Disables the CSS agent for the given page.
|
1054
1054
|
*/
|
1055
|
-
disable(): Promise<void>;
|
1055
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1056
1056
|
|
1057
1057
|
/**
|
1058
1058
|
* Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been
|
1059
1059
|
* enabled until the result of this command is received.
|
1060
1060
|
*/
|
1061
|
-
enable(): Promise<void>;
|
1061
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
1062
1062
|
|
1063
1063
|
/**
|
1064
1064
|
* Ensures that the given node will have specified pseudo-classes whenever its style is computed by
|
1065
1065
|
* the browser.
|
1066
1066
|
*/
|
1067
|
-
forcePseudoState(params: Protocol.CSS.ForcePseudoStateRequest): Promise<void>;
|
1067
|
+
forcePseudoState(params: Protocol.CSS.ForcePseudoStateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1068
1068
|
|
1069
|
-
getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<Protocol.CSS.GetBackgroundColorsResponse>;
|
1069
|
+
getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<{id: number, result: Protocol.CSS.GetBackgroundColorsResponse, sessionId: string}>;
|
1070
1070
|
|
1071
1071
|
/**
|
1072
1072
|
* Returns the computed style for a DOM node identified by `nodeId`.
|
1073
1073
|
*/
|
1074
|
-
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<Protocol.CSS.GetComputedStyleForNodeResponse>;
|
1074
|
+
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetComputedStyleForNodeResponse, sessionId: string}>;
|
1075
1075
|
|
1076
1076
|
/**
|
1077
1077
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1078
1078
|
* attributes) for a DOM node identified by `nodeId`.
|
1079
1079
|
*/
|
1080
|
-
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<Protocol.CSS.GetInlineStylesForNodeResponse>;
|
1080
|
+
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetInlineStylesForNodeResponse, sessionId: string}>;
|
1081
1081
|
|
1082
1082
|
/**
|
1083
1083
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1084
1084
|
*/
|
1085
|
-
getMatchedStylesForNode(params: Protocol.CSS.GetMatchedStylesForNodeRequest): Promise<Protocol.CSS.GetMatchedStylesForNodeResponse>;
|
1085
|
+
getMatchedStylesForNode(params: Protocol.CSS.GetMatchedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetMatchedStylesForNodeResponse, sessionId: string}>;
|
1086
1086
|
|
1087
1087
|
/**
|
1088
1088
|
* Returns all media queries parsed by the rendering engine.
|
1089
1089
|
*/
|
1090
|
-
getMediaQueries(): Promise<Protocol.CSS.GetMediaQueriesResponse>;
|
1090
|
+
getMediaQueries(): Promise<{id: number, result: Protocol.CSS.GetMediaQueriesResponse, sessionId: string}>;
|
1091
1091
|
|
1092
1092
|
/**
|
1093
1093
|
* Requests information about platform fonts which we used to render child TextNodes in the given
|
1094
1094
|
* node.
|
1095
1095
|
*/
|
1096
|
-
getPlatformFontsForNode(params: Protocol.CSS.GetPlatformFontsForNodeRequest): Promise<Protocol.CSS.GetPlatformFontsForNodeResponse>;
|
1096
|
+
getPlatformFontsForNode(params: Protocol.CSS.GetPlatformFontsForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetPlatformFontsForNodeResponse, sessionId: string}>;
|
1097
1097
|
|
1098
1098
|
/**
|
1099
1099
|
* Returns the current textual content for a stylesheet.
|
1100
1100
|
*/
|
1101
|
-
getStyleSheetText(params: Protocol.CSS.GetStyleSheetTextRequest): Promise<Protocol.CSS.GetStyleSheetTextResponse>;
|
1101
|
+
getStyleSheetText(params: Protocol.CSS.GetStyleSheetTextRequest): Promise<{id: number, result: Protocol.CSS.GetStyleSheetTextResponse, sessionId: string}>;
|
1102
1102
|
|
1103
1103
|
/**
|
1104
1104
|
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
@@ -1106,13 +1106,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1106
1106
|
* layer for the nearest ancestor document or shadow root. The layer root contains
|
1107
1107
|
* the full layer tree for the tree scope and their ordering.
|
1108
1108
|
*/
|
1109
|
-
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;
|
1109
|
+
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetLayersForNodeResponse, sessionId: string}>;
|
1110
1110
|
|
1111
1111
|
/**
|
1112
1112
|
* Given a CSS selector text and a style sheet ID, getLocationForSelector
|
1113
1113
|
* returns an array of locations of the CSS selector in the style sheet.
|
1114
1114
|
*/
|
1115
|
-
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;
|
1115
|
+
getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<{id: number, result: Protocol.CSS.GetLocationForSelectorResponse, sessionId: string}>;
|
1116
1116
|
|
1117
1117
|
/**
|
1118
1118
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
@@ -1122,85 +1122,85 @@ export namespace ProtocolTestsProxyApi {
|
|
1122
1122
|
* by the DOM agent. If no changes to the tracked properties occur after the node has been pushed
|
1123
1123
|
* to the front-end, no updates will be issued for the node.
|
1124
1124
|
*/
|
1125
|
-
trackComputedStyleUpdates(params: Protocol.CSS.TrackComputedStyleUpdatesRequest): Promise<void>;
|
1125
|
+
trackComputedStyleUpdates(params: Protocol.CSS.TrackComputedStyleUpdatesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1126
1126
|
|
1127
1127
|
/**
|
1128
1128
|
* Polls the next batch of computed style updates.
|
1129
1129
|
*/
|
1130
|
-
takeComputedStyleUpdates(): Promise<Protocol.CSS.TakeComputedStyleUpdatesResponse>;
|
1130
|
+
takeComputedStyleUpdates(): Promise<{id: number, result: Protocol.CSS.TakeComputedStyleUpdatesResponse, sessionId: string}>;
|
1131
1131
|
|
1132
1132
|
/**
|
1133
1133
|
* Find a rule with the given active property for the given node and set the new value for this
|
1134
1134
|
* property
|
1135
1135
|
*/
|
1136
|
-
setEffectivePropertyValueForNode(params: Protocol.CSS.SetEffectivePropertyValueForNodeRequest): Promise<void>;
|
1136
|
+
setEffectivePropertyValueForNode(params: Protocol.CSS.SetEffectivePropertyValueForNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1137
1137
|
|
1138
1138
|
/**
|
1139
1139
|
* Modifies the property rule property name.
|
1140
1140
|
*/
|
1141
|
-
setPropertyRulePropertyName(params: Protocol.CSS.SetPropertyRulePropertyNameRequest): Promise<Protocol.CSS.SetPropertyRulePropertyNameResponse>;
|
1141
|
+
setPropertyRulePropertyName(params: Protocol.CSS.SetPropertyRulePropertyNameRequest): Promise<{id: number, result: Protocol.CSS.SetPropertyRulePropertyNameResponse, sessionId: string}>;
|
1142
1142
|
|
1143
1143
|
/**
|
1144
1144
|
* Modifies the keyframe rule key text.
|
1145
1145
|
*/
|
1146
|
-
setKeyframeKey(params: Protocol.CSS.SetKeyframeKeyRequest): Promise<Protocol.CSS.SetKeyframeKeyResponse>;
|
1146
|
+
setKeyframeKey(params: Protocol.CSS.SetKeyframeKeyRequest): Promise<{id: number, result: Protocol.CSS.SetKeyframeKeyResponse, sessionId: string}>;
|
1147
1147
|
|
1148
1148
|
/**
|
1149
1149
|
* Modifies the rule selector.
|
1150
1150
|
*/
|
1151
|
-
setMediaText(params: Protocol.CSS.SetMediaTextRequest): Promise<Protocol.CSS.SetMediaTextResponse>;
|
1151
|
+
setMediaText(params: Protocol.CSS.SetMediaTextRequest): Promise<{id: number, result: Protocol.CSS.SetMediaTextResponse, sessionId: string}>;
|
1152
1152
|
|
1153
1153
|
/**
|
1154
1154
|
* Modifies the expression of a container query.
|
1155
1155
|
*/
|
1156
|
-
setContainerQueryText(params: Protocol.CSS.SetContainerQueryTextRequest): Promise<Protocol.CSS.SetContainerQueryTextResponse>;
|
1156
|
+
setContainerQueryText(params: Protocol.CSS.SetContainerQueryTextRequest): Promise<{id: number, result: Protocol.CSS.SetContainerQueryTextResponse, sessionId: string}>;
|
1157
1157
|
|
1158
1158
|
/**
|
1159
1159
|
* Modifies the expression of a supports at-rule.
|
1160
1160
|
*/
|
1161
|
-
setSupportsText(params: Protocol.CSS.SetSupportsTextRequest): Promise<Protocol.CSS.SetSupportsTextResponse>;
|
1161
|
+
setSupportsText(params: Protocol.CSS.SetSupportsTextRequest): Promise<{id: number, result: Protocol.CSS.SetSupportsTextResponse, sessionId: string}>;
|
1162
1162
|
|
1163
1163
|
/**
|
1164
1164
|
* Modifies the expression of a scope at-rule.
|
1165
1165
|
*/
|
1166
|
-
setScopeText(params: Protocol.CSS.SetScopeTextRequest): Promise<Protocol.CSS.SetScopeTextResponse>;
|
1166
|
+
setScopeText(params: Protocol.CSS.SetScopeTextRequest): Promise<{id: number, result: Protocol.CSS.SetScopeTextResponse, sessionId: string}>;
|
1167
1167
|
|
1168
1168
|
/**
|
1169
1169
|
* Modifies the rule selector.
|
1170
1170
|
*/
|
1171
|
-
setRuleSelector(params: Protocol.CSS.SetRuleSelectorRequest): Promise<Protocol.CSS.SetRuleSelectorResponse>;
|
1171
|
+
setRuleSelector(params: Protocol.CSS.SetRuleSelectorRequest): Promise<{id: number, result: Protocol.CSS.SetRuleSelectorResponse, sessionId: string}>;
|
1172
1172
|
|
1173
1173
|
/**
|
1174
1174
|
* Sets the new stylesheet text.
|
1175
1175
|
*/
|
1176
|
-
setStyleSheetText(params: Protocol.CSS.SetStyleSheetTextRequest): Promise<Protocol.CSS.SetStyleSheetTextResponse>;
|
1176
|
+
setStyleSheetText(params: Protocol.CSS.SetStyleSheetTextRequest): Promise<{id: number, result: Protocol.CSS.SetStyleSheetTextResponse, sessionId: string}>;
|
1177
1177
|
|
1178
1178
|
/**
|
1179
1179
|
* Applies specified style edits one after another in the given order.
|
1180
1180
|
*/
|
1181
|
-
setStyleTexts(params: Protocol.CSS.SetStyleTextsRequest): Promise<Protocol.CSS.SetStyleTextsResponse>;
|
1181
|
+
setStyleTexts(params: Protocol.CSS.SetStyleTextsRequest): Promise<{id: number, result: Protocol.CSS.SetStyleTextsResponse, sessionId: string}>;
|
1182
1182
|
|
1183
1183
|
/**
|
1184
1184
|
* Enables the selector recording.
|
1185
1185
|
*/
|
1186
|
-
startRuleUsageTracking(): Promise<void>;
|
1186
|
+
startRuleUsageTracking(): Promise<{id: number, result: void, sessionId: string}>;
|
1187
1187
|
|
1188
1188
|
/**
|
1189
1189
|
* Stop tracking rule usage and return the list of rules that were used since last call to
|
1190
1190
|
* `takeCoverageDelta` (or since start of coverage instrumentation).
|
1191
1191
|
*/
|
1192
|
-
stopRuleUsageTracking(): Promise<Protocol.CSS.StopRuleUsageTrackingResponse>;
|
1192
|
+
stopRuleUsageTracking(): Promise<{id: number, result: Protocol.CSS.StopRuleUsageTrackingResponse, sessionId: string}>;
|
1193
1193
|
|
1194
1194
|
/**
|
1195
1195
|
* Obtain list of rules that became used since last call to this method (or since start of coverage
|
1196
1196
|
* instrumentation).
|
1197
1197
|
*/
|
1198
|
-
takeCoverageDelta(): Promise<Protocol.CSS.TakeCoverageDeltaResponse>;
|
1198
|
+
takeCoverageDelta(): Promise<{id: number, result: Protocol.CSS.TakeCoverageDeltaResponse, sessionId: string}>;
|
1199
1199
|
|
1200
1200
|
/**
|
1201
1201
|
* Enables/disables rendering of local CSS fonts (enabled by default).
|
1202
1202
|
*/
|
1203
|
-
setLocalFontsEnabled(params: Protocol.CSS.SetLocalFontsEnabledRequest): Promise<void>;
|
1203
|
+
setLocalFontsEnabled(params: Protocol.CSS.SetLocalFontsEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1204
1204
|
|
1205
1205
|
/**
|
1206
1206
|
* Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded
|
@@ -1245,27 +1245,27 @@ export namespace ProtocolTestsProxyApi {
|
|
1245
1245
|
/**
|
1246
1246
|
* Deletes a cache.
|
1247
1247
|
*/
|
1248
|
-
deleteCache(params: Protocol.CacheStorage.DeleteCacheRequest): Promise<void>;
|
1248
|
+
deleteCache(params: Protocol.CacheStorage.DeleteCacheRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1249
1249
|
|
1250
1250
|
/**
|
1251
1251
|
* Deletes a cache entry.
|
1252
1252
|
*/
|
1253
|
-
deleteEntry(params: Protocol.CacheStorage.DeleteEntryRequest): Promise<void>;
|
1253
|
+
deleteEntry(params: Protocol.CacheStorage.DeleteEntryRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1254
1254
|
|
1255
1255
|
/**
|
1256
1256
|
* Requests cache names.
|
1257
1257
|
*/
|
1258
|
-
requestCacheNames(params: Protocol.CacheStorage.RequestCacheNamesRequest): Promise<Protocol.CacheStorage.RequestCacheNamesResponse>;
|
1258
|
+
requestCacheNames(params: Protocol.CacheStorage.RequestCacheNamesRequest): Promise<{id: number, result: Protocol.CacheStorage.RequestCacheNamesResponse, sessionId: string}>;
|
1259
1259
|
|
1260
1260
|
/**
|
1261
1261
|
* Fetches cache entry.
|
1262
1262
|
*/
|
1263
|
-
requestCachedResponse(params: Protocol.CacheStorage.RequestCachedResponseRequest): Promise<Protocol.CacheStorage.RequestCachedResponseResponse>;
|
1263
|
+
requestCachedResponse(params: Protocol.CacheStorage.RequestCachedResponseRequest): Promise<{id: number, result: Protocol.CacheStorage.RequestCachedResponseResponse, sessionId: string}>;
|
1264
1264
|
|
1265
1265
|
/**
|
1266
1266
|
* Requests data from cache.
|
1267
1267
|
*/
|
1268
|
-
requestEntries(params: Protocol.CacheStorage.RequestEntriesRequest): Promise<Protocol.CacheStorage.RequestEntriesResponse>;
|
1268
|
+
requestEntries(params: Protocol.CacheStorage.RequestEntriesRequest): Promise<{id: number, result: Protocol.CacheStorage.RequestEntriesResponse, sessionId: string}>;
|
1269
1269
|
|
1270
1270
|
}
|
1271
1271
|
|
@@ -1277,33 +1277,33 @@ export namespace ProtocolTestsProxyApi {
|
|
1277
1277
|
* Also starts observing for issue messages. When an issue is added or removed,
|
1278
1278
|
* an |issueUpdated| event is fired.
|
1279
1279
|
*/
|
1280
|
-
enable(params: Protocol.Cast.EnableRequest): Promise<void>;
|
1280
|
+
enable(params: Protocol.Cast.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1281
1281
|
|
1282
1282
|
/**
|
1283
1283
|
* Stops observing for sinks and issues.
|
1284
1284
|
*/
|
1285
|
-
disable(): Promise<void>;
|
1285
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1286
1286
|
|
1287
1287
|
/**
|
1288
1288
|
* Sets a sink to be used when the web page requests the browser to choose a
|
1289
1289
|
* sink via Presentation API, Remote Playback API, or Cast SDK.
|
1290
1290
|
*/
|
1291
|
-
setSinkToUse(params: Protocol.Cast.SetSinkToUseRequest): Promise<void>;
|
1291
|
+
setSinkToUse(params: Protocol.Cast.SetSinkToUseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1292
1292
|
|
1293
1293
|
/**
|
1294
1294
|
* Starts mirroring the desktop to the sink.
|
1295
1295
|
*/
|
1296
|
-
startDesktopMirroring(params: Protocol.Cast.StartDesktopMirroringRequest): Promise<void>;
|
1296
|
+
startDesktopMirroring(params: Protocol.Cast.StartDesktopMirroringRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1297
1297
|
|
1298
1298
|
/**
|
1299
1299
|
* Starts mirroring the tab to the sink.
|
1300
1300
|
*/
|
1301
|
-
startTabMirroring(params: Protocol.Cast.StartTabMirroringRequest): Promise<void>;
|
1301
|
+
startTabMirroring(params: Protocol.Cast.StartTabMirroringRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1302
1302
|
|
1303
1303
|
/**
|
1304
1304
|
* Stops the active Cast session on the sink.
|
1305
1305
|
*/
|
1306
|
-
stopCasting(params: Protocol.Cast.StopCastingRequest): Promise<void>;
|
1306
|
+
stopCasting(params: Protocol.Cast.StopCastingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1307
1307
|
|
1308
1308
|
/**
|
1309
1309
|
* This is fired whenever the list of available sinks changes. A sink is a
|
@@ -1327,258 +1327,258 @@ export namespace ProtocolTestsProxyApi {
|
|
1327
1327
|
/**
|
1328
1328
|
* Collects class names for the node with given id and all of it's child nodes.
|
1329
1329
|
*/
|
1330
|
-
collectClassNamesFromSubtree(params: Protocol.DOM.CollectClassNamesFromSubtreeRequest): Promise<Protocol.DOM.CollectClassNamesFromSubtreeResponse>;
|
1330
|
+
collectClassNamesFromSubtree(params: Protocol.DOM.CollectClassNamesFromSubtreeRequest): Promise<{id: number, result: Protocol.DOM.CollectClassNamesFromSubtreeResponse, sessionId: string}>;
|
1331
1331
|
|
1332
1332
|
/**
|
1333
1333
|
* Creates a deep copy of the specified node and places it into the target container before the
|
1334
1334
|
* given anchor.
|
1335
1335
|
*/
|
1336
|
-
copyTo(params: Protocol.DOM.CopyToRequest): Promise<Protocol.DOM.CopyToResponse>;
|
1336
|
+
copyTo(params: Protocol.DOM.CopyToRequest): Promise<{id: number, result: Protocol.DOM.CopyToResponse, sessionId: string}>;
|
1337
1337
|
|
1338
1338
|
/**
|
1339
1339
|
* Describes node given its id, does not require domain to be enabled. Does not start tracking any
|
1340
1340
|
* objects, can be used for automation.
|
1341
1341
|
*/
|
1342
|
-
describeNode(params: Protocol.DOM.DescribeNodeRequest): Promise<Protocol.DOM.DescribeNodeResponse>;
|
1342
|
+
describeNode(params: Protocol.DOM.DescribeNodeRequest): Promise<{id: number, result: Protocol.DOM.DescribeNodeResponse, sessionId: string}>;
|
1343
1343
|
|
1344
1344
|
/**
|
1345
1345
|
* Scrolls the specified rect of the given node into view if not already visible.
|
1346
1346
|
* Note: exactly one between nodeId, backendNodeId and objectId should be passed
|
1347
1347
|
* to identify the node.
|
1348
1348
|
*/
|
1349
|
-
scrollIntoViewIfNeeded(params: Protocol.DOM.ScrollIntoViewIfNeededRequest): Promise<void>;
|
1349
|
+
scrollIntoViewIfNeeded(params: Protocol.DOM.ScrollIntoViewIfNeededRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1350
1350
|
|
1351
1351
|
/**
|
1352
1352
|
* Disables DOM agent for the given page.
|
1353
1353
|
*/
|
1354
|
-
disable(): Promise<void>;
|
1354
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1355
1355
|
|
1356
1356
|
/**
|
1357
1357
|
* Discards search results from the session with the given id. `getSearchResults` should no longer
|
1358
1358
|
* be called for that search.
|
1359
1359
|
*/
|
1360
|
-
discardSearchResults(params: Protocol.DOM.DiscardSearchResultsRequest): Promise<void>;
|
1360
|
+
discardSearchResults(params: Protocol.DOM.DiscardSearchResultsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1361
1361
|
|
1362
1362
|
/**
|
1363
1363
|
* Enables DOM agent for the given page.
|
1364
1364
|
*/
|
1365
|
-
enable(params: Protocol.DOM.EnableRequest): Promise<void>;
|
1365
|
+
enable(params: Protocol.DOM.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1366
1366
|
|
1367
1367
|
/**
|
1368
1368
|
* Focuses the given element.
|
1369
1369
|
*/
|
1370
|
-
focus(params: Protocol.DOM.FocusRequest): Promise<void>;
|
1370
|
+
focus(params: Protocol.DOM.FocusRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1371
1371
|
|
1372
1372
|
/**
|
1373
1373
|
* Returns attributes for the specified node.
|
1374
1374
|
*/
|
1375
|
-
getAttributes(params: Protocol.DOM.GetAttributesRequest): Promise<Protocol.DOM.GetAttributesResponse>;
|
1375
|
+
getAttributes(params: Protocol.DOM.GetAttributesRequest): Promise<{id: number, result: Protocol.DOM.GetAttributesResponse, sessionId: string}>;
|
1376
1376
|
|
1377
1377
|
/**
|
1378
1378
|
* Returns boxes for the given node.
|
1379
1379
|
*/
|
1380
|
-
getBoxModel(params: Protocol.DOM.GetBoxModelRequest): Promise<Protocol.DOM.GetBoxModelResponse>;
|
1380
|
+
getBoxModel(params: Protocol.DOM.GetBoxModelRequest): Promise<{id: number, result: Protocol.DOM.GetBoxModelResponse, sessionId: string}>;
|
1381
1381
|
|
1382
1382
|
/**
|
1383
1383
|
* Returns quads that describe node position on the page. This method
|
1384
1384
|
* might return multiple quads for inline nodes.
|
1385
1385
|
*/
|
1386
|
-
getContentQuads(params: Protocol.DOM.GetContentQuadsRequest): Promise<Protocol.DOM.GetContentQuadsResponse>;
|
1386
|
+
getContentQuads(params: Protocol.DOM.GetContentQuadsRequest): Promise<{id: number, result: Protocol.DOM.GetContentQuadsResponse, sessionId: string}>;
|
1387
1387
|
|
1388
1388
|
/**
|
1389
1389
|
* Returns the root DOM node (and optionally the subtree) to the caller.
|
1390
1390
|
* Implicitly enables the DOM domain events for the current target.
|
1391
1391
|
*/
|
1392
|
-
getDocument(params: Protocol.DOM.GetDocumentRequest): Promise<Protocol.DOM.GetDocumentResponse>;
|
1392
|
+
getDocument(params: Protocol.DOM.GetDocumentRequest): Promise<{id: number, result: Protocol.DOM.GetDocumentResponse, sessionId: string}>;
|
1393
1393
|
|
1394
1394
|
/**
|
1395
1395
|
* Returns the root DOM node (and optionally the subtree) to the caller.
|
1396
1396
|
* Deprecated, as it is not designed to work well with the rest of the DOM agent.
|
1397
1397
|
* Use DOMSnapshot.captureSnapshot instead.
|
1398
1398
|
*/
|
1399
|
-
getFlattenedDocument(params: Protocol.DOM.GetFlattenedDocumentRequest): Promise<Protocol.DOM.GetFlattenedDocumentResponse>;
|
1399
|
+
getFlattenedDocument(params: Protocol.DOM.GetFlattenedDocumentRequest): Promise<{id: number, result: Protocol.DOM.GetFlattenedDocumentResponse, sessionId: string}>;
|
1400
1400
|
|
1401
1401
|
/**
|
1402
1402
|
* Finds nodes with a given computed style in a subtree.
|
1403
1403
|
*/
|
1404
|
-
getNodesForSubtreeByStyle(params: Protocol.DOM.GetNodesForSubtreeByStyleRequest): Promise<Protocol.DOM.GetNodesForSubtreeByStyleResponse>;
|
1404
|
+
getNodesForSubtreeByStyle(params: Protocol.DOM.GetNodesForSubtreeByStyleRequest): Promise<{id: number, result: Protocol.DOM.GetNodesForSubtreeByStyleResponse, sessionId: string}>;
|
1405
1405
|
|
1406
1406
|
/**
|
1407
1407
|
* Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
|
1408
1408
|
* either returned or not.
|
1409
1409
|
*/
|
1410
|
-
getNodeForLocation(params: Protocol.DOM.GetNodeForLocationRequest): Promise<Protocol.DOM.GetNodeForLocationResponse>;
|
1410
|
+
getNodeForLocation(params: Protocol.DOM.GetNodeForLocationRequest): Promise<{id: number, result: Protocol.DOM.GetNodeForLocationResponse, sessionId: string}>;
|
1411
1411
|
|
1412
1412
|
/**
|
1413
1413
|
* Returns node's HTML markup.
|
1414
1414
|
*/
|
1415
|
-
getOuterHTML(params: Protocol.DOM.GetOuterHTMLRequest): Promise<Protocol.DOM.GetOuterHTMLResponse>;
|
1415
|
+
getOuterHTML(params: Protocol.DOM.GetOuterHTMLRequest): Promise<{id: number, result: Protocol.DOM.GetOuterHTMLResponse, sessionId: string}>;
|
1416
1416
|
|
1417
1417
|
/**
|
1418
1418
|
* Returns the id of the nearest ancestor that is a relayout boundary.
|
1419
1419
|
*/
|
1420
|
-
getRelayoutBoundary(params: Protocol.DOM.GetRelayoutBoundaryRequest): Promise<Protocol.DOM.GetRelayoutBoundaryResponse>;
|
1420
|
+
getRelayoutBoundary(params: Protocol.DOM.GetRelayoutBoundaryRequest): Promise<{id: number, result: Protocol.DOM.GetRelayoutBoundaryResponse, sessionId: string}>;
|
1421
1421
|
|
1422
1422
|
/**
|
1423
1423
|
* Returns search results from given `fromIndex` to given `toIndex` from the search with the given
|
1424
1424
|
* identifier.
|
1425
1425
|
*/
|
1426
|
-
getSearchResults(params: Protocol.DOM.GetSearchResultsRequest): Promise<Protocol.DOM.GetSearchResultsResponse>;
|
1426
|
+
getSearchResults(params: Protocol.DOM.GetSearchResultsRequest): Promise<{id: number, result: Protocol.DOM.GetSearchResultsResponse, sessionId: string}>;
|
1427
1427
|
|
1428
1428
|
/**
|
1429
1429
|
* Hides any highlight.
|
1430
1430
|
*/
|
1431
|
-
hideHighlight(): Promise<void>;
|
1431
|
+
hideHighlight(): Promise<{id: number, result: void, sessionId: string}>;
|
1432
1432
|
|
1433
1433
|
/**
|
1434
1434
|
* Highlights DOM node.
|
1435
1435
|
*/
|
1436
|
-
highlightNode(): Promise<void>;
|
1436
|
+
highlightNode(): Promise<{id: number, result: void, sessionId: string}>;
|
1437
1437
|
|
1438
1438
|
/**
|
1439
1439
|
* Highlights given rectangle.
|
1440
1440
|
*/
|
1441
|
-
highlightRect(): Promise<void>;
|
1441
|
+
highlightRect(): Promise<{id: number, result: void, sessionId: string}>;
|
1442
1442
|
|
1443
1443
|
/**
|
1444
1444
|
* Marks last undoable state.
|
1445
1445
|
*/
|
1446
|
-
markUndoableState(): Promise<void>;
|
1446
|
+
markUndoableState(): Promise<{id: number, result: void, sessionId: string}>;
|
1447
1447
|
|
1448
1448
|
/**
|
1449
1449
|
* Moves node into the new container, places it before the given anchor.
|
1450
1450
|
*/
|
1451
|
-
moveTo(params: Protocol.DOM.MoveToRequest): Promise<Protocol.DOM.MoveToResponse>;
|
1451
|
+
moveTo(params: Protocol.DOM.MoveToRequest): Promise<{id: number, result: Protocol.DOM.MoveToResponse, sessionId: string}>;
|
1452
1452
|
|
1453
1453
|
/**
|
1454
1454
|
* Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or
|
1455
1455
|
* `cancelSearch` to end this search session.
|
1456
1456
|
*/
|
1457
|
-
performSearch(params: Protocol.DOM.PerformSearchRequest): Promise<Protocol.DOM.PerformSearchResponse>;
|
1457
|
+
performSearch(params: Protocol.DOM.PerformSearchRequest): Promise<{id: number, result: Protocol.DOM.PerformSearchResponse, sessionId: string}>;
|
1458
1458
|
|
1459
1459
|
/**
|
1460
1460
|
* Requests that the node is sent to the caller given its path. // FIXME, use XPath
|
1461
1461
|
*/
|
1462
|
-
pushNodeByPathToFrontend(params: Protocol.DOM.PushNodeByPathToFrontendRequest): Promise<Protocol.DOM.PushNodeByPathToFrontendResponse>;
|
1462
|
+
pushNodeByPathToFrontend(params: Protocol.DOM.PushNodeByPathToFrontendRequest): Promise<{id: number, result: Protocol.DOM.PushNodeByPathToFrontendResponse, sessionId: string}>;
|
1463
1463
|
|
1464
1464
|
/**
|
1465
1465
|
* Requests that a batch of nodes is sent to the caller given their backend node ids.
|
1466
1466
|
*/
|
1467
|
-
pushNodesByBackendIdsToFrontend(params: Protocol.DOM.PushNodesByBackendIdsToFrontendRequest): Promise<Protocol.DOM.PushNodesByBackendIdsToFrontendResponse>;
|
1467
|
+
pushNodesByBackendIdsToFrontend(params: Protocol.DOM.PushNodesByBackendIdsToFrontendRequest): Promise<{id: number, result: Protocol.DOM.PushNodesByBackendIdsToFrontendResponse, sessionId: string}>;
|
1468
1468
|
|
1469
1469
|
/**
|
1470
1470
|
* Executes `querySelector` on a given node.
|
1471
1471
|
*/
|
1472
|
-
querySelector(params: Protocol.DOM.QuerySelectorRequest): Promise<Protocol.DOM.QuerySelectorResponse>;
|
1472
|
+
querySelector(params: Protocol.DOM.QuerySelectorRequest): Promise<{id: number, result: Protocol.DOM.QuerySelectorResponse, sessionId: string}>;
|
1473
1473
|
|
1474
1474
|
/**
|
1475
1475
|
* Executes `querySelectorAll` on a given node.
|
1476
1476
|
*/
|
1477
|
-
querySelectorAll(params: Protocol.DOM.QuerySelectorAllRequest): Promise<Protocol.DOM.QuerySelectorAllResponse>;
|
1477
|
+
querySelectorAll(params: Protocol.DOM.QuerySelectorAllRequest): Promise<{id: number, result: Protocol.DOM.QuerySelectorAllResponse, sessionId: string}>;
|
1478
1478
|
|
1479
1479
|
/**
|
1480
1480
|
* Returns NodeIds of current top layer elements.
|
1481
1481
|
* Top layer is rendered closest to the user within a viewport, therefore its elements always
|
1482
1482
|
* appear on top of all other content.
|
1483
1483
|
*/
|
1484
|
-
getTopLayerElements(): Promise<Protocol.DOM.GetTopLayerElementsResponse>;
|
1484
|
+
getTopLayerElements(): Promise<{id: number, result: Protocol.DOM.GetTopLayerElementsResponse, sessionId: string}>;
|
1485
1485
|
|
1486
1486
|
/**
|
1487
1487
|
* Re-does the last undone action.
|
1488
1488
|
*/
|
1489
|
-
redo(): Promise<void>;
|
1489
|
+
redo(): Promise<{id: number, result: void, sessionId: string}>;
|
1490
1490
|
|
1491
1491
|
/**
|
1492
1492
|
* Removes attribute with given name from an element with given id.
|
1493
1493
|
*/
|
1494
|
-
removeAttribute(params: Protocol.DOM.RemoveAttributeRequest): Promise<void>;
|
1494
|
+
removeAttribute(params: Protocol.DOM.RemoveAttributeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1495
1495
|
|
1496
1496
|
/**
|
1497
1497
|
* Removes node with given id.
|
1498
1498
|
*/
|
1499
|
-
removeNode(params: Protocol.DOM.RemoveNodeRequest): Promise<void>;
|
1499
|
+
removeNode(params: Protocol.DOM.RemoveNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1500
1500
|
|
1501
1501
|
/**
|
1502
1502
|
* Requests that children of the node with given id are returned to the caller in form of
|
1503
1503
|
* `setChildNodes` events where not only immediate children are retrieved, but all children down to
|
1504
1504
|
* the specified depth.
|
1505
1505
|
*/
|
1506
|
-
requestChildNodes(params: Protocol.DOM.RequestChildNodesRequest): Promise<void>;
|
1506
|
+
requestChildNodes(params: Protocol.DOM.RequestChildNodesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1507
1507
|
|
1508
1508
|
/**
|
1509
1509
|
* Requests that the node is sent to the caller given the JavaScript node object reference. All
|
1510
1510
|
* nodes that form the path from the node to the root are also sent to the client as a series of
|
1511
1511
|
* `setChildNodes` notifications.
|
1512
1512
|
*/
|
1513
|
-
requestNode(params: Protocol.DOM.RequestNodeRequest): Promise<Protocol.DOM.RequestNodeResponse>;
|
1513
|
+
requestNode(params: Protocol.DOM.RequestNodeRequest): Promise<{id: number, result: Protocol.DOM.RequestNodeResponse, sessionId: string}>;
|
1514
1514
|
|
1515
1515
|
/**
|
1516
1516
|
* Resolves the JavaScript node object for a given NodeId or BackendNodeId.
|
1517
1517
|
*/
|
1518
|
-
resolveNode(params: Protocol.DOM.ResolveNodeRequest): Promise<Protocol.DOM.ResolveNodeResponse>;
|
1518
|
+
resolveNode(params: Protocol.DOM.ResolveNodeRequest): Promise<{id: number, result: Protocol.DOM.ResolveNodeResponse, sessionId: string}>;
|
1519
1519
|
|
1520
1520
|
/**
|
1521
1521
|
* Sets attribute for an element with given id.
|
1522
1522
|
*/
|
1523
|
-
setAttributeValue(params: Protocol.DOM.SetAttributeValueRequest): Promise<void>;
|
1523
|
+
setAttributeValue(params: Protocol.DOM.SetAttributeValueRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1524
1524
|
|
1525
1525
|
/**
|
1526
1526
|
* Sets attributes on element with given id. This method is useful when user edits some existing
|
1527
1527
|
* attribute value and types in several attribute name/value pairs.
|
1528
1528
|
*/
|
1529
|
-
setAttributesAsText(params: Protocol.DOM.SetAttributesAsTextRequest): Promise<void>;
|
1529
|
+
setAttributesAsText(params: Protocol.DOM.SetAttributesAsTextRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1530
1530
|
|
1531
1531
|
/**
|
1532
1532
|
* Sets files for the given file input element.
|
1533
1533
|
*/
|
1534
|
-
setFileInputFiles(params: Protocol.DOM.SetFileInputFilesRequest): Promise<void>;
|
1534
|
+
setFileInputFiles(params: Protocol.DOM.SetFileInputFilesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1535
1535
|
|
1536
1536
|
/**
|
1537
1537
|
* Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.
|
1538
1538
|
*/
|
1539
|
-
setNodeStackTracesEnabled(params: Protocol.DOM.SetNodeStackTracesEnabledRequest): Promise<void>;
|
1539
|
+
setNodeStackTracesEnabled(params: Protocol.DOM.SetNodeStackTracesEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1540
1540
|
|
1541
1541
|
/**
|
1542
1542
|
* Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
|
1543
1543
|
*/
|
1544
|
-
getNodeStackTraces(params: Protocol.DOM.GetNodeStackTracesRequest): Promise<Protocol.DOM.GetNodeStackTracesResponse>;
|
1544
|
+
getNodeStackTraces(params: Protocol.DOM.GetNodeStackTracesRequest): Promise<{id: number, result: Protocol.DOM.GetNodeStackTracesResponse, sessionId: string}>;
|
1545
1545
|
|
1546
1546
|
/**
|
1547
1547
|
* Returns file information for the given
|
1548
1548
|
* File wrapper.
|
1549
1549
|
*/
|
1550
|
-
getFileInfo(params: Protocol.DOM.GetFileInfoRequest): Promise<Protocol.DOM.GetFileInfoResponse>;
|
1550
|
+
getFileInfo(params: Protocol.DOM.GetFileInfoRequest): Promise<{id: number, result: Protocol.DOM.GetFileInfoResponse, sessionId: string}>;
|
1551
1551
|
|
1552
1552
|
/**
|
1553
1553
|
* Enables console to refer to the node with given id via $x (see Command Line API for more details
|
1554
1554
|
* $x functions).
|
1555
1555
|
*/
|
1556
|
-
setInspectedNode(params: Protocol.DOM.SetInspectedNodeRequest): Promise<void>;
|
1556
|
+
setInspectedNode(params: Protocol.DOM.SetInspectedNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1557
1557
|
|
1558
1558
|
/**
|
1559
1559
|
* Sets node name for a node with given id.
|
1560
1560
|
*/
|
1561
|
-
setNodeName(params: Protocol.DOM.SetNodeNameRequest): Promise<Protocol.DOM.SetNodeNameResponse>;
|
1561
|
+
setNodeName(params: Protocol.DOM.SetNodeNameRequest): Promise<{id: number, result: Protocol.DOM.SetNodeNameResponse, sessionId: string}>;
|
1562
1562
|
|
1563
1563
|
/**
|
1564
1564
|
* Sets node value for a node with given id.
|
1565
1565
|
*/
|
1566
|
-
setNodeValue(params: Protocol.DOM.SetNodeValueRequest): Promise<void>;
|
1566
|
+
setNodeValue(params: Protocol.DOM.SetNodeValueRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1567
1567
|
|
1568
1568
|
/**
|
1569
1569
|
* Sets node HTML markup, returns new node id.
|
1570
1570
|
*/
|
1571
|
-
setOuterHTML(params: Protocol.DOM.SetOuterHTMLRequest): Promise<void>;
|
1571
|
+
setOuterHTML(params: Protocol.DOM.SetOuterHTMLRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1572
1572
|
|
1573
1573
|
/**
|
1574
1574
|
* Undoes the last performed action.
|
1575
1575
|
*/
|
1576
|
-
undo(): Promise<void>;
|
1576
|
+
undo(): Promise<{id: number, result: void, sessionId: string}>;
|
1577
1577
|
|
1578
1578
|
/**
|
1579
1579
|
* Returns iframe node that owns iframe with the given domain.
|
1580
1580
|
*/
|
1581
|
-
getFrameOwner(params: Protocol.DOM.GetFrameOwnerRequest): Promise<Protocol.DOM.GetFrameOwnerResponse>;
|
1581
|
+
getFrameOwner(params: Protocol.DOM.GetFrameOwnerRequest): Promise<{id: number, result: Protocol.DOM.GetFrameOwnerResponse, sessionId: string}>;
|
1582
1582
|
|
1583
1583
|
/**
|
1584
1584
|
* Returns the query container of the given node based on container query
|
@@ -1586,13 +1586,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1586
1586
|
* provided, the style container is returned, which is the direct parent or the
|
1587
1587
|
* closest element with a matching container-name.
|
1588
1588
|
*/
|
1589
|
-
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<Protocol.DOM.GetContainerForNodeResponse>;
|
1589
|
+
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<{id: number, result: Protocol.DOM.GetContainerForNodeResponse, sessionId: string}>;
|
1590
1590
|
|
1591
1591
|
/**
|
1592
1592
|
* Returns the descendants of a container query container that have
|
1593
1593
|
* container queries against this container.
|
1594
1594
|
*/
|
1595
|
-
getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<Protocol.DOM.GetQueryingDescendantsForContainerResponse>;
|
1595
|
+
getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<{id: number, result: Protocol.DOM.GetQueryingDescendantsForContainerResponse, sessionId: string}>;
|
1596
1596
|
|
1597
1597
|
/**
|
1598
1598
|
* Fired when `Element`'s attribute is modified.
|
@@ -1706,52 +1706,52 @@ export namespace ProtocolTestsProxyApi {
|
|
1706
1706
|
/**
|
1707
1707
|
* Returns event listeners of the given object.
|
1708
1708
|
*/
|
1709
|
-
getEventListeners(params: Protocol.DOMDebugger.GetEventListenersRequest): Promise<Protocol.DOMDebugger.GetEventListenersResponse>;
|
1709
|
+
getEventListeners(params: Protocol.DOMDebugger.GetEventListenersRequest): Promise<{id: number, result: Protocol.DOMDebugger.GetEventListenersResponse, sessionId: string}>;
|
1710
1710
|
|
1711
1711
|
/**
|
1712
1712
|
* Removes DOM breakpoint that was set using `setDOMBreakpoint`.
|
1713
1713
|
*/
|
1714
|
-
removeDOMBreakpoint(params: Protocol.DOMDebugger.RemoveDOMBreakpointRequest): Promise<void>;
|
1714
|
+
removeDOMBreakpoint(params: Protocol.DOMDebugger.RemoveDOMBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1715
1715
|
|
1716
1716
|
/**
|
1717
1717
|
* Removes breakpoint on particular DOM event.
|
1718
1718
|
*/
|
1719
|
-
removeEventListenerBreakpoint(params: Protocol.DOMDebugger.RemoveEventListenerBreakpointRequest): Promise<void>;
|
1719
|
+
removeEventListenerBreakpoint(params: Protocol.DOMDebugger.RemoveEventListenerBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1720
1720
|
|
1721
1721
|
/**
|
1722
1722
|
* Removes breakpoint on particular native event.
|
1723
1723
|
*/
|
1724
|
-
removeInstrumentationBreakpoint(params: Protocol.DOMDebugger.RemoveInstrumentationBreakpointRequest): Promise<void>;
|
1724
|
+
removeInstrumentationBreakpoint(params: Protocol.DOMDebugger.RemoveInstrumentationBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1725
1725
|
|
1726
1726
|
/**
|
1727
1727
|
* Removes breakpoint from XMLHttpRequest.
|
1728
1728
|
*/
|
1729
|
-
removeXHRBreakpoint(params: Protocol.DOMDebugger.RemoveXHRBreakpointRequest): Promise<void>;
|
1729
|
+
removeXHRBreakpoint(params: Protocol.DOMDebugger.RemoveXHRBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1730
1730
|
|
1731
1731
|
/**
|
1732
1732
|
* Sets breakpoint on particular CSP violations.
|
1733
1733
|
*/
|
1734
|
-
setBreakOnCSPViolation(params: Protocol.DOMDebugger.SetBreakOnCSPViolationRequest): Promise<void>;
|
1734
|
+
setBreakOnCSPViolation(params: Protocol.DOMDebugger.SetBreakOnCSPViolationRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1735
1735
|
|
1736
1736
|
/**
|
1737
1737
|
* Sets breakpoint on particular operation with DOM.
|
1738
1738
|
*/
|
1739
|
-
setDOMBreakpoint(params: Protocol.DOMDebugger.SetDOMBreakpointRequest): Promise<void>;
|
1739
|
+
setDOMBreakpoint(params: Protocol.DOMDebugger.SetDOMBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1740
1740
|
|
1741
1741
|
/**
|
1742
1742
|
* Sets breakpoint on particular DOM event.
|
1743
1743
|
*/
|
1744
|
-
setEventListenerBreakpoint(params: Protocol.DOMDebugger.SetEventListenerBreakpointRequest): Promise<void>;
|
1744
|
+
setEventListenerBreakpoint(params: Protocol.DOMDebugger.SetEventListenerBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1745
1745
|
|
1746
1746
|
/**
|
1747
1747
|
* Sets breakpoint on particular native event.
|
1748
1748
|
*/
|
1749
|
-
setInstrumentationBreakpoint(params: Protocol.DOMDebugger.SetInstrumentationBreakpointRequest): Promise<void>;
|
1749
|
+
setInstrumentationBreakpoint(params: Protocol.DOMDebugger.SetInstrumentationBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1750
1750
|
|
1751
1751
|
/**
|
1752
1752
|
* Sets breakpoint on XMLHttpRequest.
|
1753
1753
|
*/
|
1754
|
-
setXHRBreakpoint(params: Protocol.DOMDebugger.SetXHRBreakpointRequest): Promise<void>;
|
1754
|
+
setXHRBreakpoint(params: Protocol.DOMDebugger.SetXHRBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1755
1755
|
|
1756
1756
|
}
|
1757
1757
|
|
@@ -1759,17 +1759,17 @@ export namespace ProtocolTestsProxyApi {
|
|
1759
1759
|
/**
|
1760
1760
|
* Sets breakpoint on particular native event.
|
1761
1761
|
*/
|
1762
|
-
setInstrumentationBreakpoint(params: Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest): Promise<void>;
|
1762
|
+
setInstrumentationBreakpoint(params: Protocol.EventBreakpoints.SetInstrumentationBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1763
1763
|
|
1764
1764
|
/**
|
1765
1765
|
* Removes breakpoint on particular native event.
|
1766
1766
|
*/
|
1767
|
-
removeInstrumentationBreakpoint(params: Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest): Promise<void>;
|
1767
|
+
removeInstrumentationBreakpoint(params: Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1768
1768
|
|
1769
1769
|
/**
|
1770
1770
|
* Removes all breakpoints
|
1771
1771
|
*/
|
1772
|
-
disable(): Promise<void>;
|
1772
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1773
1773
|
|
1774
1774
|
}
|
1775
1775
|
|
@@ -1777,12 +1777,12 @@ export namespace ProtocolTestsProxyApi {
|
|
1777
1777
|
/**
|
1778
1778
|
* Disables DOM snapshot agent for the given page.
|
1779
1779
|
*/
|
1780
|
-
disable(): Promise<void>;
|
1780
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1781
1781
|
|
1782
1782
|
/**
|
1783
1783
|
* Enables DOM snapshot agent for the given page.
|
1784
1784
|
*/
|
1785
|
-
enable(): Promise<void>;
|
1785
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
1786
1786
|
|
1787
1787
|
/**
|
1788
1788
|
* Returns a document snapshot, including the full DOM tree of the root node (including iframes,
|
@@ -1790,7 +1790,7 @@ export namespace ProtocolTestsProxyApi {
|
|
1790
1790
|
* white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is
|
1791
1791
|
* flattened.
|
1792
1792
|
*/
|
1793
|
-
getSnapshot(params: Protocol.DOMSnapshot.GetSnapshotRequest): Promise<Protocol.DOMSnapshot.GetSnapshotResponse>;
|
1793
|
+
getSnapshot(params: Protocol.DOMSnapshot.GetSnapshotRequest): Promise<{id: number, result: Protocol.DOMSnapshot.GetSnapshotResponse, sessionId: string}>;
|
1794
1794
|
|
1795
1795
|
/**
|
1796
1796
|
* Returns a document snapshot, including the full DOM tree of the root node (including iframes,
|
@@ -1798,28 +1798,28 @@ export namespace ProtocolTestsProxyApi {
|
|
1798
1798
|
* white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is
|
1799
1799
|
* flattened.
|
1800
1800
|
*/
|
1801
|
-
captureSnapshot(params: Protocol.DOMSnapshot.CaptureSnapshotRequest): Promise<Protocol.DOMSnapshot.CaptureSnapshotResponse>;
|
1801
|
+
captureSnapshot(params: Protocol.DOMSnapshot.CaptureSnapshotRequest): Promise<{id: number, result: Protocol.DOMSnapshot.CaptureSnapshotResponse, sessionId: string}>;
|
1802
1802
|
|
1803
1803
|
}
|
1804
1804
|
|
1805
1805
|
export interface DOMStorageApi {
|
1806
|
-
clear(params: Protocol.DOMStorage.ClearRequest): Promise<void>;
|
1806
|
+
clear(params: Protocol.DOMStorage.ClearRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1807
1807
|
|
1808
1808
|
/**
|
1809
1809
|
* Disables storage tracking, prevents storage events from being sent to the client.
|
1810
1810
|
*/
|
1811
|
-
disable(): Promise<void>;
|
1811
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1812
1812
|
|
1813
1813
|
/**
|
1814
1814
|
* Enables storage tracking, storage events will now be delivered to the client.
|
1815
1815
|
*/
|
1816
|
-
enable(): Promise<void>;
|
1816
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
1817
1817
|
|
1818
|
-
getDOMStorageItems(params: Protocol.DOMStorage.GetDOMStorageItemsRequest): Promise<Protocol.DOMStorage.GetDOMStorageItemsResponse>;
|
1818
|
+
getDOMStorageItems(params: Protocol.DOMStorage.GetDOMStorageItemsRequest): Promise<{id: number, result: Protocol.DOMStorage.GetDOMStorageItemsResponse, sessionId: string}>;
|
1819
1819
|
|
1820
|
-
removeDOMStorageItem(params: Protocol.DOMStorage.RemoveDOMStorageItemRequest): Promise<void>;
|
1820
|
+
removeDOMStorageItem(params: Protocol.DOMStorage.RemoveDOMStorageItemRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1821
1821
|
|
1822
|
-
setDOMStorageItem(params: Protocol.DOMStorage.SetDOMStorageItemRequest): Promise<void>;
|
1822
|
+
setDOMStorageItem(params: Protocol.DOMStorage.SetDOMStorageItemRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1823
1823
|
|
1824
1824
|
onDomStorageItemAdded(listener: (event: { params: Protocol.DOMStorage.DomStorageItemAddedEvent }) => void): void;
|
1825
1825
|
offDomStorageItemAdded(listener: (event: { params: Protocol.DOMStorage.DomStorageItemAddedEvent }) => void): void;
|
@@ -1843,16 +1843,16 @@ export namespace ProtocolTestsProxyApi {
|
|
1843
1843
|
/**
|
1844
1844
|
* Disables database tracking, prevents database events from being sent to the client.
|
1845
1845
|
*/
|
1846
|
-
disable(): Promise<void>;
|
1846
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
1847
1847
|
|
1848
1848
|
/**
|
1849
1849
|
* Enables database tracking, database events will now be delivered to the client.
|
1850
1850
|
*/
|
1851
|
-
enable(): Promise<void>;
|
1851
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
1852
1852
|
|
1853
|
-
executeSQL(params: Protocol.Database.ExecuteSQLRequest): Promise<Protocol.Database.ExecuteSQLResponse>;
|
1853
|
+
executeSQL(params: Protocol.Database.ExecuteSQLRequest): Promise<{id: number, result: Protocol.Database.ExecuteSQLResponse, sessionId: string}>;
|
1854
1854
|
|
1855
|
-
getDatabaseTableNames(params: Protocol.Database.GetDatabaseTableNamesRequest): Promise<Protocol.Database.GetDatabaseTableNamesResponse>;
|
1855
|
+
getDatabaseTableNames(params: Protocol.Database.GetDatabaseTableNamesRequest): Promise<{id: number, result: Protocol.Database.GetDatabaseTableNamesResponse, sessionId: string}>;
|
1856
1856
|
|
1857
1857
|
onAddDatabase(listener: (event: { params: Protocol.Database.AddDatabaseEvent }) => void): void;
|
1858
1858
|
offAddDatabase(listener: (event: { params: Protocol.Database.AddDatabaseEvent }) => void): void;
|
@@ -1864,12 +1864,12 @@ export namespace ProtocolTestsProxyApi {
|
|
1864
1864
|
/**
|
1865
1865
|
* Clears the overridden Device Orientation.
|
1866
1866
|
*/
|
1867
|
-
clearDeviceOrientationOverride(): Promise<void>;
|
1867
|
+
clearDeviceOrientationOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
1868
1868
|
|
1869
1869
|
/**
|
1870
1870
|
* Overrides the Device Orientation.
|
1871
1871
|
*/
|
1872
|
-
setDeviceOrientationOverride(params: Protocol.DeviceOrientation.SetDeviceOrientationOverrideRequest): Promise<void>;
|
1872
|
+
setDeviceOrientationOverride(params: Protocol.DeviceOrientation.SetDeviceOrientationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1873
1873
|
|
1874
1874
|
}
|
1875
1875
|
|
@@ -1877,74 +1877,88 @@ export namespace ProtocolTestsProxyApi {
|
|
1877
1877
|
/**
|
1878
1878
|
* Tells whether emulation is supported.
|
1879
1879
|
*/
|
1880
|
-
canEmulate(): Promise<Protocol.Emulation.CanEmulateResponse>;
|
1880
|
+
canEmulate(): Promise<{id: number, result: Protocol.Emulation.CanEmulateResponse, sessionId: string}>;
|
1881
1881
|
|
1882
1882
|
/**
|
1883
1883
|
* Clears the overridden device metrics.
|
1884
1884
|
*/
|
1885
|
-
clearDeviceMetricsOverride(): Promise<void>;
|
1885
|
+
clearDeviceMetricsOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
1886
1886
|
|
1887
1887
|
/**
|
1888
1888
|
* Clears the overridden Geolocation Position and Error.
|
1889
1889
|
*/
|
1890
|
-
clearGeolocationOverride(): Promise<void>;
|
1890
|
+
clearGeolocationOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
1891
1891
|
|
1892
1892
|
/**
|
1893
1893
|
* Requests that page scale factor is reset to initial values.
|
1894
1894
|
*/
|
1895
|
-
resetPageScaleFactor(): Promise<void>;
|
1895
|
+
resetPageScaleFactor(): Promise<{id: number, result: void, sessionId: string}>;
|
1896
1896
|
|
1897
1897
|
/**
|
1898
1898
|
* Enables or disables simulating a focused and active page.
|
1899
1899
|
*/
|
1900
|
-
setFocusEmulationEnabled(params: Protocol.Emulation.SetFocusEmulationEnabledRequest): Promise<void>;
|
1900
|
+
setFocusEmulationEnabled(params: Protocol.Emulation.SetFocusEmulationEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1901
1901
|
|
1902
1902
|
/**
|
1903
1903
|
* Automatically render all web contents using a dark theme.
|
1904
1904
|
*/
|
1905
|
-
setAutoDarkModeOverride(params: Protocol.Emulation.SetAutoDarkModeOverrideRequest): Promise<void>;
|
1905
|
+
setAutoDarkModeOverride(params: Protocol.Emulation.SetAutoDarkModeOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1906
1906
|
|
1907
1907
|
/**
|
1908
1908
|
* Enables CPU throttling to emulate slow CPUs.
|
1909
1909
|
*/
|
1910
|
-
setCPUThrottlingRate(params: Protocol.Emulation.SetCPUThrottlingRateRequest): Promise<void>;
|
1910
|
+
setCPUThrottlingRate(params: Protocol.Emulation.SetCPUThrottlingRateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1911
1911
|
|
1912
1912
|
/**
|
1913
1913
|
* Sets or clears an override of the default background color of the frame. This override is used
|
1914
1914
|
* if the content does not specify one.
|
1915
1915
|
*/
|
1916
|
-
setDefaultBackgroundColorOverride(params: Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest): Promise<void>;
|
1916
|
+
setDefaultBackgroundColorOverride(params: Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1917
1917
|
|
1918
1918
|
/**
|
1919
1919
|
* Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
1920
1920
|
* window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
1921
1921
|
* query results).
|
1922
1922
|
*/
|
1923
|
-
setDeviceMetricsOverride(params: Protocol.Emulation.SetDeviceMetricsOverrideRequest): Promise<void>;
|
1923
|
+
setDeviceMetricsOverride(params: Protocol.Emulation.SetDeviceMetricsOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1924
1924
|
|
1925
|
-
|
1925
|
+
/**
|
1926
|
+
* Start reporting the given posture value to the Device Posture API.
|
1927
|
+
* This override can also be set in setDeviceMetricsOverride().
|
1928
|
+
*/
|
1929
|
+
setDevicePostureOverride(params: Protocol.Emulation.SetDevicePostureOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1930
|
+
|
1931
|
+
/**
|
1932
|
+
* Clears a device posture override set with either setDeviceMetricsOverride()
|
1933
|
+
* or setDevicePostureOverride() and starts using posture information from the
|
1934
|
+
* platform again.
|
1935
|
+
* Does nothing if no override is set.
|
1936
|
+
*/
|
1937
|
+
clearDevicePostureOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
1938
|
+
|
1939
|
+
setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1926
1940
|
|
1927
|
-
setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<void>;
|
1941
|
+
setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1928
1942
|
|
1929
|
-
setEmitTouchEventsForMouse(params: Protocol.Emulation.SetEmitTouchEventsForMouseRequest): Promise<void>;
|
1943
|
+
setEmitTouchEventsForMouse(params: Protocol.Emulation.SetEmitTouchEventsForMouseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1930
1944
|
|
1931
1945
|
/**
|
1932
1946
|
* Emulates the given media type or media feature for CSS media queries.
|
1933
1947
|
*/
|
1934
|
-
setEmulatedMedia(params: Protocol.Emulation.SetEmulatedMediaRequest): Promise<void>;
|
1948
|
+
setEmulatedMedia(params: Protocol.Emulation.SetEmulatedMediaRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1935
1949
|
|
1936
1950
|
/**
|
1937
1951
|
* Emulates the given vision deficiency.
|
1938
1952
|
*/
|
1939
|
-
setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<void>;
|
1953
|
+
setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1940
1954
|
|
1941
1955
|
/**
|
1942
1956
|
* Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
|
1943
1957
|
* unavailable.
|
1944
1958
|
*/
|
1945
|
-
setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise<void>;
|
1959
|
+
setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1946
1960
|
|
1947
|
-
getOverriddenSensorInformation(params: Protocol.Emulation.GetOverriddenSensorInformationRequest): Promise<Protocol.Emulation.GetOverriddenSensorInformationResponse>;
|
1961
|
+
getOverriddenSensorInformation(params: Protocol.Emulation.GetOverriddenSensorInformationRequest): Promise<{id: number, result: Protocol.Emulation.GetOverriddenSensorInformationResponse, sessionId: string}>;
|
1948
1962
|
|
1949
1963
|
/**
|
1950
1964
|
* Overrides a platform sensor of a given type. If |enabled| is true, calls to
|
@@ -1953,81 +1967,81 @@ export namespace ProtocolTestsProxyApi {
|
|
1953
1967
|
* sensor-backend Sensor objects will fire an error event and new calls to
|
1954
1968
|
* Sensor.start() will attempt to use a real sensor instead.
|
1955
1969
|
*/
|
1956
|
-
setSensorOverrideEnabled(params: Protocol.Emulation.SetSensorOverrideEnabledRequest): Promise<void>;
|
1970
|
+
setSensorOverrideEnabled(params: Protocol.Emulation.SetSensorOverrideEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1957
1971
|
|
1958
1972
|
/**
|
1959
1973
|
* Updates the sensor readings reported by a sensor type previously overridden
|
1960
1974
|
* by setSensorOverrideEnabled.
|
1961
1975
|
*/
|
1962
|
-
setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<void>;
|
1976
|
+
setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1963
1977
|
|
1964
1978
|
/**
|
1965
1979
|
* Overrides the Idle state.
|
1966
1980
|
*/
|
1967
|
-
setIdleOverride(params: Protocol.Emulation.SetIdleOverrideRequest): Promise<void>;
|
1981
|
+
setIdleOverride(params: Protocol.Emulation.SetIdleOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1968
1982
|
|
1969
1983
|
/**
|
1970
1984
|
* Clears Idle state overrides.
|
1971
1985
|
*/
|
1972
|
-
clearIdleOverride(): Promise<void>;
|
1986
|
+
clearIdleOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
1973
1987
|
|
1974
1988
|
/**
|
1975
1989
|
* Overrides value returned by the javascript navigator object.
|
1976
1990
|
*/
|
1977
|
-
setNavigatorOverrides(params: Protocol.Emulation.SetNavigatorOverridesRequest): Promise<void>;
|
1991
|
+
setNavigatorOverrides(params: Protocol.Emulation.SetNavigatorOverridesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1978
1992
|
|
1979
1993
|
/**
|
1980
1994
|
* Sets a specified page scale factor.
|
1981
1995
|
*/
|
1982
|
-
setPageScaleFactor(params: Protocol.Emulation.SetPageScaleFactorRequest): Promise<void>;
|
1996
|
+
setPageScaleFactor(params: Protocol.Emulation.SetPageScaleFactorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1983
1997
|
|
1984
1998
|
/**
|
1985
1999
|
* Switches script execution in the page.
|
1986
2000
|
*/
|
1987
|
-
setScriptExecutionDisabled(params: Protocol.Emulation.SetScriptExecutionDisabledRequest): Promise<void>;
|
2001
|
+
setScriptExecutionDisabled(params: Protocol.Emulation.SetScriptExecutionDisabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1988
2002
|
|
1989
2003
|
/**
|
1990
2004
|
* Enables touch on platforms which do not support them.
|
1991
2005
|
*/
|
1992
|
-
setTouchEmulationEnabled(params: Protocol.Emulation.SetTouchEmulationEnabledRequest): Promise<void>;
|
2006
|
+
setTouchEmulationEnabled(params: Protocol.Emulation.SetTouchEmulationEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1993
2007
|
|
1994
2008
|
/**
|
1995
2009
|
* Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets
|
1996
2010
|
* the current virtual time policy. Note this supersedes any previous time budget.
|
1997
2011
|
*/
|
1998
|
-
setVirtualTimePolicy(params: Protocol.Emulation.SetVirtualTimePolicyRequest): Promise<Protocol.Emulation.SetVirtualTimePolicyResponse>;
|
2012
|
+
setVirtualTimePolicy(params: Protocol.Emulation.SetVirtualTimePolicyRequest): Promise<{id: number, result: Protocol.Emulation.SetVirtualTimePolicyResponse, sessionId: string}>;
|
1999
2013
|
|
2000
2014
|
/**
|
2001
2015
|
* Overrides default host system locale with the specified one.
|
2002
2016
|
*/
|
2003
|
-
setLocaleOverride(params: Protocol.Emulation.SetLocaleOverrideRequest): Promise<void>;
|
2017
|
+
setLocaleOverride(params: Protocol.Emulation.SetLocaleOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2004
2018
|
|
2005
2019
|
/**
|
2006
2020
|
* Overrides default host system timezone with the specified one.
|
2007
2021
|
*/
|
2008
|
-
setTimezoneOverride(params: Protocol.Emulation.SetTimezoneOverrideRequest): Promise<void>;
|
2022
|
+
setTimezoneOverride(params: Protocol.Emulation.SetTimezoneOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2009
2023
|
|
2010
2024
|
/**
|
2011
2025
|
* Resizes the frame/viewport of the page. Note that this does not affect the frame's container
|
2012
2026
|
* (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported
|
2013
2027
|
* on Android.
|
2014
2028
|
*/
|
2015
|
-
setVisibleSize(params: Protocol.Emulation.SetVisibleSizeRequest): Promise<void>;
|
2029
|
+
setVisibleSize(params: Protocol.Emulation.SetVisibleSizeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2016
2030
|
|
2017
|
-
setDisabledImageTypes(params: Protocol.Emulation.SetDisabledImageTypesRequest): Promise<void>;
|
2031
|
+
setDisabledImageTypes(params: Protocol.Emulation.SetDisabledImageTypesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2018
2032
|
|
2019
|
-
setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<void>;
|
2033
|
+
setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2020
2034
|
|
2021
2035
|
/**
|
2022
2036
|
* Allows overriding user agent with the given string.
|
2023
2037
|
* `userAgentMetadata` must be set for Client Hint headers to be sent.
|
2024
2038
|
*/
|
2025
|
-
setUserAgentOverride(params: Protocol.Emulation.SetUserAgentOverrideRequest): Promise<void>;
|
2039
|
+
setUserAgentOverride(params: Protocol.Emulation.SetUserAgentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2026
2040
|
|
2027
2041
|
/**
|
2028
2042
|
* Allows overriding the automation flag.
|
2029
2043
|
*/
|
2030
|
-
setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest): Promise<void>;
|
2044
|
+
setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2031
2045
|
|
2032
2046
|
/**
|
2033
2047
|
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
|
@@ -2045,17 +2059,17 @@ export namespace ProtocolTestsProxyApi {
|
|
2045
2059
|
* BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also
|
2046
2060
|
* https://goo.gle/chrome-headless-rendering for more background.
|
2047
2061
|
*/
|
2048
|
-
beginFrame(params: Protocol.HeadlessExperimental.BeginFrameRequest): Promise<Protocol.HeadlessExperimental.BeginFrameResponse>;
|
2062
|
+
beginFrame(params: Protocol.HeadlessExperimental.BeginFrameRequest): Promise<{id: number, result: Protocol.HeadlessExperimental.BeginFrameResponse, sessionId: string}>;
|
2049
2063
|
|
2050
2064
|
/**
|
2051
2065
|
* Disables headless events for the target.
|
2052
2066
|
*/
|
2053
|
-
disable(): Promise<void>;
|
2067
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2054
2068
|
|
2055
2069
|
/**
|
2056
2070
|
* Enables headless events for the target.
|
2057
2071
|
*/
|
2058
|
-
enable(): Promise<void>;
|
2072
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2059
2073
|
|
2060
2074
|
}
|
2061
2075
|
|
@@ -2063,17 +2077,17 @@ export namespace ProtocolTestsProxyApi {
|
|
2063
2077
|
/**
|
2064
2078
|
* Close the stream, discard any temporary backing storage.
|
2065
2079
|
*/
|
2066
|
-
close(params: Protocol.IO.CloseRequest): Promise<void>;
|
2080
|
+
close(params: Protocol.IO.CloseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2067
2081
|
|
2068
2082
|
/**
|
2069
2083
|
* Read a chunk of the stream
|
2070
2084
|
*/
|
2071
|
-
read(params: Protocol.IO.ReadRequest): Promise<Protocol.IO.ReadResponse>;
|
2085
|
+
read(params: Protocol.IO.ReadRequest): Promise<{id: number, result: Protocol.IO.ReadResponse, sessionId: string}>;
|
2072
2086
|
|
2073
2087
|
/**
|
2074
2088
|
* Return UUID of Blob object specified by a remote object id.
|
2075
2089
|
*/
|
2076
|
-
resolveBlob(params: Protocol.IO.ResolveBlobRequest): Promise<Protocol.IO.ResolveBlobResponse>;
|
2090
|
+
resolveBlob(params: Protocol.IO.ResolveBlobRequest): Promise<{id: number, result: Protocol.IO.ResolveBlobResponse, sessionId: string}>;
|
2077
2091
|
|
2078
2092
|
}
|
2079
2093
|
|
@@ -2081,47 +2095,47 @@ export namespace ProtocolTestsProxyApi {
|
|
2081
2095
|
/**
|
2082
2096
|
* Clears all entries from an object store.
|
2083
2097
|
*/
|
2084
|
-
clearObjectStore(params: Protocol.IndexedDB.ClearObjectStoreRequest): Promise<void>;
|
2098
|
+
clearObjectStore(params: Protocol.IndexedDB.ClearObjectStoreRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2085
2099
|
|
2086
2100
|
/**
|
2087
2101
|
* Deletes a database.
|
2088
2102
|
*/
|
2089
|
-
deleteDatabase(params: Protocol.IndexedDB.DeleteDatabaseRequest): Promise<void>;
|
2103
|
+
deleteDatabase(params: Protocol.IndexedDB.DeleteDatabaseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2090
2104
|
|
2091
2105
|
/**
|
2092
2106
|
* Delete a range of entries from an object store
|
2093
2107
|
*/
|
2094
|
-
deleteObjectStoreEntries(params: Protocol.IndexedDB.DeleteObjectStoreEntriesRequest): Promise<void>;
|
2108
|
+
deleteObjectStoreEntries(params: Protocol.IndexedDB.DeleteObjectStoreEntriesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2095
2109
|
|
2096
2110
|
/**
|
2097
2111
|
* Disables events from backend.
|
2098
2112
|
*/
|
2099
|
-
disable(): Promise<void>;
|
2113
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2100
2114
|
|
2101
2115
|
/**
|
2102
2116
|
* Enables events from backend.
|
2103
2117
|
*/
|
2104
|
-
enable(): Promise<void>;
|
2118
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2105
2119
|
|
2106
2120
|
/**
|
2107
2121
|
* Requests data from object store or index.
|
2108
2122
|
*/
|
2109
|
-
requestData(params: Protocol.IndexedDB.RequestDataRequest): Promise<Protocol.IndexedDB.RequestDataResponse>;
|
2123
|
+
requestData(params: Protocol.IndexedDB.RequestDataRequest): Promise<{id: number, result: Protocol.IndexedDB.RequestDataResponse, sessionId: string}>;
|
2110
2124
|
|
2111
2125
|
/**
|
2112
2126
|
* Gets metadata of an object store.
|
2113
2127
|
*/
|
2114
|
-
getMetadata(params: Protocol.IndexedDB.GetMetadataRequest): Promise<Protocol.IndexedDB.GetMetadataResponse>;
|
2128
|
+
getMetadata(params: Protocol.IndexedDB.GetMetadataRequest): Promise<{id: number, result: Protocol.IndexedDB.GetMetadataResponse, sessionId: string}>;
|
2115
2129
|
|
2116
2130
|
/**
|
2117
2131
|
* Requests database with given name in given frame.
|
2118
2132
|
*/
|
2119
|
-
requestDatabase(params: Protocol.IndexedDB.RequestDatabaseRequest): Promise<Protocol.IndexedDB.RequestDatabaseResponse>;
|
2133
|
+
requestDatabase(params: Protocol.IndexedDB.RequestDatabaseRequest): Promise<{id: number, result: Protocol.IndexedDB.RequestDatabaseResponse, sessionId: string}>;
|
2120
2134
|
|
2121
2135
|
/**
|
2122
2136
|
* Requests database names for given security origin.
|
2123
2137
|
*/
|
2124
|
-
requestDatabaseNames(params: Protocol.IndexedDB.RequestDatabaseNamesRequest): Promise<Protocol.IndexedDB.RequestDatabaseNamesResponse>;
|
2138
|
+
requestDatabaseNames(params: Protocol.IndexedDB.RequestDatabaseNamesRequest): Promise<{id: number, result: Protocol.IndexedDB.RequestDatabaseNamesResponse, sessionId: string}>;
|
2125
2139
|
|
2126
2140
|
}
|
2127
2141
|
|
@@ -2129,71 +2143,71 @@ export namespace ProtocolTestsProxyApi {
|
|
2129
2143
|
/**
|
2130
2144
|
* Dispatches a drag event into the page.
|
2131
2145
|
*/
|
2132
|
-
dispatchDragEvent(params: Protocol.Input.DispatchDragEventRequest): Promise<void>;
|
2146
|
+
dispatchDragEvent(params: Protocol.Input.DispatchDragEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2133
2147
|
|
2134
2148
|
/**
|
2135
2149
|
* Dispatches a key event to the page.
|
2136
2150
|
*/
|
2137
|
-
dispatchKeyEvent(params: Protocol.Input.DispatchKeyEventRequest): Promise<void>;
|
2151
|
+
dispatchKeyEvent(params: Protocol.Input.DispatchKeyEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2138
2152
|
|
2139
2153
|
/**
|
2140
2154
|
* This method emulates inserting text that doesn't come from a key press,
|
2141
2155
|
* for example an emoji keyboard or an IME.
|
2142
2156
|
*/
|
2143
|
-
insertText(params: Protocol.Input.InsertTextRequest): Promise<void>;
|
2157
|
+
insertText(params: Protocol.Input.InsertTextRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2144
2158
|
|
2145
2159
|
/**
|
2146
2160
|
* This method sets the current candidate text for IME.
|
2147
2161
|
* Use imeCommitComposition to commit the final text.
|
2148
2162
|
* Use imeSetComposition with empty string as text to cancel composition.
|
2149
2163
|
*/
|
2150
|
-
imeSetComposition(params: Protocol.Input.ImeSetCompositionRequest): Promise<void>;
|
2164
|
+
imeSetComposition(params: Protocol.Input.ImeSetCompositionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2151
2165
|
|
2152
2166
|
/**
|
2153
2167
|
* Dispatches a mouse event to the page.
|
2154
2168
|
*/
|
2155
|
-
dispatchMouseEvent(params: Protocol.Input.DispatchMouseEventRequest): Promise<void>;
|
2169
|
+
dispatchMouseEvent(params: Protocol.Input.DispatchMouseEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2156
2170
|
|
2157
2171
|
/**
|
2158
2172
|
* Dispatches a touch event to the page.
|
2159
2173
|
*/
|
2160
|
-
dispatchTouchEvent(params: Protocol.Input.DispatchTouchEventRequest): Promise<void>;
|
2174
|
+
dispatchTouchEvent(params: Protocol.Input.DispatchTouchEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2161
2175
|
|
2162
2176
|
/**
|
2163
2177
|
* Cancels any active dragging in the page.
|
2164
2178
|
*/
|
2165
|
-
cancelDragging(): Promise<void>;
|
2179
|
+
cancelDragging(): Promise<{id: number, result: void, sessionId: string}>;
|
2166
2180
|
|
2167
2181
|
/**
|
2168
2182
|
* Emulates touch event from the mouse event parameters.
|
2169
2183
|
*/
|
2170
|
-
emulateTouchFromMouseEvent(params: Protocol.Input.EmulateTouchFromMouseEventRequest): Promise<void>;
|
2184
|
+
emulateTouchFromMouseEvent(params: Protocol.Input.EmulateTouchFromMouseEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2171
2185
|
|
2172
2186
|
/**
|
2173
2187
|
* Ignores input events (useful while auditing page).
|
2174
2188
|
*/
|
2175
|
-
setIgnoreInputEvents(params: Protocol.Input.SetIgnoreInputEventsRequest): Promise<void>;
|
2189
|
+
setIgnoreInputEvents(params: Protocol.Input.SetIgnoreInputEventsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2176
2190
|
|
2177
2191
|
/**
|
2178
2192
|
* Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events.
|
2179
2193
|
* Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
|
2180
2194
|
*/
|
2181
|
-
setInterceptDrags(params: Protocol.Input.SetInterceptDragsRequest): Promise<void>;
|
2195
|
+
setInterceptDrags(params: Protocol.Input.SetInterceptDragsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2182
2196
|
|
2183
2197
|
/**
|
2184
2198
|
* Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
|
2185
2199
|
*/
|
2186
|
-
synthesizePinchGesture(params: Protocol.Input.SynthesizePinchGestureRequest): Promise<void>;
|
2200
|
+
synthesizePinchGesture(params: Protocol.Input.SynthesizePinchGestureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2187
2201
|
|
2188
2202
|
/**
|
2189
2203
|
* Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
|
2190
2204
|
*/
|
2191
|
-
synthesizeScrollGesture(params: Protocol.Input.SynthesizeScrollGestureRequest): Promise<void>;
|
2205
|
+
synthesizeScrollGesture(params: Protocol.Input.SynthesizeScrollGestureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2192
2206
|
|
2193
2207
|
/**
|
2194
2208
|
* Synthesizes a tap gesture over a time period by issuing appropriate touch events.
|
2195
2209
|
*/
|
2196
|
-
synthesizeTapGesture(params: Protocol.Input.SynthesizeTapGestureRequest): Promise<void>;
|
2210
|
+
synthesizeTapGesture(params: Protocol.Input.SynthesizeTapGestureRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2197
2211
|
|
2198
2212
|
/**
|
2199
2213
|
* Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to
|
@@ -2209,12 +2223,12 @@ export namespace ProtocolTestsProxyApi {
|
|
2209
2223
|
/**
|
2210
2224
|
* Disables inspector domain notifications.
|
2211
2225
|
*/
|
2212
|
-
disable(): Promise<void>;
|
2226
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2213
2227
|
|
2214
2228
|
/**
|
2215
2229
|
* Enables inspector domain notifications.
|
2216
2230
|
*/
|
2217
|
-
enable(): Promise<void>;
|
2231
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2218
2232
|
|
2219
2233
|
/**
|
2220
2234
|
* Fired when remote debugging connection is about to be terminated. Contains detach reason.
|
@@ -2243,44 +2257,44 @@ export namespace ProtocolTestsProxyApi {
|
|
2243
2257
|
/**
|
2244
2258
|
* Provides the reasons why the given layer was composited.
|
2245
2259
|
*/
|
2246
|
-
compositingReasons(params: Protocol.LayerTree.CompositingReasonsRequest): Promise<Protocol.LayerTree.CompositingReasonsResponse>;
|
2260
|
+
compositingReasons(params: Protocol.LayerTree.CompositingReasonsRequest): Promise<{id: number, result: Protocol.LayerTree.CompositingReasonsResponse, sessionId: string}>;
|
2247
2261
|
|
2248
2262
|
/**
|
2249
2263
|
* Disables compositing tree inspection.
|
2250
2264
|
*/
|
2251
|
-
disable(): Promise<void>;
|
2265
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2252
2266
|
|
2253
2267
|
/**
|
2254
2268
|
* Enables compositing tree inspection.
|
2255
2269
|
*/
|
2256
|
-
enable(): Promise<void>;
|
2270
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2257
2271
|
|
2258
2272
|
/**
|
2259
2273
|
* Returns the snapshot identifier.
|
2260
2274
|
*/
|
2261
|
-
loadSnapshot(params: Protocol.LayerTree.LoadSnapshotRequest): Promise<Protocol.LayerTree.LoadSnapshotResponse>;
|
2275
|
+
loadSnapshot(params: Protocol.LayerTree.LoadSnapshotRequest): Promise<{id: number, result: Protocol.LayerTree.LoadSnapshotResponse, sessionId: string}>;
|
2262
2276
|
|
2263
2277
|
/**
|
2264
2278
|
* Returns the layer snapshot identifier.
|
2265
2279
|
*/
|
2266
|
-
makeSnapshot(params: Protocol.LayerTree.MakeSnapshotRequest): Promise<Protocol.LayerTree.MakeSnapshotResponse>;
|
2280
|
+
makeSnapshot(params: Protocol.LayerTree.MakeSnapshotRequest): Promise<{id: number, result: Protocol.LayerTree.MakeSnapshotResponse, sessionId: string}>;
|
2267
2281
|
|
2268
|
-
profileSnapshot(params: Protocol.LayerTree.ProfileSnapshotRequest): Promise<Protocol.LayerTree.ProfileSnapshotResponse>;
|
2282
|
+
profileSnapshot(params: Protocol.LayerTree.ProfileSnapshotRequest): Promise<{id: number, result: Protocol.LayerTree.ProfileSnapshotResponse, sessionId: string}>;
|
2269
2283
|
|
2270
2284
|
/**
|
2271
2285
|
* Releases layer snapshot captured by the back-end.
|
2272
2286
|
*/
|
2273
|
-
releaseSnapshot(params: Protocol.LayerTree.ReleaseSnapshotRequest): Promise<void>;
|
2287
|
+
releaseSnapshot(params: Protocol.LayerTree.ReleaseSnapshotRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2274
2288
|
|
2275
2289
|
/**
|
2276
2290
|
* Replays the layer snapshot and returns the resulting bitmap.
|
2277
2291
|
*/
|
2278
|
-
replaySnapshot(params: Protocol.LayerTree.ReplaySnapshotRequest): Promise<Protocol.LayerTree.ReplaySnapshotResponse>;
|
2292
|
+
replaySnapshot(params: Protocol.LayerTree.ReplaySnapshotRequest): Promise<{id: number, result: Protocol.LayerTree.ReplaySnapshotResponse, sessionId: string}>;
|
2279
2293
|
|
2280
2294
|
/**
|
2281
2295
|
* Replays the layer snapshot and returns canvas log.
|
2282
2296
|
*/
|
2283
|
-
snapshotCommandLog(params: Protocol.LayerTree.SnapshotCommandLogRequest): Promise<Protocol.LayerTree.SnapshotCommandLogResponse>;
|
2297
|
+
snapshotCommandLog(params: Protocol.LayerTree.SnapshotCommandLogRequest): Promise<{id: number, result: Protocol.LayerTree.SnapshotCommandLogResponse, sessionId: string}>;
|
2284
2298
|
|
2285
2299
|
onLayerPainted(listener: (event: { params: Protocol.LayerTree.LayerPaintedEvent }) => void): void;
|
2286
2300
|
offLayerPainted(listener: (event: { params: Protocol.LayerTree.LayerPaintedEvent }) => void): void;
|
@@ -2296,28 +2310,28 @@ export namespace ProtocolTestsProxyApi {
|
|
2296
2310
|
/**
|
2297
2311
|
* Clears the log.
|
2298
2312
|
*/
|
2299
|
-
clear(): Promise<void>;
|
2313
|
+
clear(): Promise<{id: number, result: void, sessionId: string}>;
|
2300
2314
|
|
2301
2315
|
/**
|
2302
2316
|
* Disables log domain, prevents further log entries from being reported to the client.
|
2303
2317
|
*/
|
2304
|
-
disable(): Promise<void>;
|
2318
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2305
2319
|
|
2306
2320
|
/**
|
2307
2321
|
* Enables log domain, sends the entries collected so far to the client by means of the
|
2308
2322
|
* `entryAdded` notification.
|
2309
2323
|
*/
|
2310
|
-
enable(): Promise<void>;
|
2324
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2311
2325
|
|
2312
2326
|
/**
|
2313
2327
|
* start violation reporting.
|
2314
2328
|
*/
|
2315
|
-
startViolationsReport(params: Protocol.Log.StartViolationsReportRequest): Promise<void>;
|
2329
|
+
startViolationsReport(params: Protocol.Log.StartViolationsReportRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2316
2330
|
|
2317
2331
|
/**
|
2318
2332
|
* Stop violation reporting.
|
2319
2333
|
*/
|
2320
|
-
stopViolationsReport(): Promise<void>;
|
2334
|
+
stopViolationsReport(): Promise<{id: number, result: void, sessionId: string}>;
|
2321
2335
|
|
2322
2336
|
/**
|
2323
2337
|
* Issued when new message was logged.
|
@@ -2329,52 +2343,52 @@ export namespace ProtocolTestsProxyApi {
|
|
2329
2343
|
}
|
2330
2344
|
|
2331
2345
|
export interface MemoryApi {
|
2332
|
-
getDOMCounters(): Promise<Protocol.Memory.GetDOMCountersResponse>;
|
2346
|
+
getDOMCounters(): Promise<{id: number, result: Protocol.Memory.GetDOMCountersResponse, sessionId: string}>;
|
2333
2347
|
|
2334
|
-
prepareForLeakDetection(): Promise<void>;
|
2348
|
+
prepareForLeakDetection(): Promise<{id: number, result: void, sessionId: string}>;
|
2335
2349
|
|
2336
2350
|
/**
|
2337
2351
|
* Simulate OomIntervention by purging V8 memory.
|
2338
2352
|
*/
|
2339
|
-
forciblyPurgeJavaScriptMemory(): Promise<void>;
|
2353
|
+
forciblyPurgeJavaScriptMemory(): Promise<{id: number, result: void, sessionId: string}>;
|
2340
2354
|
|
2341
2355
|
/**
|
2342
2356
|
* Enable/disable suppressing memory pressure notifications in all processes.
|
2343
2357
|
*/
|
2344
|
-
setPressureNotificationsSuppressed(params: Protocol.Memory.SetPressureNotificationsSuppressedRequest): Promise<void>;
|
2358
|
+
setPressureNotificationsSuppressed(params: Protocol.Memory.SetPressureNotificationsSuppressedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2345
2359
|
|
2346
2360
|
/**
|
2347
2361
|
* Simulate a memory pressure notification in all processes.
|
2348
2362
|
*/
|
2349
|
-
simulatePressureNotification(params: Protocol.Memory.SimulatePressureNotificationRequest): Promise<void>;
|
2363
|
+
simulatePressureNotification(params: Protocol.Memory.SimulatePressureNotificationRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2350
2364
|
|
2351
2365
|
/**
|
2352
2366
|
* Start collecting native memory profile.
|
2353
2367
|
*/
|
2354
|
-
startSampling(params: Protocol.Memory.StartSamplingRequest): Promise<void>;
|
2368
|
+
startSampling(params: Protocol.Memory.StartSamplingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2355
2369
|
|
2356
2370
|
/**
|
2357
2371
|
* Stop collecting native memory profile.
|
2358
2372
|
*/
|
2359
|
-
stopSampling(): Promise<void>;
|
2373
|
+
stopSampling(): Promise<{id: number, result: void, sessionId: string}>;
|
2360
2374
|
|
2361
2375
|
/**
|
2362
2376
|
* Retrieve native memory allocations profile
|
2363
2377
|
* collected since renderer process startup.
|
2364
2378
|
*/
|
2365
|
-
getAllTimeSamplingProfile(): Promise<Protocol.Memory.GetAllTimeSamplingProfileResponse>;
|
2379
|
+
getAllTimeSamplingProfile(): Promise<{id: number, result: Protocol.Memory.GetAllTimeSamplingProfileResponse, sessionId: string}>;
|
2366
2380
|
|
2367
2381
|
/**
|
2368
2382
|
* Retrieve native memory allocations profile
|
2369
2383
|
* collected since browser process startup.
|
2370
2384
|
*/
|
2371
|
-
getBrowserSamplingProfile(): Promise<Protocol.Memory.GetBrowserSamplingProfileResponse>;
|
2385
|
+
getBrowserSamplingProfile(): Promise<{id: number, result: Protocol.Memory.GetBrowserSamplingProfileResponse, sessionId: string}>;
|
2372
2386
|
|
2373
2387
|
/**
|
2374
2388
|
* Retrieve native memory allocations profile collected since last
|
2375
2389
|
* `startSampling` call.
|
2376
2390
|
*/
|
2377
|
-
getSamplingProfile(): Promise<Protocol.Memory.GetSamplingProfileResponse>;
|
2391
|
+
getSamplingProfile(): Promise<{id: number, result: Protocol.Memory.GetSamplingProfileResponse, sessionId: string}>;
|
2378
2392
|
|
2379
2393
|
}
|
2380
2394
|
|
@@ -2382,37 +2396,37 @@ export namespace ProtocolTestsProxyApi {
|
|
2382
2396
|
/**
|
2383
2397
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
2384
2398
|
*/
|
2385
|
-
setAcceptedEncodings(params: Protocol.Network.SetAcceptedEncodingsRequest): Promise<void>;
|
2399
|
+
setAcceptedEncodings(params: Protocol.Network.SetAcceptedEncodingsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2386
2400
|
|
2387
2401
|
/**
|
2388
2402
|
* Clears accepted encodings set by setAcceptedEncodings
|
2389
2403
|
*/
|
2390
|
-
clearAcceptedEncodingsOverride(): Promise<void>;
|
2404
|
+
clearAcceptedEncodingsOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2391
2405
|
|
2392
2406
|
/**
|
2393
2407
|
* Tells whether clearing browser cache is supported.
|
2394
2408
|
*/
|
2395
|
-
canClearBrowserCache(): Promise<Protocol.Network.CanClearBrowserCacheResponse>;
|
2409
|
+
canClearBrowserCache(): Promise<{id: number, result: Protocol.Network.CanClearBrowserCacheResponse, sessionId: string}>;
|
2396
2410
|
|
2397
2411
|
/**
|
2398
2412
|
* Tells whether clearing browser cookies is supported.
|
2399
2413
|
*/
|
2400
|
-
canClearBrowserCookies(): Promise<Protocol.Network.CanClearBrowserCookiesResponse>;
|
2414
|
+
canClearBrowserCookies(): Promise<{id: number, result: Protocol.Network.CanClearBrowserCookiesResponse, sessionId: string}>;
|
2401
2415
|
|
2402
2416
|
/**
|
2403
2417
|
* Tells whether emulation of network conditions is supported.
|
2404
2418
|
*/
|
2405
|
-
canEmulateNetworkConditions(): Promise<Protocol.Network.CanEmulateNetworkConditionsResponse>;
|
2419
|
+
canEmulateNetworkConditions(): Promise<{id: number, result: Protocol.Network.CanEmulateNetworkConditionsResponse, sessionId: string}>;
|
2406
2420
|
|
2407
2421
|
/**
|
2408
2422
|
* Clears browser cache.
|
2409
2423
|
*/
|
2410
|
-
clearBrowserCache(): Promise<void>;
|
2424
|
+
clearBrowserCache(): Promise<{id: number, result: void, sessionId: string}>;
|
2411
2425
|
|
2412
2426
|
/**
|
2413
2427
|
* Clears browser cookies.
|
2414
2428
|
*/
|
2415
|
-
clearBrowserCookies(): Promise<void>;
|
2429
|
+
clearBrowserCookies(): Promise<{id: number, result: void, sessionId: string}>;
|
2416
2430
|
|
2417
2431
|
/**
|
2418
2432
|
* Response to Network.requestIntercepted which either modifies the request to continue with any
|
@@ -2421,60 +2435,60 @@ export namespace ProtocolTestsProxyApi {
|
|
2421
2435
|
* event will be sent with the same InterceptionId.
|
2422
2436
|
* Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
|
2423
2437
|
*/
|
2424
|
-
continueInterceptedRequest(params: Protocol.Network.ContinueInterceptedRequestRequest): Promise<void>;
|
2438
|
+
continueInterceptedRequest(params: Protocol.Network.ContinueInterceptedRequestRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2425
2439
|
|
2426
2440
|
/**
|
2427
2441
|
* Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
|
2428
2442
|
*/
|
2429
|
-
deleteCookies(params: Protocol.Network.DeleteCookiesRequest): Promise<void>;
|
2443
|
+
deleteCookies(params: Protocol.Network.DeleteCookiesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2430
2444
|
|
2431
2445
|
/**
|
2432
2446
|
* Disables network tracking, prevents network events from being sent to the client.
|
2433
2447
|
*/
|
2434
|
-
disable(): Promise<void>;
|
2448
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2435
2449
|
|
2436
2450
|
/**
|
2437
2451
|
* Activates emulation of network conditions.
|
2438
2452
|
*/
|
2439
|
-
emulateNetworkConditions(params: Protocol.Network.EmulateNetworkConditionsRequest): Promise<void>;
|
2453
|
+
emulateNetworkConditions(params: Protocol.Network.EmulateNetworkConditionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2440
2454
|
|
2441
2455
|
/**
|
2442
2456
|
* Enables network tracking, network events will now be delivered to the client.
|
2443
2457
|
*/
|
2444
|
-
enable(params: Protocol.Network.EnableRequest): Promise<void>;
|
2458
|
+
enable(params: Protocol.Network.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2445
2459
|
|
2446
2460
|
/**
|
2447
2461
|
* Returns all browser cookies. Depending on the backend support, will return detailed cookie
|
2448
2462
|
* information in the `cookies` field.
|
2449
2463
|
* Deprecated. Use Storage.getCookies instead.
|
2450
2464
|
*/
|
2451
|
-
getAllCookies(): Promise<Protocol.Network.GetAllCookiesResponse>;
|
2465
|
+
getAllCookies(): Promise<{id: number, result: Protocol.Network.GetAllCookiesResponse, sessionId: string}>;
|
2452
2466
|
|
2453
2467
|
/**
|
2454
2468
|
* Returns the DER-encoded certificate.
|
2455
2469
|
*/
|
2456
|
-
getCertificate(params: Protocol.Network.GetCertificateRequest): Promise<Protocol.Network.GetCertificateResponse>;
|
2470
|
+
getCertificate(params: Protocol.Network.GetCertificateRequest): Promise<{id: number, result: Protocol.Network.GetCertificateResponse, sessionId: string}>;
|
2457
2471
|
|
2458
2472
|
/**
|
2459
2473
|
* Returns all browser cookies for the current URL. Depending on the backend support, will return
|
2460
2474
|
* detailed cookie information in the `cookies` field.
|
2461
2475
|
*/
|
2462
|
-
getCookies(params: Protocol.Network.GetCookiesRequest): Promise<Protocol.Network.GetCookiesResponse>;
|
2476
|
+
getCookies(params: Protocol.Network.GetCookiesRequest): Promise<{id: number, result: Protocol.Network.GetCookiesResponse, sessionId: string}>;
|
2463
2477
|
|
2464
2478
|
/**
|
2465
2479
|
* Returns content served for the given request.
|
2466
2480
|
*/
|
2467
|
-
getResponseBody(params: Protocol.Network.GetResponseBodyRequest): Promise<Protocol.Network.GetResponseBodyResponse>;
|
2481
|
+
getResponseBody(params: Protocol.Network.GetResponseBodyRequest): Promise<{id: number, result: Protocol.Network.GetResponseBodyResponse, sessionId: string}>;
|
2468
2482
|
|
2469
2483
|
/**
|
2470
2484
|
* Returns post data sent with the request. Returns an error when no data was sent with the request.
|
2471
2485
|
*/
|
2472
|
-
getRequestPostData(params: Protocol.Network.GetRequestPostDataRequest): Promise<Protocol.Network.GetRequestPostDataResponse>;
|
2486
|
+
getRequestPostData(params: Protocol.Network.GetRequestPostDataRequest): Promise<{id: number, result: Protocol.Network.GetRequestPostDataResponse, sessionId: string}>;
|
2473
2487
|
|
2474
2488
|
/**
|
2475
2489
|
* Returns content served for the given currently intercepted request.
|
2476
2490
|
*/
|
2477
|
-
getResponseBodyForInterception(params: Protocol.Network.GetResponseBodyForInterceptionRequest): Promise<Protocol.Network.GetResponseBodyForInterceptionResponse>;
|
2491
|
+
getResponseBodyForInterception(params: Protocol.Network.GetResponseBodyForInterceptionRequest): Promise<{id: number, result: Protocol.Network.GetResponseBodyForInterceptionResponse, sessionId: string}>;
|
2478
2492
|
|
2479
2493
|
/**
|
2480
2494
|
* Returns a handle to the stream representing the response body. Note that after this command,
|
@@ -2482,87 +2496,87 @@ export namespace ProtocolTestsProxyApi {
|
|
2482
2496
|
* the response body. The stream only supports sequential read, IO.read will fail if the position
|
2483
2497
|
* is specified.
|
2484
2498
|
*/
|
2485
|
-
takeResponseBodyForInterceptionAsStream(params: Protocol.Network.TakeResponseBodyForInterceptionAsStreamRequest): Promise<Protocol.Network.TakeResponseBodyForInterceptionAsStreamResponse>;
|
2499
|
+
takeResponseBodyForInterceptionAsStream(params: Protocol.Network.TakeResponseBodyForInterceptionAsStreamRequest): Promise<{id: number, result: Protocol.Network.TakeResponseBodyForInterceptionAsStreamResponse, sessionId: string}>;
|
2486
2500
|
|
2487
2501
|
/**
|
2488
2502
|
* This method sends a new XMLHttpRequest which is identical to the original one. The following
|
2489
2503
|
* parameters should be identical: method, url, async, request body, extra headers, withCredentials
|
2490
2504
|
* attribute, user, password.
|
2491
2505
|
*/
|
2492
|
-
replayXHR(params: Protocol.Network.ReplayXHRRequest): Promise<void>;
|
2506
|
+
replayXHR(params: Protocol.Network.ReplayXHRRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2493
2507
|
|
2494
2508
|
/**
|
2495
2509
|
* Searches for given string in response content.
|
2496
2510
|
*/
|
2497
|
-
searchInResponseBody(params: Protocol.Network.SearchInResponseBodyRequest): Promise<Protocol.Network.SearchInResponseBodyResponse>;
|
2511
|
+
searchInResponseBody(params: Protocol.Network.SearchInResponseBodyRequest): Promise<{id: number, result: Protocol.Network.SearchInResponseBodyResponse, sessionId: string}>;
|
2498
2512
|
|
2499
2513
|
/**
|
2500
2514
|
* Blocks URLs from loading.
|
2501
2515
|
*/
|
2502
|
-
setBlockedURLs(params: Protocol.Network.SetBlockedURLsRequest): Promise<void>;
|
2516
|
+
setBlockedURLs(params: Protocol.Network.SetBlockedURLsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2503
2517
|
|
2504
2518
|
/**
|
2505
2519
|
* Toggles ignoring of service worker for each request.
|
2506
2520
|
*/
|
2507
|
-
setBypassServiceWorker(params: Protocol.Network.SetBypassServiceWorkerRequest): Promise<void>;
|
2521
|
+
setBypassServiceWorker(params: Protocol.Network.SetBypassServiceWorkerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2508
2522
|
|
2509
2523
|
/**
|
2510
2524
|
* Toggles ignoring cache for each request. If `true`, cache will not be used.
|
2511
2525
|
*/
|
2512
|
-
setCacheDisabled(params: Protocol.Network.SetCacheDisabledRequest): Promise<void>;
|
2526
|
+
setCacheDisabled(params: Protocol.Network.SetCacheDisabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2513
2527
|
|
2514
2528
|
/**
|
2515
2529
|
* Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
|
2516
2530
|
*/
|
2517
|
-
setCookie(params: Protocol.Network.SetCookieRequest): Promise<Protocol.Network.SetCookieResponse>;
|
2531
|
+
setCookie(params: Protocol.Network.SetCookieRequest): Promise<{id: number, result: Protocol.Network.SetCookieResponse, sessionId: string}>;
|
2518
2532
|
|
2519
2533
|
/**
|
2520
2534
|
* Sets given cookies.
|
2521
2535
|
*/
|
2522
|
-
setCookies(params: Protocol.Network.SetCookiesRequest): Promise<void>;
|
2536
|
+
setCookies(params: Protocol.Network.SetCookiesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2523
2537
|
|
2524
2538
|
/**
|
2525
2539
|
* Specifies whether to always send extra HTTP headers with the requests from this page.
|
2526
2540
|
*/
|
2527
|
-
setExtraHTTPHeaders(params: Protocol.Network.SetExtraHTTPHeadersRequest): Promise<void>;
|
2541
|
+
setExtraHTTPHeaders(params: Protocol.Network.SetExtraHTTPHeadersRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2528
2542
|
|
2529
2543
|
/**
|
2530
2544
|
* Specifies whether to attach a page script stack id in requests
|
2531
2545
|
*/
|
2532
|
-
setAttachDebugStack(params: Protocol.Network.SetAttachDebugStackRequest): Promise<void>;
|
2546
|
+
setAttachDebugStack(params: Protocol.Network.SetAttachDebugStackRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2533
2547
|
|
2534
2548
|
/**
|
2535
2549
|
* Sets the requests to intercept that match the provided patterns and optionally resource types.
|
2536
2550
|
* Deprecated, please use Fetch.enable instead.
|
2537
2551
|
*/
|
2538
|
-
setRequestInterception(params: Protocol.Network.SetRequestInterceptionRequest): Promise<void>;
|
2552
|
+
setRequestInterception(params: Protocol.Network.SetRequestInterceptionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2539
2553
|
|
2540
2554
|
/**
|
2541
2555
|
* Allows overriding user agent with the given string.
|
2542
2556
|
*/
|
2543
|
-
setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest): Promise<void>;
|
2557
|
+
setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2544
2558
|
|
2545
2559
|
/**
|
2546
2560
|
* Enables streaming of the response for the given requestId.
|
2547
2561
|
* If enabled, the dataReceived event contains the data that was received during streaming.
|
2548
2562
|
*/
|
2549
|
-
streamResourceContent(params: Protocol.Network.StreamResourceContentRequest): Promise<Protocol.Network.StreamResourceContentResponse>;
|
2563
|
+
streamResourceContent(params: Protocol.Network.StreamResourceContentRequest): Promise<{id: number, result: Protocol.Network.StreamResourceContentResponse, sessionId: string}>;
|
2550
2564
|
|
2551
2565
|
/**
|
2552
2566
|
* Returns information about the COEP/COOP isolation status.
|
2553
2567
|
*/
|
2554
|
-
getSecurityIsolationStatus(params: Protocol.Network.GetSecurityIsolationStatusRequest): Promise<Protocol.Network.GetSecurityIsolationStatusResponse>;
|
2568
|
+
getSecurityIsolationStatus(params: Protocol.Network.GetSecurityIsolationStatusRequest): Promise<{id: number, result: Protocol.Network.GetSecurityIsolationStatusResponse, sessionId: string}>;
|
2555
2569
|
|
2556
2570
|
/**
|
2557
2571
|
* Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client.
|
2558
2572
|
* Enabling triggers 'reportingApiReportAdded' for all existing reports.
|
2559
2573
|
*/
|
2560
|
-
enableReportingApi(params: Protocol.Network.EnableReportingApiRequest): Promise<void>;
|
2574
|
+
enableReportingApi(params: Protocol.Network.EnableReportingApiRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2561
2575
|
|
2562
2576
|
/**
|
2563
2577
|
* Fetches the resource and returns the content.
|
2564
2578
|
*/
|
2565
|
-
loadNetworkResource(params: Protocol.Network.LoadNetworkResourceRequest): Promise<Protocol.Network.LoadNetworkResourceResponse>;
|
2579
|
+
loadNetworkResource(params: Protocol.Network.LoadNetworkResourceRequest): Promise<{id: number, result: Protocol.Network.LoadNetworkResourceResponse, sessionId: string}>;
|
2566
2580
|
|
2567
2581
|
/**
|
2568
2582
|
* Fired when data chunk was received over the network.
|
@@ -2787,32 +2801,32 @@ export namespace ProtocolTestsProxyApi {
|
|
2787
2801
|
/**
|
2788
2802
|
* Disables domain notifications.
|
2789
2803
|
*/
|
2790
|
-
disable(): Promise<void>;
|
2804
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
2791
2805
|
|
2792
2806
|
/**
|
2793
2807
|
* Enables domain notifications.
|
2794
2808
|
*/
|
2795
|
-
enable(): Promise<void>;
|
2809
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
2796
2810
|
|
2797
2811
|
/**
|
2798
2812
|
* For testing.
|
2799
2813
|
*/
|
2800
|
-
getHighlightObjectForTest(params: Protocol.Overlay.GetHighlightObjectForTestRequest): Promise<Protocol.Overlay.GetHighlightObjectForTestResponse>;
|
2814
|
+
getHighlightObjectForTest(params: Protocol.Overlay.GetHighlightObjectForTestRequest): Promise<{id: number, result: Protocol.Overlay.GetHighlightObjectForTestResponse, sessionId: string}>;
|
2801
2815
|
|
2802
2816
|
/**
|
2803
2817
|
* For Persistent Grid testing.
|
2804
2818
|
*/
|
2805
|
-
getGridHighlightObjectsForTest(params: Protocol.Overlay.GetGridHighlightObjectsForTestRequest): Promise<Protocol.Overlay.GetGridHighlightObjectsForTestResponse>;
|
2819
|
+
getGridHighlightObjectsForTest(params: Protocol.Overlay.GetGridHighlightObjectsForTestRequest): Promise<{id: number, result: Protocol.Overlay.GetGridHighlightObjectsForTestResponse, sessionId: string}>;
|
2806
2820
|
|
2807
2821
|
/**
|
2808
2822
|
* For Source Order Viewer testing.
|
2809
2823
|
*/
|
2810
|
-
getSourceOrderHighlightObjectForTest(params: Protocol.Overlay.GetSourceOrderHighlightObjectForTestRequest): Promise<Protocol.Overlay.GetSourceOrderHighlightObjectForTestResponse>;
|
2824
|
+
getSourceOrderHighlightObjectForTest(params: Protocol.Overlay.GetSourceOrderHighlightObjectForTestRequest): Promise<{id: number, result: Protocol.Overlay.GetSourceOrderHighlightObjectForTestResponse, sessionId: string}>;
|
2811
2825
|
|
2812
2826
|
/**
|
2813
2827
|
* Hides any highlight.
|
2814
2828
|
*/
|
2815
|
-
hideHighlight(): Promise<void>;
|
2829
|
+
hideHighlight(): Promise<{id: number, result: void, sessionId: string}>;
|
2816
2830
|
|
2817
2831
|
/**
|
2818
2832
|
* Highlights owner element of the frame with given id.
|
@@ -2820,108 +2834,108 @@ export namespace ProtocolTestsProxyApi {
|
|
2820
2834
|
* separation (the owner node might be in a different process). Determine
|
2821
2835
|
* the owner node in the client and use highlightNode.
|
2822
2836
|
*/
|
2823
|
-
highlightFrame(params: Protocol.Overlay.HighlightFrameRequest): Promise<void>;
|
2837
|
+
highlightFrame(params: Protocol.Overlay.HighlightFrameRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2824
2838
|
|
2825
2839
|
/**
|
2826
2840
|
* Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
|
2827
2841
|
* objectId must be specified.
|
2828
2842
|
*/
|
2829
|
-
highlightNode(params: Protocol.Overlay.HighlightNodeRequest): Promise<void>;
|
2843
|
+
highlightNode(params: Protocol.Overlay.HighlightNodeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2830
2844
|
|
2831
2845
|
/**
|
2832
2846
|
* Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
|
2833
2847
|
*/
|
2834
|
-
highlightQuad(params: Protocol.Overlay.HighlightQuadRequest): Promise<void>;
|
2848
|
+
highlightQuad(params: Protocol.Overlay.HighlightQuadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2835
2849
|
|
2836
2850
|
/**
|
2837
2851
|
* Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
|
2838
2852
|
*/
|
2839
|
-
highlightRect(params: Protocol.Overlay.HighlightRectRequest): Promise<void>;
|
2853
|
+
highlightRect(params: Protocol.Overlay.HighlightRectRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2840
2854
|
|
2841
2855
|
/**
|
2842
2856
|
* Highlights the source order of the children of the DOM node with given id or with the given
|
2843
2857
|
* JavaScript object wrapper. Either nodeId or objectId must be specified.
|
2844
2858
|
*/
|
2845
|
-
highlightSourceOrder(params: Protocol.Overlay.HighlightSourceOrderRequest): Promise<void>;
|
2859
|
+
highlightSourceOrder(params: Protocol.Overlay.HighlightSourceOrderRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2846
2860
|
|
2847
2861
|
/**
|
2848
2862
|
* Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
|
2849
2863
|
* Backend then generates 'inspectNodeRequested' event upon element selection.
|
2850
2864
|
*/
|
2851
|
-
setInspectMode(params: Protocol.Overlay.SetInspectModeRequest): Promise<void>;
|
2865
|
+
setInspectMode(params: Protocol.Overlay.SetInspectModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2852
2866
|
|
2853
2867
|
/**
|
2854
2868
|
* Highlights owner element of all frames detected to be ads.
|
2855
2869
|
*/
|
2856
|
-
setShowAdHighlights(params: Protocol.Overlay.SetShowAdHighlightsRequest): Promise<void>;
|
2870
|
+
setShowAdHighlights(params: Protocol.Overlay.SetShowAdHighlightsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2857
2871
|
|
2858
|
-
setPausedInDebuggerMessage(params: Protocol.Overlay.SetPausedInDebuggerMessageRequest): Promise<void>;
|
2872
|
+
setPausedInDebuggerMessage(params: Protocol.Overlay.SetPausedInDebuggerMessageRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2859
2873
|
|
2860
2874
|
/**
|
2861
2875
|
* Requests that backend shows debug borders on layers
|
2862
2876
|
*/
|
2863
|
-
setShowDebugBorders(params: Protocol.Overlay.SetShowDebugBordersRequest): Promise<void>;
|
2877
|
+
setShowDebugBorders(params: Protocol.Overlay.SetShowDebugBordersRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2864
2878
|
|
2865
2879
|
/**
|
2866
2880
|
* Requests that backend shows the FPS counter
|
2867
2881
|
*/
|
2868
|
-
setShowFPSCounter(params: Protocol.Overlay.SetShowFPSCounterRequest): Promise<void>;
|
2882
|
+
setShowFPSCounter(params: Protocol.Overlay.SetShowFPSCounterRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2869
2883
|
|
2870
2884
|
/**
|
2871
2885
|
* Highlight multiple elements with the CSS Grid overlay.
|
2872
2886
|
*/
|
2873
|
-
setShowGridOverlays(params: Protocol.Overlay.SetShowGridOverlaysRequest): Promise<void>;
|
2887
|
+
setShowGridOverlays(params: Protocol.Overlay.SetShowGridOverlaysRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2874
2888
|
|
2875
|
-
setShowFlexOverlays(params: Protocol.Overlay.SetShowFlexOverlaysRequest): Promise<void>;
|
2889
|
+
setShowFlexOverlays(params: Protocol.Overlay.SetShowFlexOverlaysRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2876
2890
|
|
2877
|
-
setShowScrollSnapOverlays(params: Protocol.Overlay.SetShowScrollSnapOverlaysRequest): Promise<void>;
|
2891
|
+
setShowScrollSnapOverlays(params: Protocol.Overlay.SetShowScrollSnapOverlaysRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2878
2892
|
|
2879
|
-
setShowContainerQueryOverlays(params: Protocol.Overlay.SetShowContainerQueryOverlaysRequest): Promise<void>;
|
2893
|
+
setShowContainerQueryOverlays(params: Protocol.Overlay.SetShowContainerQueryOverlaysRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2880
2894
|
|
2881
2895
|
/**
|
2882
2896
|
* Requests that backend shows paint rectangles
|
2883
2897
|
*/
|
2884
|
-
setShowPaintRects(params: Protocol.Overlay.SetShowPaintRectsRequest): Promise<void>;
|
2898
|
+
setShowPaintRects(params: Protocol.Overlay.SetShowPaintRectsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2885
2899
|
|
2886
2900
|
/**
|
2887
2901
|
* Requests that backend shows layout shift regions
|
2888
2902
|
*/
|
2889
|
-
setShowLayoutShiftRegions(params: Protocol.Overlay.SetShowLayoutShiftRegionsRequest): Promise<void>;
|
2903
|
+
setShowLayoutShiftRegions(params: Protocol.Overlay.SetShowLayoutShiftRegionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2890
2904
|
|
2891
2905
|
/**
|
2892
2906
|
* Requests that backend shows scroll bottleneck rects
|
2893
2907
|
*/
|
2894
|
-
setShowScrollBottleneckRects(params: Protocol.Overlay.SetShowScrollBottleneckRectsRequest): Promise<void>;
|
2908
|
+
setShowScrollBottleneckRects(params: Protocol.Overlay.SetShowScrollBottleneckRectsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2895
2909
|
|
2896
2910
|
/**
|
2897
2911
|
* Deprecated, no longer has any effect.
|
2898
2912
|
*/
|
2899
|
-
setShowHitTestBorders(params: Protocol.Overlay.SetShowHitTestBordersRequest): Promise<void>;
|
2913
|
+
setShowHitTestBorders(params: Protocol.Overlay.SetShowHitTestBordersRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2900
2914
|
|
2901
2915
|
/**
|
2902
2916
|
* Request that backend shows an overlay with web vital metrics.
|
2903
2917
|
*/
|
2904
|
-
setShowWebVitals(params: Protocol.Overlay.SetShowWebVitalsRequest): Promise<void>;
|
2918
|
+
setShowWebVitals(params: Protocol.Overlay.SetShowWebVitalsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2905
2919
|
|
2906
2920
|
/**
|
2907
2921
|
* Paints viewport size upon main frame resize.
|
2908
2922
|
*/
|
2909
|
-
setShowViewportSizeOnResize(params: Protocol.Overlay.SetShowViewportSizeOnResizeRequest): Promise<void>;
|
2923
|
+
setShowViewportSizeOnResize(params: Protocol.Overlay.SetShowViewportSizeOnResizeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2910
2924
|
|
2911
2925
|
/**
|
2912
2926
|
* Add a dual screen device hinge
|
2913
2927
|
*/
|
2914
|
-
setShowHinge(params: Protocol.Overlay.SetShowHingeRequest): Promise<void>;
|
2928
|
+
setShowHinge(params: Protocol.Overlay.SetShowHingeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2915
2929
|
|
2916
2930
|
/**
|
2917
2931
|
* Show elements in isolation mode with overlays.
|
2918
2932
|
*/
|
2919
|
-
setShowIsolatedElements(params: Protocol.Overlay.SetShowIsolatedElementsRequest): Promise<void>;
|
2933
|
+
setShowIsolatedElements(params: Protocol.Overlay.SetShowIsolatedElementsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2920
2934
|
|
2921
2935
|
/**
|
2922
2936
|
* Show Window Controls Overlay for PWA
|
2923
2937
|
*/
|
2924
|
-
setShowWindowControlsOverlay(params: Protocol.Overlay.SetShowWindowControlsOverlayRequest): Promise<void>;
|
2938
|
+
setShowWindowControlsOverlay(params: Protocol.Overlay.SetShowWindowControlsOverlayRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2925
2939
|
|
2926
2940
|
/**
|
2927
2941
|
* Fired when the node should be inspected. This happens after call to `setInspectMode` or when
|
@@ -2958,255 +2972,255 @@ export namespace ProtocolTestsProxyApi {
|
|
2958
2972
|
/**
|
2959
2973
|
* Deprecated, please use addScriptToEvaluateOnNewDocument instead.
|
2960
2974
|
*/
|
2961
|
-
addScriptToEvaluateOnLoad(params: Protocol.Page.AddScriptToEvaluateOnLoadRequest): Promise<Protocol.Page.AddScriptToEvaluateOnLoadResponse>;
|
2975
|
+
addScriptToEvaluateOnLoad(params: Protocol.Page.AddScriptToEvaluateOnLoadRequest): Promise<{id: number, result: Protocol.Page.AddScriptToEvaluateOnLoadResponse, sessionId: string}>;
|
2962
2976
|
|
2963
2977
|
/**
|
2964
2978
|
* Evaluates given script in every frame upon creation (before loading frame's scripts).
|
2965
2979
|
*/
|
2966
|
-
addScriptToEvaluateOnNewDocument(params: Protocol.Page.AddScriptToEvaluateOnNewDocumentRequest): Promise<Protocol.Page.AddScriptToEvaluateOnNewDocumentResponse>;
|
2980
|
+
addScriptToEvaluateOnNewDocument(params: Protocol.Page.AddScriptToEvaluateOnNewDocumentRequest): Promise<{id: number, result: Protocol.Page.AddScriptToEvaluateOnNewDocumentResponse, sessionId: string}>;
|
2967
2981
|
|
2968
2982
|
/**
|
2969
2983
|
* Brings page to front (activates tab).
|
2970
2984
|
*/
|
2971
|
-
bringToFront(): Promise<void>;
|
2985
|
+
bringToFront(): Promise<{id: number, result: void, sessionId: string}>;
|
2972
2986
|
|
2973
2987
|
/**
|
2974
2988
|
* Capture page screenshot.
|
2975
2989
|
*/
|
2976
|
-
captureScreenshot(params: Protocol.Page.CaptureScreenshotRequest): Promise<Protocol.Page.CaptureScreenshotResponse>;
|
2990
|
+
captureScreenshot(params: Protocol.Page.CaptureScreenshotRequest): Promise<{id: number, result: Protocol.Page.CaptureScreenshotResponse, sessionId: string}>;
|
2977
2991
|
|
2978
2992
|
/**
|
2979
2993
|
* Returns a snapshot of the page as a string. For MHTML format, the serialization includes
|
2980
2994
|
* iframes, shadow DOM, external resources, and element-inline styles.
|
2981
2995
|
*/
|
2982
|
-
captureSnapshot(params: Protocol.Page.CaptureSnapshotRequest): Promise<Protocol.Page.CaptureSnapshotResponse>;
|
2996
|
+
captureSnapshot(params: Protocol.Page.CaptureSnapshotRequest): Promise<{id: number, result: Protocol.Page.CaptureSnapshotResponse, sessionId: string}>;
|
2983
2997
|
|
2984
2998
|
/**
|
2985
2999
|
* Clears the overridden device metrics.
|
2986
3000
|
*/
|
2987
|
-
clearDeviceMetricsOverride(): Promise<void>;
|
3001
|
+
clearDeviceMetricsOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2988
3002
|
|
2989
3003
|
/**
|
2990
3004
|
* Clears the overridden Device Orientation.
|
2991
3005
|
*/
|
2992
|
-
clearDeviceOrientationOverride(): Promise<void>;
|
3006
|
+
clearDeviceOrientationOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2993
3007
|
|
2994
3008
|
/**
|
2995
3009
|
* Clears the overridden Geolocation Position and Error.
|
2996
3010
|
*/
|
2997
|
-
clearGeolocationOverride(): Promise<void>;
|
3011
|
+
clearGeolocationOverride(): Promise<{id: number, result: void, sessionId: string}>;
|
2998
3012
|
|
2999
3013
|
/**
|
3000
3014
|
* Creates an isolated world for the given frame.
|
3001
3015
|
*/
|
3002
|
-
createIsolatedWorld(params: Protocol.Page.CreateIsolatedWorldRequest): Promise<Protocol.Page.CreateIsolatedWorldResponse>;
|
3016
|
+
createIsolatedWorld(params: Protocol.Page.CreateIsolatedWorldRequest): Promise<{id: number, result: Protocol.Page.CreateIsolatedWorldResponse, sessionId: string}>;
|
3003
3017
|
|
3004
3018
|
/**
|
3005
3019
|
* Deletes browser cookie with given name, domain and path.
|
3006
3020
|
*/
|
3007
|
-
deleteCookie(params: Protocol.Page.DeleteCookieRequest): Promise<void>;
|
3021
|
+
deleteCookie(params: Protocol.Page.DeleteCookieRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3008
3022
|
|
3009
3023
|
/**
|
3010
3024
|
* Disables page domain notifications.
|
3011
3025
|
*/
|
3012
|
-
disable(): Promise<void>;
|
3026
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
3013
3027
|
|
3014
3028
|
/**
|
3015
3029
|
* Enables page domain notifications.
|
3016
3030
|
*/
|
3017
|
-
enable(): Promise<void>;
|
3031
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
3018
3032
|
|
3019
|
-
getAppManifest(): Promise<Protocol.Page.GetAppManifestResponse>;
|
3033
|
+
getAppManifest(): Promise<{id: number, result: Protocol.Page.GetAppManifestResponse, sessionId: string}>;
|
3020
3034
|
|
3021
|
-
getInstallabilityErrors(): Promise<Protocol.Page.GetInstallabilityErrorsResponse>;
|
3035
|
+
getInstallabilityErrors(): Promise<{id: number, result: Protocol.Page.GetInstallabilityErrorsResponse, sessionId: string}>;
|
3022
3036
|
|
3023
3037
|
/**
|
3024
3038
|
* Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA installation.
|
3025
3039
|
*/
|
3026
|
-
getManifestIcons(): Promise<Protocol.Page.GetManifestIconsResponse>;
|
3040
|
+
getManifestIcons(): Promise<{id: number, result: Protocol.Page.GetManifestIconsResponse, sessionId: string}>;
|
3027
3041
|
|
3028
3042
|
/**
|
3029
3043
|
* Returns the unique (PWA) app id.
|
3030
3044
|
* Only returns values if the feature flag 'WebAppEnableManifestId' is enabled
|
3031
3045
|
*/
|
3032
|
-
getAppId(): Promise<Protocol.Page.GetAppIdResponse>;
|
3046
|
+
getAppId(): Promise<{id: number, result: Protocol.Page.GetAppIdResponse, sessionId: string}>;
|
3033
3047
|
|
3034
|
-
getAdScriptId(params: Protocol.Page.GetAdScriptIdRequest): Promise<Protocol.Page.GetAdScriptIdResponse>;
|
3048
|
+
getAdScriptId(params: Protocol.Page.GetAdScriptIdRequest): Promise<{id: number, result: Protocol.Page.GetAdScriptIdResponse, sessionId: string}>;
|
3035
3049
|
|
3036
3050
|
/**
|
3037
3051
|
* Returns present frame tree structure.
|
3038
3052
|
*/
|
3039
|
-
getFrameTree(): Promise<Protocol.Page.GetFrameTreeResponse>;
|
3053
|
+
getFrameTree(): Promise<{id: number, result: Protocol.Page.GetFrameTreeResponse, sessionId: string}>;
|
3040
3054
|
|
3041
3055
|
/**
|
3042
3056
|
* Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
|
3043
3057
|
*/
|
3044
|
-
getLayoutMetrics(): Promise<Protocol.Page.GetLayoutMetricsResponse>;
|
3058
|
+
getLayoutMetrics(): Promise<{id: number, result: Protocol.Page.GetLayoutMetricsResponse, sessionId: string}>;
|
3045
3059
|
|
3046
3060
|
/**
|
3047
3061
|
* Returns navigation history for the current page.
|
3048
3062
|
*/
|
3049
|
-
getNavigationHistory(): Promise<Protocol.Page.GetNavigationHistoryResponse>;
|
3063
|
+
getNavigationHistory(): Promise<{id: number, result: Protocol.Page.GetNavigationHistoryResponse, sessionId: string}>;
|
3050
3064
|
|
3051
3065
|
/**
|
3052
3066
|
* Resets navigation history for the current page.
|
3053
3067
|
*/
|
3054
|
-
resetNavigationHistory(): Promise<void>;
|
3068
|
+
resetNavigationHistory(): Promise<{id: number, result: void, sessionId: string}>;
|
3055
3069
|
|
3056
3070
|
/**
|
3057
3071
|
* Returns content of the given resource.
|
3058
3072
|
*/
|
3059
|
-
getResourceContent(params: Protocol.Page.GetResourceContentRequest): Promise<Protocol.Page.GetResourceContentResponse>;
|
3073
|
+
getResourceContent(params: Protocol.Page.GetResourceContentRequest): Promise<{id: number, result: Protocol.Page.GetResourceContentResponse, sessionId: string}>;
|
3060
3074
|
|
3061
3075
|
/**
|
3062
3076
|
* Returns present frame / resource tree structure.
|
3063
3077
|
*/
|
3064
|
-
getResourceTree(): Promise<Protocol.Page.GetResourceTreeResponse>;
|
3078
|
+
getResourceTree(): Promise<{id: number, result: Protocol.Page.GetResourceTreeResponse, sessionId: string}>;
|
3065
3079
|
|
3066
3080
|
/**
|
3067
3081
|
* Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
|
3068
3082
|
*/
|
3069
|
-
handleJavaScriptDialog(params: Protocol.Page.HandleJavaScriptDialogRequest): Promise<void>;
|
3083
|
+
handleJavaScriptDialog(params: Protocol.Page.HandleJavaScriptDialogRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3070
3084
|
|
3071
3085
|
/**
|
3072
3086
|
* Navigates current page to the given URL.
|
3073
3087
|
*/
|
3074
|
-
navigate(params: Protocol.Page.NavigateRequest): Promise<Protocol.Page.NavigateResponse>;
|
3088
|
+
navigate(params: Protocol.Page.NavigateRequest): Promise<{id: number, result: Protocol.Page.NavigateResponse, sessionId: string}>;
|
3075
3089
|
|
3076
3090
|
/**
|
3077
3091
|
* Navigates current page to the given history entry.
|
3078
3092
|
*/
|
3079
|
-
navigateToHistoryEntry(params: Protocol.Page.NavigateToHistoryEntryRequest): Promise<void>;
|
3093
|
+
navigateToHistoryEntry(params: Protocol.Page.NavigateToHistoryEntryRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3080
3094
|
|
3081
3095
|
/**
|
3082
3096
|
* Print page as PDF.
|
3083
3097
|
*/
|
3084
|
-
printToPDF(params: Protocol.Page.PrintToPDFRequest): Promise<Protocol.Page.PrintToPDFResponse>;
|
3098
|
+
printToPDF(params: Protocol.Page.PrintToPDFRequest): Promise<{id: number, result: Protocol.Page.PrintToPDFResponse, sessionId: string}>;
|
3085
3099
|
|
3086
3100
|
/**
|
3087
3101
|
* Reloads given page optionally ignoring the cache.
|
3088
3102
|
*/
|
3089
|
-
reload(params: Protocol.Page.ReloadRequest): Promise<void>;
|
3103
|
+
reload(params: Protocol.Page.ReloadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3090
3104
|
|
3091
3105
|
/**
|
3092
3106
|
* Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
|
3093
3107
|
*/
|
3094
|
-
removeScriptToEvaluateOnLoad(params: Protocol.Page.RemoveScriptToEvaluateOnLoadRequest): Promise<void>;
|
3108
|
+
removeScriptToEvaluateOnLoad(params: Protocol.Page.RemoveScriptToEvaluateOnLoadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3095
3109
|
|
3096
3110
|
/**
|
3097
3111
|
* Removes given script from the list.
|
3098
3112
|
*/
|
3099
|
-
removeScriptToEvaluateOnNewDocument(params: Protocol.Page.RemoveScriptToEvaluateOnNewDocumentRequest): Promise<void>;
|
3113
|
+
removeScriptToEvaluateOnNewDocument(params: Protocol.Page.RemoveScriptToEvaluateOnNewDocumentRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3100
3114
|
|
3101
3115
|
/**
|
3102
3116
|
* Acknowledges that a screencast frame has been received by the frontend.
|
3103
3117
|
*/
|
3104
|
-
screencastFrameAck(params: Protocol.Page.ScreencastFrameAckRequest): Promise<void>;
|
3118
|
+
screencastFrameAck(params: Protocol.Page.ScreencastFrameAckRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3105
3119
|
|
3106
3120
|
/**
|
3107
3121
|
* Searches for given string in resource content.
|
3108
3122
|
*/
|
3109
|
-
searchInResource(params: Protocol.Page.SearchInResourceRequest): Promise<Protocol.Page.SearchInResourceResponse>;
|
3123
|
+
searchInResource(params: Protocol.Page.SearchInResourceRequest): Promise<{id: number, result: Protocol.Page.SearchInResourceResponse, sessionId: string}>;
|
3110
3124
|
|
3111
3125
|
/**
|
3112
3126
|
* Enable Chrome's experimental ad filter on all sites.
|
3113
3127
|
*/
|
3114
|
-
setAdBlockingEnabled(params: Protocol.Page.SetAdBlockingEnabledRequest): Promise<void>;
|
3128
|
+
setAdBlockingEnabled(params: Protocol.Page.SetAdBlockingEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3115
3129
|
|
3116
3130
|
/**
|
3117
3131
|
* Enable page Content Security Policy by-passing.
|
3118
3132
|
*/
|
3119
|
-
setBypassCSP(params: Protocol.Page.SetBypassCSPRequest): Promise<void>;
|
3133
|
+
setBypassCSP(params: Protocol.Page.SetBypassCSPRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3120
3134
|
|
3121
3135
|
/**
|
3122
3136
|
* Get Permissions Policy state on given frame.
|
3123
3137
|
*/
|
3124
|
-
getPermissionsPolicyState(params: Protocol.Page.GetPermissionsPolicyStateRequest): Promise<Protocol.Page.GetPermissionsPolicyStateResponse>;
|
3138
|
+
getPermissionsPolicyState(params: Protocol.Page.GetPermissionsPolicyStateRequest): Promise<{id: number, result: Protocol.Page.GetPermissionsPolicyStateResponse, sessionId: string}>;
|
3125
3139
|
|
3126
3140
|
/**
|
3127
3141
|
* Get Origin Trials on given frame.
|
3128
3142
|
*/
|
3129
|
-
getOriginTrials(params: Protocol.Page.GetOriginTrialsRequest): Promise<Protocol.Page.GetOriginTrialsResponse>;
|
3143
|
+
getOriginTrials(params: Protocol.Page.GetOriginTrialsRequest): Promise<{id: number, result: Protocol.Page.GetOriginTrialsResponse, sessionId: string}>;
|
3130
3144
|
|
3131
3145
|
/**
|
3132
3146
|
* Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
3133
3147
|
* window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
3134
3148
|
* query results).
|
3135
3149
|
*/
|
3136
|
-
setDeviceMetricsOverride(params: Protocol.Page.SetDeviceMetricsOverrideRequest): Promise<void>;
|
3150
|
+
setDeviceMetricsOverride(params: Protocol.Page.SetDeviceMetricsOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3137
3151
|
|
3138
3152
|
/**
|
3139
3153
|
* Overrides the Device Orientation.
|
3140
3154
|
*/
|
3141
|
-
setDeviceOrientationOverride(params: Protocol.Page.SetDeviceOrientationOverrideRequest): Promise<void>;
|
3155
|
+
setDeviceOrientationOverride(params: Protocol.Page.SetDeviceOrientationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3142
3156
|
|
3143
3157
|
/**
|
3144
3158
|
* Set generic font families.
|
3145
3159
|
*/
|
3146
|
-
setFontFamilies(params: Protocol.Page.SetFontFamiliesRequest): Promise<void>;
|
3160
|
+
setFontFamilies(params: Protocol.Page.SetFontFamiliesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3147
3161
|
|
3148
3162
|
/**
|
3149
3163
|
* Set default font sizes.
|
3150
3164
|
*/
|
3151
|
-
setFontSizes(params: Protocol.Page.SetFontSizesRequest): Promise<void>;
|
3165
|
+
setFontSizes(params: Protocol.Page.SetFontSizesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3152
3166
|
|
3153
3167
|
/**
|
3154
3168
|
* Sets given markup as the document's HTML.
|
3155
3169
|
*/
|
3156
|
-
setDocumentContent(params: Protocol.Page.SetDocumentContentRequest): Promise<void>;
|
3170
|
+
setDocumentContent(params: Protocol.Page.SetDocumentContentRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3157
3171
|
|
3158
3172
|
/**
|
3159
3173
|
* Set the behavior when downloading a file.
|
3160
3174
|
*/
|
3161
|
-
setDownloadBehavior(params: Protocol.Page.SetDownloadBehaviorRequest): Promise<void>;
|
3175
|
+
setDownloadBehavior(params: Protocol.Page.SetDownloadBehaviorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3162
3176
|
|
3163
3177
|
/**
|
3164
3178
|
* Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
|
3165
3179
|
* unavailable.
|
3166
3180
|
*/
|
3167
|
-
setGeolocationOverride(params: Protocol.Page.SetGeolocationOverrideRequest): Promise<void>;
|
3181
|
+
setGeolocationOverride(params: Protocol.Page.SetGeolocationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3168
3182
|
|
3169
3183
|
/**
|
3170
3184
|
* Controls whether page will emit lifecycle events.
|
3171
3185
|
*/
|
3172
|
-
setLifecycleEventsEnabled(params: Protocol.Page.SetLifecycleEventsEnabledRequest): Promise<void>;
|
3186
|
+
setLifecycleEventsEnabled(params: Protocol.Page.SetLifecycleEventsEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3173
3187
|
|
3174
3188
|
/**
|
3175
3189
|
* Toggles mouse event-based touch event emulation.
|
3176
3190
|
*/
|
3177
|
-
setTouchEmulationEnabled(params: Protocol.Page.SetTouchEmulationEnabledRequest): Promise<void>;
|
3191
|
+
setTouchEmulationEnabled(params: Protocol.Page.SetTouchEmulationEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3178
3192
|
|
3179
3193
|
/**
|
3180
3194
|
* Starts sending each frame using the `screencastFrame` event.
|
3181
3195
|
*/
|
3182
|
-
startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<void>;
|
3196
|
+
startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3183
3197
|
|
3184
3198
|
/**
|
3185
3199
|
* Force the page stop all navigations and pending resource fetches.
|
3186
3200
|
*/
|
3187
|
-
stopLoading(): Promise<void>;
|
3201
|
+
stopLoading(): Promise<{id: number, result: void, sessionId: string}>;
|
3188
3202
|
|
3189
3203
|
/**
|
3190
3204
|
* Crashes renderer on the IO thread, generates minidumps.
|
3191
3205
|
*/
|
3192
|
-
crash(): Promise<void>;
|
3206
|
+
crash(): Promise<{id: number, result: void, sessionId: string}>;
|
3193
3207
|
|
3194
3208
|
/**
|
3195
3209
|
* Tries to close page, running its beforeunload hooks, if any.
|
3196
3210
|
*/
|
3197
|
-
close(): Promise<void>;
|
3211
|
+
close(): Promise<{id: number, result: void, sessionId: string}>;
|
3198
3212
|
|
3199
3213
|
/**
|
3200
3214
|
* Tries to update the web lifecycle state of the page.
|
3201
3215
|
* It will transition the page to the given state according to:
|
3202
3216
|
* https://github.com/WICG/web-lifecycle/
|
3203
3217
|
*/
|
3204
|
-
setWebLifecycleState(params: Protocol.Page.SetWebLifecycleStateRequest): Promise<void>;
|
3218
|
+
setWebLifecycleState(params: Protocol.Page.SetWebLifecycleStateRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3205
3219
|
|
3206
3220
|
/**
|
3207
3221
|
* Stops sending each frame in the `screencastFrame`.
|
3208
3222
|
*/
|
3209
|
-
stopScreencast(): Promise<void>;
|
3223
|
+
stopScreencast(): Promise<{id: number, result: void, sessionId: string}>;
|
3210
3224
|
|
3211
3225
|
/**
|
3212
3226
|
* Requests backend to produce compilation cache for the specified scripts.
|
@@ -3216,47 +3230,47 @@ export namespace ProtocolTestsProxyApi {
|
|
3216
3230
|
* produced upon backend discretion, based on internal heuristics.
|
3217
3231
|
* See also: `Page.compilationCacheProduced`.
|
3218
3232
|
*/
|
3219
|
-
produceCompilationCache(params: Protocol.Page.ProduceCompilationCacheRequest): Promise<void>;
|
3233
|
+
produceCompilationCache(params: Protocol.Page.ProduceCompilationCacheRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3220
3234
|
|
3221
3235
|
/**
|
3222
3236
|
* Seeds compilation cache for given url. Compilation cache does not survive
|
3223
3237
|
* cross-process navigation.
|
3224
3238
|
*/
|
3225
|
-
addCompilationCache(params: Protocol.Page.AddCompilationCacheRequest): Promise<void>;
|
3239
|
+
addCompilationCache(params: Protocol.Page.AddCompilationCacheRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3226
3240
|
|
3227
3241
|
/**
|
3228
3242
|
* Clears seeded compilation cache.
|
3229
3243
|
*/
|
3230
|
-
clearCompilationCache(): Promise<void>;
|
3244
|
+
clearCompilationCache(): Promise<{id: number, result: void, sessionId: string}>;
|
3231
3245
|
|
3232
3246
|
/**
|
3233
3247
|
* Sets the Secure Payment Confirmation transaction mode.
|
3234
3248
|
* https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
|
3235
3249
|
*/
|
3236
|
-
setSPCTransactionMode(params: Protocol.Page.SetSPCTransactionModeRequest): Promise<void>;
|
3250
|
+
setSPCTransactionMode(params: Protocol.Page.SetSPCTransactionModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3237
3251
|
|
3238
3252
|
/**
|
3239
3253
|
* Extensions for Custom Handlers API:
|
3240
3254
|
* https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
|
3241
3255
|
*/
|
3242
|
-
setRPHRegistrationMode(params: Protocol.Page.SetRPHRegistrationModeRequest): Promise<void>;
|
3256
|
+
setRPHRegistrationMode(params: Protocol.Page.SetRPHRegistrationModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3243
3257
|
|
3244
3258
|
/**
|
3245
3259
|
* Generates a report for testing.
|
3246
3260
|
*/
|
3247
|
-
generateTestReport(params: Protocol.Page.GenerateTestReportRequest): Promise<void>;
|
3261
|
+
generateTestReport(params: Protocol.Page.GenerateTestReportRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3248
3262
|
|
3249
3263
|
/**
|
3250
3264
|
* Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.
|
3251
3265
|
*/
|
3252
|
-
waitForDebugger(): Promise<void>;
|
3266
|
+
waitForDebugger(): Promise<{id: number, result: void, sessionId: string}>;
|
3253
3267
|
|
3254
3268
|
/**
|
3255
3269
|
* Intercept file chooser requests and transfer control to protocol clients.
|
3256
3270
|
* When file chooser interception is enabled, native file chooser dialog is not shown.
|
3257
3271
|
* Instead, a protocol event `Page.fileChooserOpened` is emitted.
|
3258
3272
|
*/
|
3259
|
-
setInterceptFileChooserDialog(params: Protocol.Page.SetInterceptFileChooserDialogRequest): Promise<void>;
|
3273
|
+
setInterceptFileChooserDialog(params: Protocol.Page.SetInterceptFileChooserDialogRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3260
3274
|
|
3261
3275
|
/**
|
3262
3276
|
* Enable/disable prerendering manually.
|
@@ -3267,7 +3281,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3267
3281
|
*
|
3268
3282
|
* TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
|
3269
3283
|
*/
|
3270
|
-
setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<void>;
|
3284
|
+
setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3271
3285
|
|
3272
3286
|
onDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
|
3273
3287
|
offDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
|
@@ -3458,24 +3472,24 @@ export namespace ProtocolTestsProxyApi {
|
|
3458
3472
|
/**
|
3459
3473
|
* Disable collecting and reporting metrics.
|
3460
3474
|
*/
|
3461
|
-
disable(): Promise<void>;
|
3475
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
3462
3476
|
|
3463
3477
|
/**
|
3464
3478
|
* Enable collecting and reporting metrics.
|
3465
3479
|
*/
|
3466
|
-
enable(params: Protocol.Performance.EnableRequest): Promise<void>;
|
3480
|
+
enable(params: Protocol.Performance.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3467
3481
|
|
3468
3482
|
/**
|
3469
3483
|
* Sets time domain to use for collecting and reporting duration metrics.
|
3470
3484
|
* Note that this must be called before enabling metrics collection. Calling
|
3471
3485
|
* this method while metrics collection is enabled returns an error.
|
3472
3486
|
*/
|
3473
|
-
setTimeDomain(params: Protocol.Performance.SetTimeDomainRequest): Promise<void>;
|
3487
|
+
setTimeDomain(params: Protocol.Performance.SetTimeDomainRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3474
3488
|
|
3475
3489
|
/**
|
3476
3490
|
* Retrieve current values of run-time metrics.
|
3477
3491
|
*/
|
3478
|
-
getMetrics(): Promise<Protocol.Performance.GetMetricsResponse>;
|
3492
|
+
getMetrics(): Promise<{id: number, result: Protocol.Performance.GetMetricsResponse, sessionId: string}>;
|
3479
3493
|
|
3480
3494
|
/**
|
3481
3495
|
* Current values of the metrics.
|
@@ -3491,7 +3505,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3491
3505
|
* Previously buffered events would be reported before method returns.
|
3492
3506
|
* See also: timelineEventAdded
|
3493
3507
|
*/
|
3494
|
-
enable(params: Protocol.PerformanceTimeline.EnableRequest): Promise<void>;
|
3508
|
+
enable(params: Protocol.PerformanceTimeline.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3495
3509
|
|
3496
3510
|
/**
|
3497
3511
|
* Sent when a performance timeline event is added. See reportPerformanceTimeline method.
|
@@ -3506,28 +3520,28 @@ export namespace ProtocolTestsProxyApi {
|
|
3506
3520
|
/**
|
3507
3521
|
* Disables tracking security state changes.
|
3508
3522
|
*/
|
3509
|
-
disable(): Promise<void>;
|
3523
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
3510
3524
|
|
3511
3525
|
/**
|
3512
3526
|
* Enables tracking security state changes.
|
3513
3527
|
*/
|
3514
|
-
enable(): Promise<void>;
|
3528
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
3515
3529
|
|
3516
3530
|
/**
|
3517
3531
|
* Enable/disable whether all certificate errors should be ignored.
|
3518
3532
|
*/
|
3519
|
-
setIgnoreCertificateErrors(params: Protocol.Security.SetIgnoreCertificateErrorsRequest): Promise<void>;
|
3533
|
+
setIgnoreCertificateErrors(params: Protocol.Security.SetIgnoreCertificateErrorsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3520
3534
|
|
3521
3535
|
/**
|
3522
3536
|
* Handles a certificate error that fired a certificateError event.
|
3523
3537
|
*/
|
3524
|
-
handleCertificateError(params: Protocol.Security.HandleCertificateErrorRequest): Promise<void>;
|
3538
|
+
handleCertificateError(params: Protocol.Security.HandleCertificateErrorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3525
3539
|
|
3526
3540
|
/**
|
3527
3541
|
* Enable/disable overriding certificate errors. If enabled, all certificate error events need to
|
3528
3542
|
* be handled by the DevTools client and should be answered with `handleCertificateError` commands.
|
3529
3543
|
*/
|
3530
|
-
setOverrideCertificateErrors(params: Protocol.Security.SetOverrideCertificateErrorsRequest): Promise<void>;
|
3544
|
+
setOverrideCertificateErrors(params: Protocol.Security.SetOverrideCertificateErrorsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3531
3545
|
|
3532
3546
|
/**
|
3533
3547
|
* There is a certificate error. If overriding certificate errors is enabled, then it should be
|
@@ -3556,31 +3570,31 @@ export namespace ProtocolTestsProxyApi {
|
|
3556
3570
|
}
|
3557
3571
|
|
3558
3572
|
export interface ServiceWorkerApi {
|
3559
|
-
deliverPushMessage(params: Protocol.ServiceWorker.DeliverPushMessageRequest): Promise<void>;
|
3573
|
+
deliverPushMessage(params: Protocol.ServiceWorker.DeliverPushMessageRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3560
3574
|
|
3561
|
-
disable(): Promise<void>;
|
3575
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
3562
3576
|
|
3563
|
-
dispatchSyncEvent(params: Protocol.ServiceWorker.DispatchSyncEventRequest): Promise<void>;
|
3577
|
+
dispatchSyncEvent(params: Protocol.ServiceWorker.DispatchSyncEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3564
3578
|
|
3565
|
-
dispatchPeriodicSyncEvent(params: Protocol.ServiceWorker.DispatchPeriodicSyncEventRequest): Promise<void>;
|
3579
|
+
dispatchPeriodicSyncEvent(params: Protocol.ServiceWorker.DispatchPeriodicSyncEventRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3566
3580
|
|
3567
|
-
enable(): Promise<void>;
|
3581
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
3568
3582
|
|
3569
|
-
inspectWorker(params: Protocol.ServiceWorker.InspectWorkerRequest): Promise<void>;
|
3583
|
+
inspectWorker(params: Protocol.ServiceWorker.InspectWorkerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3570
3584
|
|
3571
|
-
setForceUpdateOnPageLoad(params: Protocol.ServiceWorker.SetForceUpdateOnPageLoadRequest): Promise<void>;
|
3585
|
+
setForceUpdateOnPageLoad(params: Protocol.ServiceWorker.SetForceUpdateOnPageLoadRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3572
3586
|
|
3573
|
-
skipWaiting(params: Protocol.ServiceWorker.SkipWaitingRequest): Promise<void>;
|
3587
|
+
skipWaiting(params: Protocol.ServiceWorker.SkipWaitingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3574
3588
|
|
3575
|
-
startWorker(params: Protocol.ServiceWorker.StartWorkerRequest): Promise<void>;
|
3589
|
+
startWorker(params: Protocol.ServiceWorker.StartWorkerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3576
3590
|
|
3577
|
-
stopAllWorkers(): Promise<void>;
|
3591
|
+
stopAllWorkers(): Promise<{id: number, result: void, sessionId: string}>;
|
3578
3592
|
|
3579
|
-
stopWorker(params: Protocol.ServiceWorker.StopWorkerRequest): Promise<void>;
|
3593
|
+
stopWorker(params: Protocol.ServiceWorker.StopWorkerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3580
3594
|
|
3581
|
-
unregister(params: Protocol.ServiceWorker.UnregisterRequest): Promise<void>;
|
3595
|
+
unregister(params: Protocol.ServiceWorker.UnregisterRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3582
3596
|
|
3583
|
-
updateRegistration(params: Protocol.ServiceWorker.UpdateRegistrationRequest): Promise<void>;
|
3597
|
+
updateRegistration(params: Protocol.ServiceWorker.UpdateRegistrationRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3584
3598
|
|
3585
3599
|
onWorkerErrorReported(listener: (event: { params: Protocol.ServiceWorker.WorkerErrorReportedEvent }) => void): void;
|
3586
3600
|
offWorkerErrorReported(listener: (event: { params: Protocol.ServiceWorker.WorkerErrorReportedEvent }) => void): void;
|
@@ -3600,182 +3614,182 @@ export namespace ProtocolTestsProxyApi {
|
|
3600
3614
|
/**
|
3601
3615
|
* Returns a storage key given a frame id.
|
3602
3616
|
*/
|
3603
|
-
getStorageKeyForFrame(params: Protocol.Storage.GetStorageKeyForFrameRequest): Promise<Protocol.Storage.GetStorageKeyForFrameResponse>;
|
3617
|
+
getStorageKeyForFrame(params: Protocol.Storage.GetStorageKeyForFrameRequest): Promise<{id: number, result: Protocol.Storage.GetStorageKeyForFrameResponse, sessionId: string}>;
|
3604
3618
|
|
3605
3619
|
/**
|
3606
3620
|
* Clears storage for origin.
|
3607
3621
|
*/
|
3608
|
-
clearDataForOrigin(params: Protocol.Storage.ClearDataForOriginRequest): Promise<void>;
|
3622
|
+
clearDataForOrigin(params: Protocol.Storage.ClearDataForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3609
3623
|
|
3610
3624
|
/**
|
3611
3625
|
* Clears storage for storage key.
|
3612
3626
|
*/
|
3613
|
-
clearDataForStorageKey(params: Protocol.Storage.ClearDataForStorageKeyRequest): Promise<void>;
|
3627
|
+
clearDataForStorageKey(params: Protocol.Storage.ClearDataForStorageKeyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3614
3628
|
|
3615
3629
|
/**
|
3616
3630
|
* Returns all browser cookies.
|
3617
3631
|
*/
|
3618
|
-
getCookies(params: Protocol.Storage.GetCookiesRequest): Promise<Protocol.Storage.GetCookiesResponse>;
|
3632
|
+
getCookies(params: Protocol.Storage.GetCookiesRequest): Promise<{id: number, result: Protocol.Storage.GetCookiesResponse, sessionId: string}>;
|
3619
3633
|
|
3620
3634
|
/**
|
3621
3635
|
* Sets given cookies.
|
3622
3636
|
*/
|
3623
|
-
setCookies(params: Protocol.Storage.SetCookiesRequest): Promise<void>;
|
3637
|
+
setCookies(params: Protocol.Storage.SetCookiesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3624
3638
|
|
3625
3639
|
/**
|
3626
3640
|
* Clears cookies.
|
3627
3641
|
*/
|
3628
|
-
clearCookies(params: Protocol.Storage.ClearCookiesRequest): Promise<void>;
|
3642
|
+
clearCookies(params: Protocol.Storage.ClearCookiesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3629
3643
|
|
3630
3644
|
/**
|
3631
3645
|
* Returns usage and quota in bytes.
|
3632
3646
|
*/
|
3633
|
-
getUsageAndQuota(params: Protocol.Storage.GetUsageAndQuotaRequest): Promise<Protocol.Storage.GetUsageAndQuotaResponse>;
|
3647
|
+
getUsageAndQuota(params: Protocol.Storage.GetUsageAndQuotaRequest): Promise<{id: number, result: Protocol.Storage.GetUsageAndQuotaResponse, sessionId: string}>;
|
3634
3648
|
|
3635
3649
|
/**
|
3636
3650
|
* Override quota for the specified origin
|
3637
3651
|
*/
|
3638
|
-
overrideQuotaForOrigin(params: Protocol.Storage.OverrideQuotaForOriginRequest): Promise<void>;
|
3652
|
+
overrideQuotaForOrigin(params: Protocol.Storage.OverrideQuotaForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3639
3653
|
|
3640
3654
|
/**
|
3641
3655
|
* Registers origin to be notified when an update occurs to its cache storage list.
|
3642
3656
|
*/
|
3643
|
-
trackCacheStorageForOrigin(params: Protocol.Storage.TrackCacheStorageForOriginRequest): Promise<void>;
|
3657
|
+
trackCacheStorageForOrigin(params: Protocol.Storage.TrackCacheStorageForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3644
3658
|
|
3645
3659
|
/**
|
3646
3660
|
* Registers storage key to be notified when an update occurs to its cache storage list.
|
3647
3661
|
*/
|
3648
|
-
trackCacheStorageForStorageKey(params: Protocol.Storage.TrackCacheStorageForStorageKeyRequest): Promise<void>;
|
3662
|
+
trackCacheStorageForStorageKey(params: Protocol.Storage.TrackCacheStorageForStorageKeyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3649
3663
|
|
3650
3664
|
/**
|
3651
3665
|
* Registers origin to be notified when an update occurs to its IndexedDB.
|
3652
3666
|
*/
|
3653
|
-
trackIndexedDBForOrigin(params: Protocol.Storage.TrackIndexedDBForOriginRequest): Promise<void>;
|
3667
|
+
trackIndexedDBForOrigin(params: Protocol.Storage.TrackIndexedDBForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3654
3668
|
|
3655
3669
|
/**
|
3656
3670
|
* Registers storage key to be notified when an update occurs to its IndexedDB.
|
3657
3671
|
*/
|
3658
|
-
trackIndexedDBForStorageKey(params: Protocol.Storage.TrackIndexedDBForStorageKeyRequest): Promise<void>;
|
3672
|
+
trackIndexedDBForStorageKey(params: Protocol.Storage.TrackIndexedDBForStorageKeyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3659
3673
|
|
3660
3674
|
/**
|
3661
3675
|
* Unregisters origin from receiving notifications for cache storage.
|
3662
3676
|
*/
|
3663
|
-
untrackCacheStorageForOrigin(params: Protocol.Storage.UntrackCacheStorageForOriginRequest): Promise<void>;
|
3677
|
+
untrackCacheStorageForOrigin(params: Protocol.Storage.UntrackCacheStorageForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3664
3678
|
|
3665
3679
|
/**
|
3666
3680
|
* Unregisters storage key from receiving notifications for cache storage.
|
3667
3681
|
*/
|
3668
|
-
untrackCacheStorageForStorageKey(params: Protocol.Storage.UntrackCacheStorageForStorageKeyRequest): Promise<void>;
|
3682
|
+
untrackCacheStorageForStorageKey(params: Protocol.Storage.UntrackCacheStorageForStorageKeyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3669
3683
|
|
3670
3684
|
/**
|
3671
3685
|
* Unregisters origin from receiving notifications for IndexedDB.
|
3672
3686
|
*/
|
3673
|
-
untrackIndexedDBForOrigin(params: Protocol.Storage.UntrackIndexedDBForOriginRequest): Promise<void>;
|
3687
|
+
untrackIndexedDBForOrigin(params: Protocol.Storage.UntrackIndexedDBForOriginRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3674
3688
|
|
3675
3689
|
/**
|
3676
3690
|
* Unregisters storage key from receiving notifications for IndexedDB.
|
3677
3691
|
*/
|
3678
|
-
untrackIndexedDBForStorageKey(params: Protocol.Storage.UntrackIndexedDBForStorageKeyRequest): Promise<void>;
|
3692
|
+
untrackIndexedDBForStorageKey(params: Protocol.Storage.UntrackIndexedDBForStorageKeyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3679
3693
|
|
3680
3694
|
/**
|
3681
3695
|
* Returns the number of stored Trust Tokens per issuer for the
|
3682
3696
|
* current browsing context.
|
3683
3697
|
*/
|
3684
|
-
getTrustTokens(): Promise<Protocol.Storage.GetTrustTokensResponse>;
|
3698
|
+
getTrustTokens(): Promise<{id: number, result: Protocol.Storage.GetTrustTokensResponse, sessionId: string}>;
|
3685
3699
|
|
3686
3700
|
/**
|
3687
3701
|
* Removes all Trust Tokens issued by the provided issuerOrigin.
|
3688
3702
|
* Leaves other stored data, including the issuer's Redemption Records, intact.
|
3689
3703
|
*/
|
3690
|
-
clearTrustTokens(params: Protocol.Storage.ClearTrustTokensRequest): Promise<Protocol.Storage.ClearTrustTokensResponse>;
|
3704
|
+
clearTrustTokens(params: Protocol.Storage.ClearTrustTokensRequest): Promise<{id: number, result: Protocol.Storage.ClearTrustTokensResponse, sessionId: string}>;
|
3691
3705
|
|
3692
3706
|
/**
|
3693
3707
|
* Gets details for a named interest group.
|
3694
3708
|
*/
|
3695
|
-
getInterestGroupDetails(params: Protocol.Storage.GetInterestGroupDetailsRequest): Promise<Protocol.Storage.GetInterestGroupDetailsResponse>;
|
3709
|
+
getInterestGroupDetails(params: Protocol.Storage.GetInterestGroupDetailsRequest): Promise<{id: number, result: Protocol.Storage.GetInterestGroupDetailsResponse, sessionId: string}>;
|
3696
3710
|
|
3697
3711
|
/**
|
3698
3712
|
* Enables/Disables issuing of interestGroupAccessed events.
|
3699
3713
|
*/
|
3700
|
-
setInterestGroupTracking(params: Protocol.Storage.SetInterestGroupTrackingRequest): Promise<void>;
|
3714
|
+
setInterestGroupTracking(params: Protocol.Storage.SetInterestGroupTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3701
3715
|
|
3702
3716
|
/**
|
3703
3717
|
* Enables/Disables issuing of interestGroupAuctionEventOccurred and
|
3704
3718
|
* interestGroupAuctionNetworkRequestCreated.
|
3705
3719
|
*/
|
3706
|
-
setInterestGroupAuctionTracking(params: Protocol.Storage.SetInterestGroupAuctionTrackingRequest): Promise<void>;
|
3720
|
+
setInterestGroupAuctionTracking(params: Protocol.Storage.SetInterestGroupAuctionTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3707
3721
|
|
3708
3722
|
/**
|
3709
3723
|
* Gets metadata for an origin's shared storage.
|
3710
3724
|
*/
|
3711
|
-
getSharedStorageMetadata(params: Protocol.Storage.GetSharedStorageMetadataRequest): Promise<Protocol.Storage.GetSharedStorageMetadataResponse>;
|
3725
|
+
getSharedStorageMetadata(params: Protocol.Storage.GetSharedStorageMetadataRequest): Promise<{id: number, result: Protocol.Storage.GetSharedStorageMetadataResponse, sessionId: string}>;
|
3712
3726
|
|
3713
3727
|
/**
|
3714
3728
|
* Gets the entries in an given origin's shared storage.
|
3715
3729
|
*/
|
3716
|
-
getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<Protocol.Storage.GetSharedStorageEntriesResponse>;
|
3730
|
+
getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<{id: number, result: Protocol.Storage.GetSharedStorageEntriesResponse, sessionId: string}>;
|
3717
3731
|
|
3718
3732
|
/**
|
3719
3733
|
* Sets entry with `key` and `value` for a given origin's shared storage.
|
3720
3734
|
*/
|
3721
|
-
setSharedStorageEntry(params: Protocol.Storage.SetSharedStorageEntryRequest): Promise<void>;
|
3735
|
+
setSharedStorageEntry(params: Protocol.Storage.SetSharedStorageEntryRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3722
3736
|
|
3723
3737
|
/**
|
3724
3738
|
* Deletes entry for `key` (if it exists) for a given origin's shared storage.
|
3725
3739
|
*/
|
3726
|
-
deleteSharedStorageEntry(params: Protocol.Storage.DeleteSharedStorageEntryRequest): Promise<void>;
|
3740
|
+
deleteSharedStorageEntry(params: Protocol.Storage.DeleteSharedStorageEntryRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3727
3741
|
|
3728
3742
|
/**
|
3729
3743
|
* Clears all entries for a given origin's shared storage.
|
3730
3744
|
*/
|
3731
|
-
clearSharedStorageEntries(params: Protocol.Storage.ClearSharedStorageEntriesRequest): Promise<void>;
|
3745
|
+
clearSharedStorageEntries(params: Protocol.Storage.ClearSharedStorageEntriesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3732
3746
|
|
3733
3747
|
/**
|
3734
3748
|
* Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
|
3735
3749
|
*/
|
3736
|
-
resetSharedStorageBudget(params: Protocol.Storage.ResetSharedStorageBudgetRequest): Promise<void>;
|
3750
|
+
resetSharedStorageBudget(params: Protocol.Storage.ResetSharedStorageBudgetRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3737
3751
|
|
3738
3752
|
/**
|
3739
3753
|
* Enables/disables issuing of sharedStorageAccessed events.
|
3740
3754
|
*/
|
3741
|
-
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<void>;
|
3755
|
+
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3742
3756
|
|
3743
3757
|
/**
|
3744
3758
|
* Set tracking for a storage key's buckets.
|
3745
3759
|
*/
|
3746
|
-
setStorageBucketTracking(params: Protocol.Storage.SetStorageBucketTrackingRequest): Promise<void>;
|
3760
|
+
setStorageBucketTracking(params: Protocol.Storage.SetStorageBucketTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3747
3761
|
|
3748
3762
|
/**
|
3749
3763
|
* Deletes the Storage Bucket with the given storage key and bucket name.
|
3750
3764
|
*/
|
3751
|
-
deleteStorageBucket(params: Protocol.Storage.DeleteStorageBucketRequest): Promise<void>;
|
3765
|
+
deleteStorageBucket(params: Protocol.Storage.DeleteStorageBucketRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3752
3766
|
|
3753
3767
|
/**
|
3754
3768
|
* Deletes state for sites identified as potential bounce trackers, immediately.
|
3755
3769
|
*/
|
3756
|
-
runBounceTrackingMitigations(): Promise<Protocol.Storage.RunBounceTrackingMitigationsResponse>;
|
3770
|
+
runBounceTrackingMitigations(): Promise<{id: number, result: Protocol.Storage.RunBounceTrackingMitigationsResponse, sessionId: string}>;
|
3757
3771
|
|
3758
3772
|
/**
|
3759
3773
|
* https://wicg.github.io/attribution-reporting-api/
|
3760
3774
|
*/
|
3761
|
-
setAttributionReportingLocalTestingMode(params: Protocol.Storage.SetAttributionReportingLocalTestingModeRequest): Promise<void>;
|
3775
|
+
setAttributionReportingLocalTestingMode(params: Protocol.Storage.SetAttributionReportingLocalTestingModeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3762
3776
|
|
3763
3777
|
/**
|
3764
3778
|
* Enables/disables issuing of Attribution Reporting events.
|
3765
3779
|
*/
|
3766
|
-
setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<void>;
|
3780
|
+
setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3767
3781
|
|
3768
3782
|
/**
|
3769
3783
|
* Sends all pending Attribution Reports immediately, regardless of their
|
3770
3784
|
* scheduled report time.
|
3771
3785
|
*/
|
3772
|
-
sendPendingAttributionReports(): Promise<Protocol.Storage.SendPendingAttributionReportsResponse>;
|
3786
|
+
sendPendingAttributionReports(): Promise<{id: number, result: Protocol.Storage.SendPendingAttributionReportsResponse, sessionId: string}>;
|
3773
3787
|
|
3774
3788
|
/**
|
3775
3789
|
* Returns the effective Related Website Sets in use by this profile for the browser
|
3776
3790
|
* session. The effective Related Website Sets will not change during a browser session.
|
3777
3791
|
*/
|
3778
|
-
getRelatedWebsiteSets(): Promise<Protocol.Storage.GetRelatedWebsiteSetsResponse>;
|
3792
|
+
getRelatedWebsiteSets(): Promise<{id: number, result: Protocol.Storage.GetRelatedWebsiteSetsResponse, sessionId: string}>;
|
3779
3793
|
|
3780
3794
|
/**
|
3781
3795
|
* A cache's contents have been modified.
|
@@ -3861,17 +3875,17 @@ export namespace ProtocolTestsProxyApi {
|
|
3861
3875
|
/**
|
3862
3876
|
* Returns information about the system.
|
3863
3877
|
*/
|
3864
|
-
getInfo(): Promise<Protocol.SystemInfo.GetInfoResponse>;
|
3878
|
+
getInfo(): Promise<{id: number, result: Protocol.SystemInfo.GetInfoResponse, sessionId: string}>;
|
3865
3879
|
|
3866
3880
|
/**
|
3867
3881
|
* Returns information about the feature state.
|
3868
3882
|
*/
|
3869
|
-
getFeatureState(params: Protocol.SystemInfo.GetFeatureStateRequest): Promise<Protocol.SystemInfo.GetFeatureStateResponse>;
|
3883
|
+
getFeatureState(params: Protocol.SystemInfo.GetFeatureStateRequest): Promise<{id: number, result: Protocol.SystemInfo.GetFeatureStateResponse, sessionId: string}>;
|
3870
3884
|
|
3871
3885
|
/**
|
3872
3886
|
* Returns information about all running processes.
|
3873
3887
|
*/
|
3874
|
-
getProcessInfo(): Promise<Protocol.SystemInfo.GetProcessInfoResponse>;
|
3888
|
+
getProcessInfo(): Promise<{id: number, result: Protocol.SystemInfo.GetProcessInfoResponse, sessionId: string}>;
|
3875
3889
|
|
3876
3890
|
}
|
3877
3891
|
|
@@ -3879,22 +3893,22 @@ export namespace ProtocolTestsProxyApi {
|
|
3879
3893
|
/**
|
3880
3894
|
* Activates (focuses) the target.
|
3881
3895
|
*/
|
3882
|
-
activateTarget(params: Protocol.Target.ActivateTargetRequest): Promise<void>;
|
3896
|
+
activateTarget(params: Protocol.Target.ActivateTargetRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3883
3897
|
|
3884
3898
|
/**
|
3885
3899
|
* Attaches to the target with given id.
|
3886
3900
|
*/
|
3887
|
-
attachToTarget(params: Protocol.Target.AttachToTargetRequest): Promise<Protocol.Target.AttachToTargetResponse>;
|
3901
|
+
attachToTarget(params: Protocol.Target.AttachToTargetRequest): Promise<{id: number, result: Protocol.Target.AttachToTargetResponse, sessionId: string}>;
|
3888
3902
|
|
3889
3903
|
/**
|
3890
3904
|
* Attaches to the browser target, only uses flat sessionId mode.
|
3891
3905
|
*/
|
3892
|
-
attachToBrowserTarget(): Promise<Protocol.Target.AttachToBrowserTargetResponse>;
|
3906
|
+
attachToBrowserTarget(): Promise<{id: number, result: Protocol.Target.AttachToBrowserTargetResponse, sessionId: string}>;
|
3893
3907
|
|
3894
3908
|
/**
|
3895
3909
|
* Closes the target. If the target is a page that gets closed too.
|
3896
3910
|
*/
|
3897
|
-
closeTarget(params: Protocol.Target.CloseTargetRequest): Promise<Protocol.Target.CloseTargetResponse>;
|
3911
|
+
closeTarget(params: Protocol.Target.CloseTargetRequest): Promise<{id: number, result: Protocol.Target.CloseTargetResponse, sessionId: string}>;
|
3898
3912
|
|
3899
3913
|
/**
|
3900
3914
|
* Inject object to the target's main frame that provides a communication
|
@@ -3906,51 +3920,51 @@ export namespace ProtocolTestsProxyApi {
|
|
3906
3920
|
* - `binding.send(json)` - a method to send messages over the remote debugging protocol
|
3907
3921
|
* - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.
|
3908
3922
|
*/
|
3909
|
-
exposeDevToolsProtocol(params: Protocol.Target.ExposeDevToolsProtocolRequest): Promise<void>;
|
3923
|
+
exposeDevToolsProtocol(params: Protocol.Target.ExposeDevToolsProtocolRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3910
3924
|
|
3911
3925
|
/**
|
3912
3926
|
* Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
|
3913
3927
|
* one.
|
3914
3928
|
*/
|
3915
|
-
createBrowserContext(params: Protocol.Target.CreateBrowserContextRequest): Promise<Protocol.Target.CreateBrowserContextResponse>;
|
3929
|
+
createBrowserContext(params: Protocol.Target.CreateBrowserContextRequest): Promise<{id: number, result: Protocol.Target.CreateBrowserContextResponse, sessionId: string}>;
|
3916
3930
|
|
3917
3931
|
/**
|
3918
3932
|
* Returns all browser contexts created with `Target.createBrowserContext` method.
|
3919
3933
|
*/
|
3920
|
-
getBrowserContexts(): Promise<Protocol.Target.GetBrowserContextsResponse>;
|
3934
|
+
getBrowserContexts(): Promise<{id: number, result: Protocol.Target.GetBrowserContextsResponse, sessionId: string}>;
|
3921
3935
|
|
3922
3936
|
/**
|
3923
3937
|
* Creates a new page.
|
3924
3938
|
*/
|
3925
|
-
createTarget(params: Protocol.Target.CreateTargetRequest): Promise<Protocol.Target.CreateTargetResponse>;
|
3939
|
+
createTarget(params: Protocol.Target.CreateTargetRequest): Promise<{id: number, result: Protocol.Target.CreateTargetResponse, sessionId: string}>;
|
3926
3940
|
|
3927
3941
|
/**
|
3928
3942
|
* Detaches session with given id.
|
3929
3943
|
*/
|
3930
|
-
detachFromTarget(params: Protocol.Target.DetachFromTargetRequest): Promise<void>;
|
3944
|
+
detachFromTarget(params: Protocol.Target.DetachFromTargetRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3931
3945
|
|
3932
3946
|
/**
|
3933
3947
|
* Deletes a BrowserContext. All the belonging pages will be closed without calling their
|
3934
3948
|
* beforeunload hooks.
|
3935
3949
|
*/
|
3936
|
-
disposeBrowserContext(params: Protocol.Target.DisposeBrowserContextRequest): Promise<void>;
|
3950
|
+
disposeBrowserContext(params: Protocol.Target.DisposeBrowserContextRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3937
3951
|
|
3938
3952
|
/**
|
3939
3953
|
* Returns information about a target.
|
3940
3954
|
*/
|
3941
|
-
getTargetInfo(params: Protocol.Target.GetTargetInfoRequest): Promise<Protocol.Target.GetTargetInfoResponse>;
|
3955
|
+
getTargetInfo(params: Protocol.Target.GetTargetInfoRequest): Promise<{id: number, result: Protocol.Target.GetTargetInfoResponse, sessionId: string}>;
|
3942
3956
|
|
3943
3957
|
/**
|
3944
3958
|
* Retrieves a list of available targets.
|
3945
3959
|
*/
|
3946
|
-
getTargets(params: Protocol.Target.GetTargetsRequest): Promise<Protocol.Target.GetTargetsResponse>;
|
3960
|
+
getTargets(params: Protocol.Target.GetTargetsRequest): Promise<{id: number, result: Protocol.Target.GetTargetsResponse, sessionId: string}>;
|
3947
3961
|
|
3948
3962
|
/**
|
3949
3963
|
* Sends protocol message over session with given id.
|
3950
3964
|
* Consider using flat mode instead; see commands attachToTarget, setAutoAttach,
|
3951
3965
|
* and crbug.com/991325.
|
3952
3966
|
*/
|
3953
|
-
sendMessageToTarget(params: Protocol.Target.SendMessageToTargetRequest): Promise<void>;
|
3967
|
+
sendMessageToTarget(params: Protocol.Target.SendMessageToTargetRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3954
3968
|
|
3955
3969
|
/**
|
3956
3970
|
* Controls whether to automatically attach to new targets which are considered to be related to
|
@@ -3959,7 +3973,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3959
3973
|
* This also clears all targets added by `autoAttachRelated` from the list of targets to watch
|
3960
3974
|
* for creation of related targets.
|
3961
3975
|
*/
|
3962
|
-
setAutoAttach(params: Protocol.Target.SetAutoAttachRequest): Promise<void>;
|
3976
|
+
setAutoAttach(params: Protocol.Target.SetAutoAttachRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3963
3977
|
|
3964
3978
|
/**
|
3965
3979
|
* Adds the specified target to the list of targets that will be monitored for any related target
|
@@ -3968,19 +3982,19 @@ export namespace ProtocolTestsProxyApi {
|
|
3968
3982
|
* This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent
|
3969
3983
|
* `setAutoAttach`. Only available at the Browser target.
|
3970
3984
|
*/
|
3971
|
-
autoAttachRelated(params: Protocol.Target.AutoAttachRelatedRequest): Promise<void>;
|
3985
|
+
autoAttachRelated(params: Protocol.Target.AutoAttachRelatedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3972
3986
|
|
3973
3987
|
/**
|
3974
3988
|
* Controls whether to discover available targets and notify via
|
3975
3989
|
* `targetCreated/targetInfoChanged/targetDestroyed` events.
|
3976
3990
|
*/
|
3977
|
-
setDiscoverTargets(params: Protocol.Target.SetDiscoverTargetsRequest): Promise<void>;
|
3991
|
+
setDiscoverTargets(params: Protocol.Target.SetDiscoverTargetsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3978
3992
|
|
3979
3993
|
/**
|
3980
3994
|
* Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
|
3981
3995
|
* `true`.
|
3982
3996
|
*/
|
3983
|
-
setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<void>;
|
3997
|
+
setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
3984
3998
|
|
3985
3999
|
/**
|
3986
4000
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
@@ -4040,12 +4054,12 @@ export namespace ProtocolTestsProxyApi {
|
|
4040
4054
|
/**
|
4041
4055
|
* Request browser port binding.
|
4042
4056
|
*/
|
4043
|
-
bind(params: Protocol.Tethering.BindRequest): Promise<void>;
|
4057
|
+
bind(params: Protocol.Tethering.BindRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4044
4058
|
|
4045
4059
|
/**
|
4046
4060
|
* Request browser port unbinding.
|
4047
4061
|
*/
|
4048
|
-
unbind(params: Protocol.Tethering.UnbindRequest): Promise<void>;
|
4062
|
+
unbind(params: Protocol.Tethering.UnbindRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4049
4063
|
|
4050
4064
|
/**
|
4051
4065
|
* Informs that port was successfully bound and got a specified connection id.
|
@@ -4060,27 +4074,27 @@ export namespace ProtocolTestsProxyApi {
|
|
4060
4074
|
/**
|
4061
4075
|
* Stop trace events collection.
|
4062
4076
|
*/
|
4063
|
-
end(): Promise<void>;
|
4077
|
+
end(): Promise<{id: number, result: void, sessionId: string}>;
|
4064
4078
|
|
4065
4079
|
/**
|
4066
4080
|
* Gets supported tracing categories.
|
4067
4081
|
*/
|
4068
|
-
getCategories(): Promise<Protocol.Tracing.GetCategoriesResponse>;
|
4082
|
+
getCategories(): Promise<{id: number, result: Protocol.Tracing.GetCategoriesResponse, sessionId: string}>;
|
4069
4083
|
|
4070
4084
|
/**
|
4071
4085
|
* Record a clock sync marker in the trace.
|
4072
4086
|
*/
|
4073
|
-
recordClockSyncMarker(params: Protocol.Tracing.RecordClockSyncMarkerRequest): Promise<void>;
|
4087
|
+
recordClockSyncMarker(params: Protocol.Tracing.RecordClockSyncMarkerRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4074
4088
|
|
4075
4089
|
/**
|
4076
4090
|
* Request a global memory dump.
|
4077
4091
|
*/
|
4078
|
-
requestMemoryDump(params: Protocol.Tracing.RequestMemoryDumpRequest): Promise<Protocol.Tracing.RequestMemoryDumpResponse>;
|
4092
|
+
requestMemoryDump(params: Protocol.Tracing.RequestMemoryDumpRequest): Promise<{id: number, result: Protocol.Tracing.RequestMemoryDumpResponse, sessionId: string}>;
|
4079
4093
|
|
4080
4094
|
/**
|
4081
4095
|
* Start trace events collection.
|
4082
4096
|
*/
|
4083
|
-
start(params: Protocol.Tracing.StartRequest): Promise<void>;
|
4097
|
+
start(params: Protocol.Tracing.StartRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4084
4098
|
|
4085
4099
|
onBufferUsage(listener: (event: { params: Protocol.Tracing.BufferUsageEvent }) => void): void;
|
4086
4100
|
offBufferUsage(listener: (event: { params: Protocol.Tracing.BufferUsageEvent }) => void): void;
|
@@ -4108,40 +4122,40 @@ export namespace ProtocolTestsProxyApi {
|
|
4108
4122
|
/**
|
4109
4123
|
* Disables the fetch domain.
|
4110
4124
|
*/
|
4111
|
-
disable(): Promise<void>;
|
4125
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4112
4126
|
|
4113
4127
|
/**
|
4114
4128
|
* Enables issuing of requestPaused events. A request will be paused until client
|
4115
4129
|
* calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.
|
4116
4130
|
*/
|
4117
|
-
enable(params: Protocol.Fetch.EnableRequest): Promise<void>;
|
4131
|
+
enable(params: Protocol.Fetch.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4118
4132
|
|
4119
4133
|
/**
|
4120
4134
|
* Causes the request to fail with specified reason.
|
4121
4135
|
*/
|
4122
|
-
failRequest(params: Protocol.Fetch.FailRequestRequest): Promise<void>;
|
4136
|
+
failRequest(params: Protocol.Fetch.FailRequestRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4123
4137
|
|
4124
4138
|
/**
|
4125
4139
|
* Provides response to the request.
|
4126
4140
|
*/
|
4127
|
-
fulfillRequest(params: Protocol.Fetch.FulfillRequestRequest): Promise<void>;
|
4141
|
+
fulfillRequest(params: Protocol.Fetch.FulfillRequestRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4128
4142
|
|
4129
4143
|
/**
|
4130
4144
|
* Continues the request, optionally modifying some of its parameters.
|
4131
4145
|
*/
|
4132
|
-
continueRequest(params: Protocol.Fetch.ContinueRequestRequest): Promise<void>;
|
4146
|
+
continueRequest(params: Protocol.Fetch.ContinueRequestRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4133
4147
|
|
4134
4148
|
/**
|
4135
4149
|
* Continues a request supplying authChallengeResponse following authRequired event.
|
4136
4150
|
*/
|
4137
|
-
continueWithAuth(params: Protocol.Fetch.ContinueWithAuthRequest): Promise<void>;
|
4151
|
+
continueWithAuth(params: Protocol.Fetch.ContinueWithAuthRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4138
4152
|
|
4139
4153
|
/**
|
4140
4154
|
* Continues loading of the paused response, optionally modifying the
|
4141
4155
|
* response headers. If either responseCode or headers are modified, all of them
|
4142
4156
|
* must be present.
|
4143
4157
|
*/
|
4144
|
-
continueResponse(params: Protocol.Fetch.ContinueResponseRequest): Promise<void>;
|
4158
|
+
continueResponse(params: Protocol.Fetch.ContinueResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4145
4159
|
|
4146
4160
|
/**
|
4147
4161
|
* Causes the body of the response to be received from the server and
|
@@ -4155,7 +4169,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4155
4169
|
* `responseCode` and presence of `location` response header, see
|
4156
4170
|
* comments to `requestPaused` for details.
|
4157
4171
|
*/
|
4158
|
-
getResponseBody(params: Protocol.Fetch.GetResponseBodyRequest): Promise<Protocol.Fetch.GetResponseBodyResponse>;
|
4172
|
+
getResponseBody(params: Protocol.Fetch.GetResponseBodyRequest): Promise<{id: number, result: Protocol.Fetch.GetResponseBodyResponse, sessionId: string}>;
|
4159
4173
|
|
4160
4174
|
/**
|
4161
4175
|
* Returns a handle to the stream representing the response body.
|
@@ -4169,7 +4183,7 @@ export namespace ProtocolTestsProxyApi {
|
|
4169
4183
|
* Calling other methods that affect the request or disabling fetch
|
4170
4184
|
* domain before body is received results in an undefined behavior.
|
4171
4185
|
*/
|
4172
|
-
takeResponseBodyAsStream(params: Protocol.Fetch.TakeResponseBodyAsStreamRequest): Promise<Protocol.Fetch.TakeResponseBodyAsStreamResponse>;
|
4186
|
+
takeResponseBodyAsStream(params: Protocol.Fetch.TakeResponseBodyAsStreamRequest): Promise<{id: number, result: Protocol.Fetch.TakeResponseBodyAsStreamResponse, sessionId: string}>;
|
4173
4187
|
|
4174
4188
|
/**
|
4175
4189
|
* Issued when the domain is enabled and the request URL matches the
|
@@ -4202,17 +4216,17 @@ export namespace ProtocolTestsProxyApi {
|
|
4202
4216
|
/**
|
4203
4217
|
* Enables the WebAudio domain and starts sending context lifetime events.
|
4204
4218
|
*/
|
4205
|
-
enable(): Promise<void>;
|
4219
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
4206
4220
|
|
4207
4221
|
/**
|
4208
4222
|
* Disables the WebAudio domain.
|
4209
4223
|
*/
|
4210
|
-
disable(): Promise<void>;
|
4224
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4211
4225
|
|
4212
4226
|
/**
|
4213
4227
|
* Fetch the realtime data from the registered contexts.
|
4214
4228
|
*/
|
4215
|
-
getRealtimeData(params: Protocol.WebAudio.GetRealtimeDataRequest): Promise<Protocol.WebAudio.GetRealtimeDataResponse>;
|
4229
|
+
getRealtimeData(params: Protocol.WebAudio.GetRealtimeDataRequest): Promise<{id: number, result: Protocol.WebAudio.GetRealtimeDataResponse, sessionId: string}>;
|
4216
4230
|
|
4217
4231
|
/**
|
4218
4232
|
* Notifies that a new BaseAudioContext has been created.
|
@@ -4312,71 +4326,71 @@ export namespace ProtocolTestsProxyApi {
|
|
4312
4326
|
* Enable the WebAuthn domain and start intercepting credential storage and
|
4313
4327
|
* retrieval with a virtual authenticator.
|
4314
4328
|
*/
|
4315
|
-
enable(params: Protocol.WebAuthn.EnableRequest): Promise<void>;
|
4329
|
+
enable(params: Protocol.WebAuthn.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4316
4330
|
|
4317
4331
|
/**
|
4318
4332
|
* Disable the WebAuthn domain.
|
4319
4333
|
*/
|
4320
|
-
disable(): Promise<void>;
|
4334
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4321
4335
|
|
4322
4336
|
/**
|
4323
4337
|
* Creates and adds a virtual authenticator.
|
4324
4338
|
*/
|
4325
|
-
addVirtualAuthenticator(params: Protocol.WebAuthn.AddVirtualAuthenticatorRequest): Promise<Protocol.WebAuthn.AddVirtualAuthenticatorResponse>;
|
4339
|
+
addVirtualAuthenticator(params: Protocol.WebAuthn.AddVirtualAuthenticatorRequest): Promise<{id: number, result: Protocol.WebAuthn.AddVirtualAuthenticatorResponse, sessionId: string}>;
|
4326
4340
|
|
4327
4341
|
/**
|
4328
4342
|
* Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.
|
4329
4343
|
*/
|
4330
|
-
setResponseOverrideBits(params: Protocol.WebAuthn.SetResponseOverrideBitsRequest): Promise<void>;
|
4344
|
+
setResponseOverrideBits(params: Protocol.WebAuthn.SetResponseOverrideBitsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4331
4345
|
|
4332
4346
|
/**
|
4333
4347
|
* Removes the given authenticator.
|
4334
4348
|
*/
|
4335
|
-
removeVirtualAuthenticator(params: Protocol.WebAuthn.RemoveVirtualAuthenticatorRequest): Promise<void>;
|
4349
|
+
removeVirtualAuthenticator(params: Protocol.WebAuthn.RemoveVirtualAuthenticatorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4336
4350
|
|
4337
4351
|
/**
|
4338
4352
|
* Adds the credential to the specified authenticator.
|
4339
4353
|
*/
|
4340
|
-
addCredential(params: Protocol.WebAuthn.AddCredentialRequest): Promise<void>;
|
4354
|
+
addCredential(params: Protocol.WebAuthn.AddCredentialRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4341
4355
|
|
4342
4356
|
/**
|
4343
4357
|
* Returns a single credential stored in the given virtual authenticator that
|
4344
4358
|
* matches the credential ID.
|
4345
4359
|
*/
|
4346
|
-
getCredential(params: Protocol.WebAuthn.GetCredentialRequest): Promise<Protocol.WebAuthn.GetCredentialResponse>;
|
4360
|
+
getCredential(params: Protocol.WebAuthn.GetCredentialRequest): Promise<{id: number, result: Protocol.WebAuthn.GetCredentialResponse, sessionId: string}>;
|
4347
4361
|
|
4348
4362
|
/**
|
4349
4363
|
* Returns all the credentials stored in the given virtual authenticator.
|
4350
4364
|
*/
|
4351
|
-
getCredentials(params: Protocol.WebAuthn.GetCredentialsRequest): Promise<Protocol.WebAuthn.GetCredentialsResponse>;
|
4365
|
+
getCredentials(params: Protocol.WebAuthn.GetCredentialsRequest): Promise<{id: number, result: Protocol.WebAuthn.GetCredentialsResponse, sessionId: string}>;
|
4352
4366
|
|
4353
4367
|
/**
|
4354
4368
|
* Removes a credential from the authenticator.
|
4355
4369
|
*/
|
4356
|
-
removeCredential(params: Protocol.WebAuthn.RemoveCredentialRequest): Promise<void>;
|
4370
|
+
removeCredential(params: Protocol.WebAuthn.RemoveCredentialRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4357
4371
|
|
4358
4372
|
/**
|
4359
4373
|
* Clears all the credentials from the specified device.
|
4360
4374
|
*/
|
4361
|
-
clearCredentials(params: Protocol.WebAuthn.ClearCredentialsRequest): Promise<void>;
|
4375
|
+
clearCredentials(params: Protocol.WebAuthn.ClearCredentialsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4362
4376
|
|
4363
4377
|
/**
|
4364
4378
|
* Sets whether User Verification succeeds or fails for an authenticator.
|
4365
4379
|
* The default is true.
|
4366
4380
|
*/
|
4367
|
-
setUserVerified(params: Protocol.WebAuthn.SetUserVerifiedRequest): Promise<void>;
|
4381
|
+
setUserVerified(params: Protocol.WebAuthn.SetUserVerifiedRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4368
4382
|
|
4369
4383
|
/**
|
4370
4384
|
* Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator.
|
4371
4385
|
* The default is true.
|
4372
4386
|
*/
|
4373
|
-
setAutomaticPresenceSimulation(params: Protocol.WebAuthn.SetAutomaticPresenceSimulationRequest): Promise<void>;
|
4387
|
+
setAutomaticPresenceSimulation(params: Protocol.WebAuthn.SetAutomaticPresenceSimulationRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4374
4388
|
|
4375
4389
|
/**
|
4376
4390
|
* Allows setting credential properties.
|
4377
4391
|
* https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties
|
4378
4392
|
*/
|
4379
|
-
setCredentialProperties(params: Protocol.WebAuthn.SetCredentialPropertiesRequest): Promise<void>;
|
4393
|
+
setCredentialProperties(params: Protocol.WebAuthn.SetCredentialPropertiesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4380
4394
|
|
4381
4395
|
/**
|
4382
4396
|
* Triggered when a credential is added to an authenticator.
|
@@ -4398,12 +4412,12 @@ export namespace ProtocolTestsProxyApi {
|
|
4398
4412
|
/**
|
4399
4413
|
* Enables the Media domain
|
4400
4414
|
*/
|
4401
|
-
enable(): Promise<void>;
|
4415
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
4402
4416
|
|
4403
4417
|
/**
|
4404
4418
|
* Disables the Media domain.
|
4405
4419
|
*/
|
4406
|
-
disable(): Promise<void>;
|
4420
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4407
4421
|
|
4408
4422
|
/**
|
4409
4423
|
* This can be called multiple times, and can be used to set / override /
|
@@ -4450,22 +4464,22 @@ export namespace ProtocolTestsProxyApi {
|
|
4450
4464
|
/**
|
4451
4465
|
* Enable events in this domain.
|
4452
4466
|
*/
|
4453
|
-
enable(): Promise<void>;
|
4467
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
4454
4468
|
|
4455
4469
|
/**
|
4456
4470
|
* Disable events in this domain.
|
4457
4471
|
*/
|
4458
|
-
disable(): Promise<void>;
|
4472
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4459
4473
|
|
4460
4474
|
/**
|
4461
4475
|
* Select a device in response to a DeviceAccess.deviceRequestPrompted event.
|
4462
4476
|
*/
|
4463
|
-
selectPrompt(params: Protocol.DeviceAccess.SelectPromptRequest): Promise<void>;
|
4477
|
+
selectPrompt(params: Protocol.DeviceAccess.SelectPromptRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4464
4478
|
|
4465
4479
|
/**
|
4466
4480
|
* Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
|
4467
4481
|
*/
|
4468
|
-
cancelPrompt(params: Protocol.DeviceAccess.CancelPromptRequest): Promise<void>;
|
4482
|
+
cancelPrompt(params: Protocol.DeviceAccess.CancelPromptRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4469
4483
|
|
4470
4484
|
/**
|
4471
4485
|
* A device request opened a user prompt to select a device. Respond with the
|
@@ -4478,9 +4492,9 @@ export namespace ProtocolTestsProxyApi {
|
|
4478
4492
|
}
|
4479
4493
|
|
4480
4494
|
export interface PreloadApi {
|
4481
|
-
enable(): Promise<void>;
|
4495
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
4482
4496
|
|
4483
|
-
disable(): Promise<void>;
|
4497
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4484
4498
|
|
4485
4499
|
/**
|
4486
4500
|
* Upsert. Currently, it is only emitted when a rule set added.
|
@@ -4524,23 +4538,23 @@ export namespace ProtocolTestsProxyApi {
|
|
4524
4538
|
}
|
4525
4539
|
|
4526
4540
|
export interface FedCmApi {
|
4527
|
-
enable(params: Protocol.FedCm.EnableRequest): Promise<void>;
|
4541
|
+
enable(params: Protocol.FedCm.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4528
4542
|
|
4529
|
-
disable(): Promise<void>;
|
4543
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
4530
4544
|
|
4531
|
-
selectAccount(params: Protocol.FedCm.SelectAccountRequest): Promise<void>;
|
4545
|
+
selectAccount(params: Protocol.FedCm.SelectAccountRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4532
4546
|
|
4533
|
-
clickDialogButton(params: Protocol.FedCm.ClickDialogButtonRequest): Promise<void>;
|
4547
|
+
clickDialogButton(params: Protocol.FedCm.ClickDialogButtonRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4534
4548
|
|
4535
|
-
openUrl(params: Protocol.FedCm.OpenUrlRequest): Promise<void>;
|
4549
|
+
openUrl(params: Protocol.FedCm.OpenUrlRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4536
4550
|
|
4537
|
-
dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<void>;
|
4551
|
+
dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4538
4552
|
|
4539
4553
|
/**
|
4540
4554
|
* Resets the cooldown time, if any, to allow the next FedCM call to show
|
4541
4555
|
* a dialog even if one was recently dismissed by the user.
|
4542
4556
|
*/
|
4543
|
-
resetCooldown(): Promise<void>;
|
4557
|
+
resetCooldown(): Promise<{id: number, result: void, sessionId: string}>;
|
4544
4558
|
|
4545
4559
|
onDialogShown(listener: (event: { params: Protocol.FedCm.DialogShownEvent }) => void): void;
|
4546
4560
|
offDialogShown(listener: (event: { params: Protocol.FedCm.DialogShownEvent }) => void): void;
|