mirror of
https://github.com/hanzoai/playwright.git
synced 2026-09-24 17:01:53 +00:00
chore(protocol): split channel and dispatcher types (#41321)
This commit is contained in:
@@ -7,12 +7,12 @@ Playwright uses a client-server architecture connected by a protocol layer. The
|
||||
```
|
||||
packages/protocol/src/
|
||||
protocol.yml — RPC protocol definition (source of truth)
|
||||
channels.d.ts — generated TypeScript channel interfaces
|
||||
callMetadata.d.ts — call metadata types
|
||||
|
||||
packages/playwright-core/src/
|
||||
client/ — public API objects (ChannelOwner subclasses)
|
||||
channels.d.ts — generated client channel interfaces
|
||||
server/ — browser automation implementation (SdkObject subclasses)
|
||||
channels.d.ts — generated server channel interfaces
|
||||
server/dispatchers/ — protocol bridge (Dispatcher subclasses)
|
||||
protocol/ — validators (generated + primitives)
|
||||
utils/isomorphic/ — shared code used by both client and server
|
||||
|
||||
@@ -27,7 +27,6 @@ export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'@isomorphic': path.resolve(__dirname, '../isomorphic'),
|
||||
'@protocol': path.resolve(__dirname, '../protocol/src'),
|
||||
'@web': path.resolve(__dirname, '../web/src'),
|
||||
'@trace-viewer': path.resolve(__dirname, '../trace-viewer/src'),
|
||||
},
|
||||
|
||||
@@ -37,7 +37,6 @@ import type { AriaTemplateNode } from '@isomorphic/ariaSnapshot';
|
||||
import type { CSSComplexSelectorList } from '@isomorphic/cssParser';
|
||||
import type { Language } from '@isomorphic/locatorGenerators';
|
||||
import type { AttributeSelectorPart, NestedSelectorBody, ParsedSelector, ParsedSelectorPart } from '@isomorphic/selectorParser';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { AriaSnapshot, AriaTreeOptions } from './ariaSnapshot';
|
||||
import type { LayoutSelectorName } from './layoutSelectorUtils';
|
||||
import type { SelectorEngine, SelectorRoot } from './selectorEngine';
|
||||
@@ -46,8 +45,28 @@ import type { ElementText, TextMatcher } from './selectorUtils';
|
||||
import type { Builtins } from './utilityScript';
|
||||
|
||||
|
||||
export type FrameExpectParams = Omit<channels.FrameExpectParams, 'expectedValue' | 'timeout'> & {
|
||||
expectedValue?: any;
|
||||
type ExpectedTextValue = {
|
||||
string?: string,
|
||||
regexSource?: string,
|
||||
regexFlags?: string,
|
||||
matchSubstring?: boolean,
|
||||
ignoreCase?: boolean,
|
||||
normalizeWhiteSpace?: boolean,
|
||||
};
|
||||
|
||||
type Point = { x: number, y: number };
|
||||
type Rect = Point & { width: number, height: number };
|
||||
|
||||
export type FrameExpectParams = {
|
||||
selector?: string,
|
||||
expression: string,
|
||||
expressionArg?: any,
|
||||
pseudo?: 'before' | 'after',
|
||||
expectedText?: ExpectedTextValue[],
|
||||
expectedNumber?: number,
|
||||
expectedValue?: any,
|
||||
useInnerText?: boolean,
|
||||
isNot: boolean,
|
||||
};
|
||||
|
||||
export type ElementState = 'visible' | 'hidden' | 'enabled' | 'disabled' | 'editable' | 'checked' | 'unchecked' | 'indeterminate' | 'stable';
|
||||
@@ -1337,7 +1356,7 @@ export class InjectedScript {
|
||||
highlight.removeElementHighlight(selector);
|
||||
}
|
||||
|
||||
setScreencastAnnotation(annotation: { point?: channels.Point, box?: channels.Rect, actionTitle?: string, duration?: number, position?: string, fontSize?: number, cursor?: 'none' | 'pointer' } | null) {
|
||||
setScreencastAnnotation(annotation: { point?: Point, box?: Rect, actionTitle?: string, duration?: number, position?: string, fontSize?: number, cursor?: 'none' | 'pointer' } | null) {
|
||||
const highlight = this._ensureHighlight();
|
||||
if (!annotation) {
|
||||
highlight.updateHighlight([]);
|
||||
@@ -1722,7 +1741,7 @@ export class InjectedScript {
|
||||
}
|
||||
|
||||
private _matchSequentially<T>(
|
||||
expectedText: channels.ExpectedTextValue[],
|
||||
expectedText: ExpectedTextValue[],
|
||||
received: T[],
|
||||
matchFn: (matcher: ExpectedTextMatcher, received: T) => boolean
|
||||
): boolean {
|
||||
@@ -1811,7 +1830,7 @@ class ExpectedTextMatcher {
|
||||
private _normalizeWhiteSpace: boolean | undefined;
|
||||
private _ignoreCase: boolean | undefined;
|
||||
|
||||
constructor(expected: channels.ExpectedTextValue) {
|
||||
constructor(expected: ExpectedTextValue) {
|
||||
this._normalizeWhiteSpace = expected.normalizeWhiteSpace;
|
||||
this._ignoreCase = expected.ignoreCase;
|
||||
this._string = expected.matchSubstring ? undefined : this.normalize(expected.string);
|
||||
|
||||
@@ -16,9 +16,42 @@
|
||||
|
||||
import { parseEvaluationResultValue, serializeAsCallArgument } from '@isomorphic/utilityScriptSerializers';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
type NameValue = { name: string, value: string };
|
||||
|
||||
export type SerializedStorage = Omit<channels.OriginStorage, 'origin'>;
|
||||
type IndexedDBDatabase = {
|
||||
name: string,
|
||||
version: number,
|
||||
stores: {
|
||||
name: string,
|
||||
autoIncrement: boolean,
|
||||
keyPath?: string,
|
||||
keyPathArray?: string[],
|
||||
records: {
|
||||
key?: any,
|
||||
keyEncoded?: any,
|
||||
value?: any,
|
||||
valueEncoded?: any,
|
||||
}[],
|
||||
indexes: {
|
||||
name: string,
|
||||
keyPath?: string,
|
||||
keyPathArray?: string[],
|
||||
multiEntry: boolean,
|
||||
unique: boolean,
|
||||
}[],
|
||||
}[],
|
||||
};
|
||||
|
||||
type SetOriginStorage = {
|
||||
origin: string,
|
||||
localStorage: NameValue[],
|
||||
indexedDB?: IndexedDBDatabase[],
|
||||
};
|
||||
|
||||
export type SerializedStorage = {
|
||||
localStorage: NameValue[],
|
||||
indexedDB?: IndexedDBDatabase[],
|
||||
};
|
||||
|
||||
export class StorageScript {
|
||||
private _isFirefox: boolean;
|
||||
@@ -85,7 +118,7 @@ export class StorageScript {
|
||||
|
||||
const keys = await this._idbRequestToPromise(objectStore.getAllKeys());
|
||||
const records = await Promise.all(keys.map(async key => {
|
||||
const record: channels.IndexedDBDatabase['stores'][0]['records'][0] = {};
|
||||
const record: IndexedDBDatabase['stores'][0]['records'][0] = {};
|
||||
|
||||
if (objectStore.keyPath === null) {
|
||||
const { encoded, trivial } = this._trySerialize(key);
|
||||
@@ -146,7 +179,7 @@ export class StorageScript {
|
||||
}
|
||||
}
|
||||
|
||||
private async _restoreDB(dbInfo: channels.IndexedDBDatabase) {
|
||||
private async _restoreDB(dbInfo: IndexedDBDatabase) {
|
||||
const openRequest = this._global.indexedDB.open(dbInfo.name, dbInfo.version);
|
||||
openRequest.addEventListener('upgradeneeded', () => {
|
||||
const db = openRequest.result;
|
||||
@@ -176,7 +209,7 @@ export class StorageScript {
|
||||
}));
|
||||
}
|
||||
|
||||
async restore(originState: channels.SetOriginStorage | undefined) {
|
||||
async restore(originState: SetOriginStorage | undefined) {
|
||||
// Clean Service Workers.
|
||||
const registrations = this._global.navigator.serviceWorker ? await this._global.navigator.serviceWorker.getRegistrations() : [];
|
||||
await Promise.all(registrations.map(async r => {
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { isRegExp, isString } from './rtti';
|
||||
import type { ExpectedTextValue } from '@protocol/channels';
|
||||
|
||||
export function serializeExpectedTextValues(items: (string | RegExp)[], options: { matchSubstring?: boolean, normalizeWhiteSpace?: boolean, ignoreCase?: boolean } = {}): ExpectedTextValue[] {
|
||||
return items.map(i => ({
|
||||
string: isString(i) ? i : undefined,
|
||||
regexSource: isRegExp(i) ? i.source : undefined,
|
||||
regexFlags: isRegExp(i) ? i.flags : undefined,
|
||||
matchSubstring: options.matchSubstring,
|
||||
ignoreCase: options.ignoreCase,
|
||||
normalizeWhiteSpace: options.normalizeWhiteSpace,
|
||||
}));
|
||||
}
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
export * from './ariaSnapshot';
|
||||
export * from './expectUtils';
|
||||
export * from './assert';
|
||||
export * from './base64';
|
||||
export * from './colors';
|
||||
|
||||
@@ -20,7 +20,6 @@ import type * as fs from 'fs';
|
||||
import type * as path from 'path';
|
||||
import type { Readable, Writable } from 'stream';
|
||||
import type { Colors } from '@isomorphic/colors';
|
||||
import type * as channels from '@protocol/channels';
|
||||
|
||||
export type Zone = {
|
||||
push(data: unknown): Zone;
|
||||
@@ -29,6 +28,16 @@ export type Zone = {
|
||||
data<T>(): T | undefined;
|
||||
};
|
||||
|
||||
export type StreamChannel = {
|
||||
read(params: { size?: number }): Promise<{ binary: Buffer }>;
|
||||
close(params?: {}): Promise<any>;
|
||||
};
|
||||
|
||||
export type WritableStreamChannel = {
|
||||
write(params: { binary: Buffer }): Promise<any>;
|
||||
close(params?: {}): Promise<any>;
|
||||
};
|
||||
|
||||
const noopZone: Zone = {
|
||||
push: () => noopZone,
|
||||
pop: () => noopZone,
|
||||
@@ -57,8 +66,8 @@ export type Platform = {
|
||||
pathSeparator: string;
|
||||
showInternalStackFrames: () => boolean,
|
||||
streamFile: (path: string, writable: Writable) => Promise<void>,
|
||||
streamReadable: (channel: channels.StreamChannel) => Readable,
|
||||
streamWritable: (channel: channels.WritableStreamChannel) => Writable,
|
||||
streamReadable: (channel: StreamChannel) => Readable,
|
||||
streamWritable: (channel: WritableStreamChannel) => Writable,
|
||||
zones: { empty: Zone, current: () => Zone; };
|
||||
};
|
||||
|
||||
@@ -111,11 +120,11 @@ export const emptyPlatform: Platform = {
|
||||
throw new Error('Streams are not available');
|
||||
},
|
||||
|
||||
streamReadable: (channel: channels.StreamChannel) => {
|
||||
streamReadable: (channel: StreamChannel) => {
|
||||
throw new Error('Streams are not available');
|
||||
},
|
||||
|
||||
streamWritable: (channel: channels.WritableStreamChannel) => {
|
||||
streamWritable: (channel: WritableStreamChannel) => {
|
||||
throw new Error('Streams are not available');
|
||||
},
|
||||
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
|
||||
import { getActionGroup, renderTitleForCall } from '../protocolFormatter';
|
||||
|
||||
import type { StackFrame } from '../stackTrace';
|
||||
import type { Language } from '../locatorGenerators';
|
||||
import type { ResourceSnapshot } from '@trace/snapshot';
|
||||
import type * as trace from '@trace/trace';
|
||||
import type { ActionTraceEvent } from '@trace/trace';
|
||||
import type { ActionEntry, ContextEntry, PageEntry } from './entries';
|
||||
import type { StackFrame } from '@protocol/channels';
|
||||
import type { ActionGroup } from '../protocolFormatter';
|
||||
|
||||
const contextSymbol = Symbol('context');
|
||||
|
||||
@@ -14,7 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import type { ClientSideCallMetadata, StackFrame } from '@protocol/channels';
|
||||
import type { StackFrame } from '../stackTrace';
|
||||
|
||||
type ClientSideCallMetadata = {
|
||||
id: number,
|
||||
stack?: StackFrame[],
|
||||
};
|
||||
|
||||
export type SerializedStackFrame = [number, number, number, string];
|
||||
export type SerializedStack = [number, SerializedStackFrame[]];
|
||||
|
||||
@@ -31,7 +31,7 @@ import type * as types from './types';
|
||||
import type * as api from '../../types/types';
|
||||
import type { AndroidServerLauncherImpl } from '../androidServerImpl';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { Playwright } from './playwright';
|
||||
|
||||
type Direction = 'down' | 'up' | 'left' | 'right';
|
||||
|
||||
@@ -18,7 +18,7 @@ import { ChannelOwner } from './channelOwner';
|
||||
import { Stream } from './stream';
|
||||
import { mkdirIfNeeded } from './fileUtils';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { Readable } from 'stream';
|
||||
|
||||
export class Artifact extends ChannelOwner<channels.ArtifactChannel> {
|
||||
|
||||
@@ -26,7 +26,7 @@ import type { BrowserType } from './browserType';
|
||||
import type { Page } from './page';
|
||||
import type { BrowserContextOptions, LaunchOptions, Logger } from './types';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Browser extends ChannelOwner<channels.BrowserChannel> implements api.Browser {
|
||||
readonly _contexts = new Set<BrowserContext>();
|
||||
|
||||
@@ -48,7 +48,7 @@ import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { URLMatch } from '@isomorphic/urlMatch';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type * as actions from '@recorder/actions';
|
||||
|
||||
interface RecorderEventSink {
|
||||
|
||||
@@ -27,7 +27,7 @@ import { Worker } from './worker';
|
||||
import type { Playwright } from './playwright';
|
||||
import type { ConnectOptions, LaunchOptions, LaunchPersistentContextOptions, LaunchServerOptions } from './types';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { ChildProcess } from 'child_process';
|
||||
|
||||
export interface BrowserServerLauncher {
|
||||
|
||||
@@ -18,7 +18,7 @@ import { ChannelOwner } from './channelOwner';
|
||||
|
||||
import type * as api from '../../types/types';
|
||||
import type { Protocol } from '../server/chromium/protocol';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class CDPSession extends ChannelOwner<channels.CDPSessionChannel> implements api.CDPSession {
|
||||
static from(cdpSession: channels.CDPSessionChannel): CDPSession {
|
||||
|
||||
@@ -25,7 +25,7 @@ import type { Connection } from './connection';
|
||||
import type { Logger } from './types';
|
||||
import type { ValidatorContext } from '../protocol/validator';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
type Listener = (...args: any[]) => void;
|
||||
|
||||
|
||||
+317
-321
@@ -15,10 +15,6 @@
|
||||
*/
|
||||
|
||||
// This file is generated by generate_channels.js, do not edit manually.
|
||||
|
||||
import type { CallMetadata } from './callMetadata';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
export type Binary = Buffer;
|
||||
|
||||
export interface Channel {
|
||||
@@ -144,7 +140,7 @@ export interface AndroidEventTarget {
|
||||
}
|
||||
export interface AndroidChannel extends AndroidEventTarget, Channel {
|
||||
_type_Android: boolean;
|
||||
devices(params: AndroidDevicesParams, progress?: Progress): Promise<AndroidDevicesResult>;
|
||||
devices(params: AndroidDevicesParams): Promise<AndroidDevicesResult>;
|
||||
}
|
||||
export type AndroidDevicesParams = {
|
||||
host?: string,
|
||||
@@ -171,8 +167,8 @@ export interface AndroidSocketEventTarget {
|
||||
}
|
||||
export interface AndroidSocketChannel extends AndroidSocketEventTarget, Channel {
|
||||
_type_AndroidSocket: boolean;
|
||||
write(params: AndroidSocketWriteParams, progress?: Progress): Promise<AndroidSocketWriteResult>;
|
||||
close(params?: AndroidSocketCloseParams, progress?: Progress): Promise<AndroidSocketCloseResult>;
|
||||
write(params: AndroidSocketWriteParams): Promise<AndroidSocketWriteResult>;
|
||||
close(params?: AndroidSocketCloseParams): Promise<AndroidSocketCloseResult>;
|
||||
}
|
||||
export type AndroidSocketDataEvent = {
|
||||
data: Binary,
|
||||
@@ -206,30 +202,30 @@ export interface AndroidDeviceEventTarget {
|
||||
}
|
||||
export interface AndroidDeviceChannel extends AndroidDeviceEventTarget, Channel {
|
||||
_type_AndroidDevice: boolean;
|
||||
wait(params: AndroidDeviceWaitParams, progress?: Progress): Promise<AndroidDeviceWaitResult>;
|
||||
fill(params: AndroidDeviceFillParams, progress?: Progress): Promise<AndroidDeviceFillResult>;
|
||||
tap(params: AndroidDeviceTapParams, progress?: Progress): Promise<AndroidDeviceTapResult>;
|
||||
drag(params: AndroidDeviceDragParams, progress?: Progress): Promise<AndroidDeviceDragResult>;
|
||||
fling(params: AndroidDeviceFlingParams, progress?: Progress): Promise<AndroidDeviceFlingResult>;
|
||||
longTap(params: AndroidDeviceLongTapParams, progress?: Progress): Promise<AndroidDeviceLongTapResult>;
|
||||
pinchClose(params: AndroidDevicePinchCloseParams, progress?: Progress): Promise<AndroidDevicePinchCloseResult>;
|
||||
pinchOpen(params: AndroidDevicePinchOpenParams, progress?: Progress): Promise<AndroidDevicePinchOpenResult>;
|
||||
scroll(params: AndroidDeviceScrollParams, progress?: Progress): Promise<AndroidDeviceScrollResult>;
|
||||
swipe(params: AndroidDeviceSwipeParams, progress?: Progress): Promise<AndroidDeviceSwipeResult>;
|
||||
info(params: AndroidDeviceInfoParams, progress?: Progress): Promise<AndroidDeviceInfoResult>;
|
||||
screenshot(params?: AndroidDeviceScreenshotParams, progress?: Progress): Promise<AndroidDeviceScreenshotResult>;
|
||||
inputType(params: AndroidDeviceInputTypeParams, progress?: Progress): Promise<AndroidDeviceInputTypeResult>;
|
||||
inputPress(params: AndroidDeviceInputPressParams, progress?: Progress): Promise<AndroidDeviceInputPressResult>;
|
||||
inputTap(params: AndroidDeviceInputTapParams, progress?: Progress): Promise<AndroidDeviceInputTapResult>;
|
||||
inputSwipe(params: AndroidDeviceInputSwipeParams, progress?: Progress): Promise<AndroidDeviceInputSwipeResult>;
|
||||
inputDrag(params: AndroidDeviceInputDragParams, progress?: Progress): Promise<AndroidDeviceInputDragResult>;
|
||||
launchBrowser(params: AndroidDeviceLaunchBrowserParams, progress?: Progress): Promise<AndroidDeviceLaunchBrowserResult>;
|
||||
open(params: AndroidDeviceOpenParams, progress?: Progress): Promise<AndroidDeviceOpenResult>;
|
||||
shell(params: AndroidDeviceShellParams, progress?: Progress): Promise<AndroidDeviceShellResult>;
|
||||
installApk(params: AndroidDeviceInstallApkParams, progress?: Progress): Promise<AndroidDeviceInstallApkResult>;
|
||||
push(params: AndroidDevicePushParams, progress?: Progress): Promise<AndroidDevicePushResult>;
|
||||
connectToWebView(params: AndroidDeviceConnectToWebViewParams, progress?: Progress): Promise<AndroidDeviceConnectToWebViewResult>;
|
||||
close(params?: AndroidDeviceCloseParams, progress?: Progress): Promise<AndroidDeviceCloseResult>;
|
||||
wait(params: AndroidDeviceWaitParams): Promise<AndroidDeviceWaitResult>;
|
||||
fill(params: AndroidDeviceFillParams): Promise<AndroidDeviceFillResult>;
|
||||
tap(params: AndroidDeviceTapParams): Promise<AndroidDeviceTapResult>;
|
||||
drag(params: AndroidDeviceDragParams): Promise<AndroidDeviceDragResult>;
|
||||
fling(params: AndroidDeviceFlingParams): Promise<AndroidDeviceFlingResult>;
|
||||
longTap(params: AndroidDeviceLongTapParams): Promise<AndroidDeviceLongTapResult>;
|
||||
pinchClose(params: AndroidDevicePinchCloseParams): Promise<AndroidDevicePinchCloseResult>;
|
||||
pinchOpen(params: AndroidDevicePinchOpenParams): Promise<AndroidDevicePinchOpenResult>;
|
||||
scroll(params: AndroidDeviceScrollParams): Promise<AndroidDeviceScrollResult>;
|
||||
swipe(params: AndroidDeviceSwipeParams): Promise<AndroidDeviceSwipeResult>;
|
||||
info(params: AndroidDeviceInfoParams): Promise<AndroidDeviceInfoResult>;
|
||||
screenshot(params?: AndroidDeviceScreenshotParams): Promise<AndroidDeviceScreenshotResult>;
|
||||
inputType(params: AndroidDeviceInputTypeParams): Promise<AndroidDeviceInputTypeResult>;
|
||||
inputPress(params: AndroidDeviceInputPressParams): Promise<AndroidDeviceInputPressResult>;
|
||||
inputTap(params: AndroidDeviceInputTapParams): Promise<AndroidDeviceInputTapResult>;
|
||||
inputSwipe(params: AndroidDeviceInputSwipeParams): Promise<AndroidDeviceInputSwipeResult>;
|
||||
inputDrag(params: AndroidDeviceInputDragParams): Promise<AndroidDeviceInputDragResult>;
|
||||
launchBrowser(params: AndroidDeviceLaunchBrowserParams): Promise<AndroidDeviceLaunchBrowserResult>;
|
||||
open(params: AndroidDeviceOpenParams): Promise<AndroidDeviceOpenResult>;
|
||||
shell(params: AndroidDeviceShellParams): Promise<AndroidDeviceShellResult>;
|
||||
installApk(params: AndroidDeviceInstallApkParams): Promise<AndroidDeviceInstallApkResult>;
|
||||
push(params: AndroidDevicePushParams): Promise<AndroidDevicePushResult>;
|
||||
connectToWebView(params: AndroidDeviceConnectToWebViewParams): Promise<AndroidDeviceConnectToWebViewResult>;
|
||||
close(params?: AndroidDeviceCloseParams): Promise<AndroidDeviceCloseResult>;
|
||||
}
|
||||
export type AndroidDeviceCloseEvent = {};
|
||||
export type AndroidDeviceWebViewAddedEvent = {
|
||||
@@ -646,12 +642,12 @@ export interface APIRequestContextEventTarget {
|
||||
}
|
||||
export interface APIRequestContextChannel extends APIRequestContextEventTarget, Channel {
|
||||
_type_APIRequestContext: boolean;
|
||||
fetch(params: APIRequestContextFetchParams, progress?: Progress): Promise<APIRequestContextFetchResult>;
|
||||
fetchResponseBody(params: APIRequestContextFetchResponseBodyParams, progress?: Progress): Promise<APIRequestContextFetchResponseBodyResult>;
|
||||
fetchLog(params: APIRequestContextFetchLogParams, progress?: Progress): Promise<APIRequestContextFetchLogResult>;
|
||||
storageState(params: APIRequestContextStorageStateParams, progress?: Progress): Promise<APIRequestContextStorageStateResult>;
|
||||
disposeAPIResponse(params: APIRequestContextDisposeAPIResponseParams, progress?: Progress): Promise<APIRequestContextDisposeAPIResponseResult>;
|
||||
dispose(params: APIRequestContextDisposeParams, progress?: Progress): Promise<APIRequestContextDisposeResult>;
|
||||
fetch(params: APIRequestContextFetchParams): Promise<APIRequestContextFetchResult>;
|
||||
fetchResponseBody(params: APIRequestContextFetchResponseBodyParams): Promise<APIRequestContextFetchResponseBodyResult>;
|
||||
fetchLog(params: APIRequestContextFetchLogParams): Promise<APIRequestContextFetchLogResult>;
|
||||
storageState(params: APIRequestContextStorageStateParams): Promise<APIRequestContextStorageStateResult>;
|
||||
disposeAPIResponse(params: APIRequestContextDisposeAPIResponseParams): Promise<APIRequestContextDisposeAPIResponseResult>;
|
||||
dispose(params: APIRequestContextDisposeParams): Promise<APIRequestContextDisposeResult>;
|
||||
}
|
||||
export type APIRequestContextFetchParams = {
|
||||
url: string,
|
||||
@@ -750,13 +746,13 @@ export interface ArtifactEventTarget {
|
||||
}
|
||||
export interface ArtifactChannel extends ArtifactEventTarget, Channel {
|
||||
_type_Artifact: boolean;
|
||||
pathAfterFinished(params?: ArtifactPathAfterFinishedParams, progress?: Progress): Promise<ArtifactPathAfterFinishedResult>;
|
||||
saveAs(params: ArtifactSaveAsParams, progress?: Progress): Promise<ArtifactSaveAsResult>;
|
||||
saveAsStream(params?: ArtifactSaveAsStreamParams, progress?: Progress): Promise<ArtifactSaveAsStreamResult>;
|
||||
failure(params?: ArtifactFailureParams, progress?: Progress): Promise<ArtifactFailureResult>;
|
||||
stream(params?: ArtifactStreamParams, progress?: Progress): Promise<ArtifactStreamResult>;
|
||||
cancel(params?: ArtifactCancelParams, progress?: Progress): Promise<ArtifactCancelResult>;
|
||||
delete(params?: ArtifactDeleteParams, progress?: Progress): Promise<ArtifactDeleteResult>;
|
||||
pathAfterFinished(params?: ArtifactPathAfterFinishedParams): Promise<ArtifactPathAfterFinishedResult>;
|
||||
saveAs(params: ArtifactSaveAsParams): Promise<ArtifactSaveAsResult>;
|
||||
saveAsStream(params?: ArtifactSaveAsStreamParams): Promise<ArtifactSaveAsStreamResult>;
|
||||
failure(params?: ArtifactFailureParams): Promise<ArtifactFailureResult>;
|
||||
stream(params?: ArtifactStreamParams): Promise<ArtifactStreamResult>;
|
||||
cancel(params?: ArtifactCancelParams): Promise<ArtifactCancelResult>;
|
||||
delete(params?: ArtifactDeleteParams): Promise<ArtifactDeleteResult>;
|
||||
}
|
||||
export type ArtifactPathAfterFinishedParams = {};
|
||||
export type ArtifactPathAfterFinishedOptions = {};
|
||||
@@ -801,8 +797,8 @@ export interface StreamEventTarget {
|
||||
}
|
||||
export interface StreamChannel extends StreamEventTarget, Channel {
|
||||
_type_Stream: boolean;
|
||||
read(params: StreamReadParams, progress?: Progress): Promise<StreamReadResult>;
|
||||
close(params?: StreamCloseParams, progress?: Progress): Promise<StreamCloseResult>;
|
||||
read(params: StreamReadParams): Promise<StreamReadResult>;
|
||||
close(params?: StreamCloseParams): Promise<StreamCloseResult>;
|
||||
}
|
||||
export type StreamReadParams = {
|
||||
size?: number,
|
||||
@@ -826,8 +822,8 @@ export interface WritableStreamEventTarget {
|
||||
}
|
||||
export interface WritableStreamChannel extends WritableStreamEventTarget, Channel {
|
||||
_type_WritableStream: boolean;
|
||||
write(params: WritableStreamWriteParams, progress?: Progress): Promise<WritableStreamWriteResult>;
|
||||
close(params?: WritableStreamCloseParams, progress?: Progress): Promise<WritableStreamCloseResult>;
|
||||
write(params: WritableStreamWriteParams): Promise<WritableStreamWriteResult>;
|
||||
close(params?: WritableStreamCloseParams): Promise<WritableStreamCloseResult>;
|
||||
}
|
||||
export type WritableStreamWriteParams = {
|
||||
binary: Binary,
|
||||
@@ -855,17 +851,17 @@ export interface BrowserEventTarget {
|
||||
}
|
||||
export interface BrowserChannel extends BrowserEventTarget, Channel {
|
||||
_type_Browser: boolean;
|
||||
startServer(params: BrowserStartServerParams, progress?: Progress): Promise<BrowserStartServerResult>;
|
||||
stopServer(params?: BrowserStopServerParams, progress?: Progress): Promise<BrowserStopServerResult>;
|
||||
close(params: BrowserCloseParams, progress?: Progress): Promise<BrowserCloseResult>;
|
||||
killForTests(params?: BrowserKillForTestsParams, progress?: Progress): Promise<BrowserKillForTestsResult>;
|
||||
defaultUserAgentForTest(params?: BrowserDefaultUserAgentForTestParams, progress?: Progress): Promise<BrowserDefaultUserAgentForTestResult>;
|
||||
newContext(params: BrowserNewContextParams, progress?: Progress): Promise<BrowserNewContextResult>;
|
||||
newContextForReuse(params: BrowserNewContextForReuseParams, progress?: Progress): Promise<BrowserNewContextForReuseResult>;
|
||||
disconnectFromReusedContext(params: BrowserDisconnectFromReusedContextParams, progress?: Progress): Promise<BrowserDisconnectFromReusedContextResult>;
|
||||
newBrowserCDPSession(params?: BrowserNewBrowserCDPSessionParams, progress?: Progress): Promise<BrowserNewBrowserCDPSessionResult>;
|
||||
startTracing(params: BrowserStartTracingParams, progress?: Progress): Promise<BrowserStartTracingResult>;
|
||||
stopTracing(params?: BrowserStopTracingParams, progress?: Progress): Promise<BrowserStopTracingResult>;
|
||||
startServer(params: BrowserStartServerParams): Promise<BrowserStartServerResult>;
|
||||
stopServer(params?: BrowserStopServerParams): Promise<BrowserStopServerResult>;
|
||||
close(params: BrowserCloseParams): Promise<BrowserCloseResult>;
|
||||
killForTests(params?: BrowserKillForTestsParams): Promise<BrowserKillForTestsResult>;
|
||||
defaultUserAgentForTest(params?: BrowserDefaultUserAgentForTestParams): Promise<BrowserDefaultUserAgentForTestResult>;
|
||||
newContext(params: BrowserNewContextParams): Promise<BrowserNewContextResult>;
|
||||
newContextForReuse(params: BrowserNewContextForReuseParams): Promise<BrowserNewContextForReuseResult>;
|
||||
disconnectFromReusedContext(params: BrowserDisconnectFromReusedContextParams): Promise<BrowserDisconnectFromReusedContextResult>;
|
||||
newBrowserCDPSession(params?: BrowserNewBrowserCDPSessionParams): Promise<BrowserNewBrowserCDPSessionResult>;
|
||||
startTracing(params: BrowserStartTracingParams): Promise<BrowserStartTracingResult>;
|
||||
stopTracing(params?: BrowserStopTracingParams): Promise<BrowserStopTracingResult>;
|
||||
}
|
||||
export type BrowserContextEvent = {
|
||||
context: BrowserContextChannel,
|
||||
@@ -1329,43 +1325,43 @@ export interface BrowserContextEventTarget {
|
||||
}
|
||||
export interface BrowserContextChannel extends BrowserContextEventTarget, Channel {
|
||||
_type_BrowserContext: boolean;
|
||||
addCookies(params: BrowserContextAddCookiesParams, progress?: Progress): Promise<BrowserContextAddCookiesResult>;
|
||||
addInitScript(params: BrowserContextAddInitScriptParams, progress?: Progress): Promise<BrowserContextAddInitScriptResult>;
|
||||
clearCookies(params: BrowserContextClearCookiesParams, progress?: Progress): Promise<BrowserContextClearCookiesResult>;
|
||||
clearPermissions(params?: BrowserContextClearPermissionsParams, progress?: Progress): Promise<BrowserContextClearPermissionsResult>;
|
||||
close(params: BrowserContextCloseParams, progress?: Progress): Promise<BrowserContextCloseResult>;
|
||||
cookies(params: BrowserContextCookiesParams, progress?: Progress): Promise<BrowserContextCookiesResult>;
|
||||
exposeBinding(params: BrowserContextExposeBindingParams, progress?: Progress): Promise<BrowserContextExposeBindingResult>;
|
||||
grantPermissions(params: BrowserContextGrantPermissionsParams, progress?: Progress): Promise<BrowserContextGrantPermissionsResult>;
|
||||
newPage(params?: BrowserContextNewPageParams, progress?: Progress): Promise<BrowserContextNewPageResult>;
|
||||
registerSelectorEngine(params: BrowserContextRegisterSelectorEngineParams, progress?: Progress): Promise<BrowserContextRegisterSelectorEngineResult>;
|
||||
setTestIdAttributeName(params: BrowserContextSetTestIdAttributeNameParams, progress?: Progress): Promise<BrowserContextSetTestIdAttributeNameResult>;
|
||||
setExtraHTTPHeaders(params: BrowserContextSetExtraHTTPHeadersParams, progress?: Progress): Promise<BrowserContextSetExtraHTTPHeadersResult>;
|
||||
setGeolocation(params: BrowserContextSetGeolocationParams, progress?: Progress): Promise<BrowserContextSetGeolocationResult>;
|
||||
setHTTPCredentials(params: BrowserContextSetHTTPCredentialsParams, progress?: Progress): Promise<BrowserContextSetHTTPCredentialsResult>;
|
||||
setNetworkInterceptionPatterns(params: BrowserContextSetNetworkInterceptionPatternsParams, progress?: Progress): Promise<BrowserContextSetNetworkInterceptionPatternsResult>;
|
||||
setWebSocketInterceptionPatterns(params: BrowserContextSetWebSocketInterceptionPatternsParams, progress?: Progress): Promise<BrowserContextSetWebSocketInterceptionPatternsResult>;
|
||||
setOffline(params: BrowserContextSetOfflineParams, progress?: Progress): Promise<BrowserContextSetOfflineResult>;
|
||||
storageState(params: BrowserContextStorageStateParams, progress?: Progress): Promise<BrowserContextStorageStateResult>;
|
||||
setStorageState(params: BrowserContextSetStorageStateParams, progress?: Progress): Promise<BrowserContextSetStorageStateResult>;
|
||||
pause(params?: BrowserContextPauseParams, progress?: Progress): Promise<BrowserContextPauseResult>;
|
||||
enableRecorder(params: BrowserContextEnableRecorderParams, progress?: Progress): Promise<BrowserContextEnableRecorderResult>;
|
||||
disableRecorder(params?: BrowserContextDisableRecorderParams, progress?: Progress): Promise<BrowserContextDisableRecorderResult>;
|
||||
exposeConsoleApi(params?: BrowserContextExposeConsoleApiParams, progress?: Progress): Promise<BrowserContextExposeConsoleApiResult>;
|
||||
newCDPSession(params: BrowserContextNewCDPSessionParams, progress?: Progress): Promise<BrowserContextNewCDPSessionResult>;
|
||||
createTempFiles(params: BrowserContextCreateTempFilesParams, progress?: Progress): Promise<BrowserContextCreateTempFilesResult>;
|
||||
updateSubscription(params: BrowserContextUpdateSubscriptionParams, progress?: Progress): Promise<BrowserContextUpdateSubscriptionResult>;
|
||||
clockFastForward(params: BrowserContextClockFastForwardParams, progress?: Progress): Promise<BrowserContextClockFastForwardResult>;
|
||||
clockInstall(params: BrowserContextClockInstallParams, progress?: Progress): Promise<BrowserContextClockInstallResult>;
|
||||
clockPauseAt(params: BrowserContextClockPauseAtParams, progress?: Progress): Promise<BrowserContextClockPauseAtResult>;
|
||||
clockResume(params?: BrowserContextClockResumeParams, progress?: Progress): Promise<BrowserContextClockResumeResult>;
|
||||
clockRunFor(params: BrowserContextClockRunForParams, progress?: Progress): Promise<BrowserContextClockRunForResult>;
|
||||
clockSetFixedTime(params: BrowserContextClockSetFixedTimeParams, progress?: Progress): Promise<BrowserContextClockSetFixedTimeResult>;
|
||||
clockSetSystemTime(params: BrowserContextClockSetSystemTimeParams, progress?: Progress): Promise<BrowserContextClockSetSystemTimeResult>;
|
||||
credentialsInstall(params?: BrowserContextCredentialsInstallParams, progress?: Progress): Promise<BrowserContextCredentialsInstallResult>;
|
||||
credentialsCreate(params: BrowserContextCredentialsCreateParams, progress?: Progress): Promise<BrowserContextCredentialsCreateResult>;
|
||||
credentialsGet(params: BrowserContextCredentialsGetParams, progress?: Progress): Promise<BrowserContextCredentialsGetResult>;
|
||||
credentialsDelete(params: BrowserContextCredentialsDeleteParams, progress?: Progress): Promise<BrowserContextCredentialsDeleteResult>;
|
||||
addCookies(params: BrowserContextAddCookiesParams): Promise<BrowserContextAddCookiesResult>;
|
||||
addInitScript(params: BrowserContextAddInitScriptParams): Promise<BrowserContextAddInitScriptResult>;
|
||||
clearCookies(params: BrowserContextClearCookiesParams): Promise<BrowserContextClearCookiesResult>;
|
||||
clearPermissions(params?: BrowserContextClearPermissionsParams): Promise<BrowserContextClearPermissionsResult>;
|
||||
close(params: BrowserContextCloseParams): Promise<BrowserContextCloseResult>;
|
||||
cookies(params: BrowserContextCookiesParams): Promise<BrowserContextCookiesResult>;
|
||||
exposeBinding(params: BrowserContextExposeBindingParams): Promise<BrowserContextExposeBindingResult>;
|
||||
grantPermissions(params: BrowserContextGrantPermissionsParams): Promise<BrowserContextGrantPermissionsResult>;
|
||||
newPage(params?: BrowserContextNewPageParams): Promise<BrowserContextNewPageResult>;
|
||||
registerSelectorEngine(params: BrowserContextRegisterSelectorEngineParams): Promise<BrowserContextRegisterSelectorEngineResult>;
|
||||
setTestIdAttributeName(params: BrowserContextSetTestIdAttributeNameParams): Promise<BrowserContextSetTestIdAttributeNameResult>;
|
||||
setExtraHTTPHeaders(params: BrowserContextSetExtraHTTPHeadersParams): Promise<BrowserContextSetExtraHTTPHeadersResult>;
|
||||
setGeolocation(params: BrowserContextSetGeolocationParams): Promise<BrowserContextSetGeolocationResult>;
|
||||
setHTTPCredentials(params: BrowserContextSetHTTPCredentialsParams): Promise<BrowserContextSetHTTPCredentialsResult>;
|
||||
setNetworkInterceptionPatterns(params: BrowserContextSetNetworkInterceptionPatternsParams): Promise<BrowserContextSetNetworkInterceptionPatternsResult>;
|
||||
setWebSocketInterceptionPatterns(params: BrowserContextSetWebSocketInterceptionPatternsParams): Promise<BrowserContextSetWebSocketInterceptionPatternsResult>;
|
||||
setOffline(params: BrowserContextSetOfflineParams): Promise<BrowserContextSetOfflineResult>;
|
||||
storageState(params: BrowserContextStorageStateParams): Promise<BrowserContextStorageStateResult>;
|
||||
setStorageState(params: BrowserContextSetStorageStateParams): Promise<BrowserContextSetStorageStateResult>;
|
||||
pause(params?: BrowserContextPauseParams): Promise<BrowserContextPauseResult>;
|
||||
enableRecorder(params: BrowserContextEnableRecorderParams): Promise<BrowserContextEnableRecorderResult>;
|
||||
disableRecorder(params?: BrowserContextDisableRecorderParams): Promise<BrowserContextDisableRecorderResult>;
|
||||
exposeConsoleApi(params?: BrowserContextExposeConsoleApiParams): Promise<BrowserContextExposeConsoleApiResult>;
|
||||
newCDPSession(params: BrowserContextNewCDPSessionParams): Promise<BrowserContextNewCDPSessionResult>;
|
||||
createTempFiles(params: BrowserContextCreateTempFilesParams): Promise<BrowserContextCreateTempFilesResult>;
|
||||
updateSubscription(params: BrowserContextUpdateSubscriptionParams): Promise<BrowserContextUpdateSubscriptionResult>;
|
||||
clockFastForward(params: BrowserContextClockFastForwardParams): Promise<BrowserContextClockFastForwardResult>;
|
||||
clockInstall(params: BrowserContextClockInstallParams): Promise<BrowserContextClockInstallResult>;
|
||||
clockPauseAt(params: BrowserContextClockPauseAtParams): Promise<BrowserContextClockPauseAtResult>;
|
||||
clockResume(params?: BrowserContextClockResumeParams): Promise<BrowserContextClockResumeResult>;
|
||||
clockRunFor(params: BrowserContextClockRunForParams): Promise<BrowserContextClockRunForResult>;
|
||||
clockSetFixedTime(params: BrowserContextClockSetFixedTimeParams): Promise<BrowserContextClockSetFixedTimeResult>;
|
||||
clockSetSystemTime(params: BrowserContextClockSetSystemTimeParams): Promise<BrowserContextClockSetSystemTimeResult>;
|
||||
credentialsInstall(params?: BrowserContextCredentialsInstallParams): Promise<BrowserContextCredentialsInstallResult>;
|
||||
credentialsCreate(params: BrowserContextCredentialsCreateParams): Promise<BrowserContextCredentialsCreateResult>;
|
||||
credentialsGet(params: BrowserContextCredentialsGetParams): Promise<BrowserContextCredentialsGetResult>;
|
||||
credentialsDelete(params: BrowserContextCredentialsDeleteParams): Promise<BrowserContextCredentialsDeleteResult>;
|
||||
}
|
||||
export type BrowserContextBindingCallEvent = {
|
||||
binding: BindingCallChannel,
|
||||
@@ -1811,10 +1807,10 @@ export interface BrowserTypeEventTarget {
|
||||
}
|
||||
export interface BrowserTypeChannel extends BrowserTypeEventTarget, Channel {
|
||||
_type_BrowserType: boolean;
|
||||
launch(params: BrowserTypeLaunchParams, progress?: Progress): Promise<BrowserTypeLaunchResult>;
|
||||
launchPersistentContext(params: BrowserTypeLaunchPersistentContextParams, progress?: Progress): Promise<BrowserTypeLaunchPersistentContextResult>;
|
||||
connectOverCDP(params: BrowserTypeConnectOverCDPParams, progress?: Progress): Promise<BrowserTypeConnectOverCDPResult>;
|
||||
connectToWorker(params: BrowserTypeConnectToWorkerParams, progress?: Progress): Promise<BrowserTypeConnectToWorkerResult>;
|
||||
launch(params: BrowserTypeLaunchParams): Promise<BrowserTypeLaunchResult>;
|
||||
launchPersistentContext(params: BrowserTypeLaunchPersistentContextParams): Promise<BrowserTypeLaunchPersistentContextResult>;
|
||||
connectOverCDP(params: BrowserTypeConnectOverCDPParams): Promise<BrowserTypeConnectOverCDPResult>;
|
||||
connectToWorker(params: BrowserTypeConnectToWorkerParams): Promise<BrowserTypeConnectToWorkerResult>;
|
||||
}
|
||||
export type BrowserTypeLaunchParams = {
|
||||
channel?: string,
|
||||
@@ -2110,7 +2106,7 @@ export interface DisposableEventTarget {
|
||||
}
|
||||
export interface DisposableChannel extends DisposableEventTarget, Channel {
|
||||
_type_Disposable: boolean;
|
||||
dispose(params?: DisposableDisposeParams, progress?: Progress): Promise<DisposableDisposeResult>;
|
||||
dispose(params?: DisposableDisposeParams): Promise<DisposableDisposeResult>;
|
||||
}
|
||||
export type DisposableDisposeParams = {};
|
||||
export type DisposableDisposeOptions = {};
|
||||
@@ -2133,7 +2129,7 @@ export interface ElectronEventTarget {
|
||||
}
|
||||
export interface ElectronChannel extends ElectronEventTarget, Channel {
|
||||
_type_Electron: boolean;
|
||||
launch(params: ElectronLaunchParams, progress?: Progress): Promise<ElectronLaunchResult>;
|
||||
launch(params: ElectronLaunchParams): Promise<ElectronLaunchResult>;
|
||||
}
|
||||
export type ElectronLaunchParams = {
|
||||
executablePath?: string,
|
||||
@@ -2239,10 +2235,10 @@ export interface ElectronApplicationEventTarget {
|
||||
}
|
||||
export interface ElectronApplicationChannel extends ElectronApplicationEventTarget, Channel {
|
||||
_type_ElectronApplication: boolean;
|
||||
browserWindow(params: ElectronApplicationBrowserWindowParams, progress?: Progress): Promise<ElectronApplicationBrowserWindowResult>;
|
||||
evaluateExpression(params: ElectronApplicationEvaluateExpressionParams, progress?: Progress): Promise<ElectronApplicationEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: ElectronApplicationEvaluateExpressionHandleParams, progress?: Progress): Promise<ElectronApplicationEvaluateExpressionHandleResult>;
|
||||
updateSubscription(params: ElectronApplicationUpdateSubscriptionParams, progress?: Progress): Promise<ElectronApplicationUpdateSubscriptionResult>;
|
||||
browserWindow(params: ElectronApplicationBrowserWindowParams): Promise<ElectronApplicationBrowserWindowResult>;
|
||||
evaluateExpression(params: ElectronApplicationEvaluateExpressionParams): Promise<ElectronApplicationEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: ElectronApplicationEvaluateExpressionHandleParams): Promise<ElectronApplicationEvaluateExpressionHandleResult>;
|
||||
updateSubscription(params: ElectronApplicationUpdateSubscriptionParams): Promise<ElectronApplicationUpdateSubscriptionResult>;
|
||||
}
|
||||
export type ElectronApplicationCloseEvent = {};
|
||||
export type ElectronApplicationConsoleEvent = {
|
||||
@@ -2314,55 +2310,55 @@ export interface FrameEventTarget {
|
||||
}
|
||||
export interface FrameChannel extends FrameEventTarget, Channel {
|
||||
_type_Frame: boolean;
|
||||
evalOnSelector(params: FrameEvalOnSelectorParams, progress?: Progress): Promise<FrameEvalOnSelectorResult>;
|
||||
evalOnSelectorAll(params: FrameEvalOnSelectorAllParams, progress?: Progress): Promise<FrameEvalOnSelectorAllResult>;
|
||||
addScriptTag(params: FrameAddScriptTagParams, progress?: Progress): Promise<FrameAddScriptTagResult>;
|
||||
addStyleTag(params: FrameAddStyleTagParams, progress?: Progress): Promise<FrameAddStyleTagResult>;
|
||||
ariaSnapshot(params: FrameAriaSnapshotParams, progress?: Progress): Promise<FrameAriaSnapshotResult>;
|
||||
blur(params: FrameBlurParams, progress?: Progress): Promise<FrameBlurResult>;
|
||||
check(params: FrameCheckParams, progress?: Progress): Promise<FrameCheckResult>;
|
||||
click(params: FrameClickParams, progress?: Progress): Promise<FrameClickResult>;
|
||||
content(params?: FrameContentParams, progress?: Progress): Promise<FrameContentResult>;
|
||||
dragAndDrop(params: FrameDragAndDropParams, progress?: Progress): Promise<FrameDragAndDropResult>;
|
||||
drop(params: FrameDropParams, progress?: Progress): Promise<FrameDropResult>;
|
||||
dblclick(params: FrameDblclickParams, progress?: Progress): Promise<FrameDblclickResult>;
|
||||
dispatchEvent(params: FrameDispatchEventParams, progress?: Progress): Promise<FrameDispatchEventResult>;
|
||||
evaluateExpression(params: FrameEvaluateExpressionParams, progress?: Progress): Promise<FrameEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: FrameEvaluateExpressionHandleParams, progress?: Progress): Promise<FrameEvaluateExpressionHandleResult>;
|
||||
fill(params: FrameFillParams, progress?: Progress): Promise<FrameFillResult>;
|
||||
focus(params: FrameFocusParams, progress?: Progress): Promise<FrameFocusResult>;
|
||||
frameElement(params?: FrameFrameElementParams, progress?: Progress): Promise<FrameFrameElementResult>;
|
||||
resolveSelector(params: FrameResolveSelectorParams, progress?: Progress): Promise<FrameResolveSelectorResult>;
|
||||
highlight(params: FrameHighlightParams, progress?: Progress): Promise<FrameHighlightResult>;
|
||||
hideHighlight(params: FrameHideHighlightParams, progress?: Progress): Promise<FrameHideHighlightResult>;
|
||||
getAttribute(params: FrameGetAttributeParams, progress?: Progress): Promise<FrameGetAttributeResult>;
|
||||
goto(params: FrameGotoParams, progress?: Progress): Promise<FrameGotoResult>;
|
||||
hover(params: FrameHoverParams, progress?: Progress): Promise<FrameHoverResult>;
|
||||
innerHTML(params: FrameInnerHTMLParams, progress?: Progress): Promise<FrameInnerHTMLResult>;
|
||||
innerText(params: FrameInnerTextParams, progress?: Progress): Promise<FrameInnerTextResult>;
|
||||
inputValue(params: FrameInputValueParams, progress?: Progress): Promise<FrameInputValueResult>;
|
||||
isChecked(params: FrameIsCheckedParams, progress?: Progress): Promise<FrameIsCheckedResult>;
|
||||
isDisabled(params: FrameIsDisabledParams, progress?: Progress): Promise<FrameIsDisabledResult>;
|
||||
isEnabled(params: FrameIsEnabledParams, progress?: Progress): Promise<FrameIsEnabledResult>;
|
||||
isHidden(params: FrameIsHiddenParams, progress?: Progress): Promise<FrameIsHiddenResult>;
|
||||
isVisible(params: FrameIsVisibleParams, progress?: Progress): Promise<FrameIsVisibleResult>;
|
||||
isEditable(params: FrameIsEditableParams, progress?: Progress): Promise<FrameIsEditableResult>;
|
||||
press(params: FramePressParams, progress?: Progress): Promise<FramePressResult>;
|
||||
querySelector(params: FrameQuerySelectorParams, progress?: Progress): Promise<FrameQuerySelectorResult>;
|
||||
querySelectorAll(params: FrameQuerySelectorAllParams, progress?: Progress): Promise<FrameQuerySelectorAllResult>;
|
||||
queryCount(params: FrameQueryCountParams, progress?: Progress): Promise<FrameQueryCountResult>;
|
||||
selectOption(params: FrameSelectOptionParams, progress?: Progress): Promise<FrameSelectOptionResult>;
|
||||
setContent(params: FrameSetContentParams, progress?: Progress): Promise<FrameSetContentResult>;
|
||||
setInputFiles(params: FrameSetInputFilesParams, progress?: Progress): Promise<FrameSetInputFilesResult>;
|
||||
tap(params: FrameTapParams, progress?: Progress): Promise<FrameTapResult>;
|
||||
textContent(params: FrameTextContentParams, progress?: Progress): Promise<FrameTextContentResult>;
|
||||
title(params?: FrameTitleParams, progress?: Progress): Promise<FrameTitleResult>;
|
||||
type(params: FrameTypeParams, progress?: Progress): Promise<FrameTypeResult>;
|
||||
uncheck(params: FrameUncheckParams, progress?: Progress): Promise<FrameUncheckResult>;
|
||||
waitForTimeout(params: FrameWaitForTimeoutParams, progress?: Progress): Promise<FrameWaitForTimeoutResult>;
|
||||
waitForFunction(params: FrameWaitForFunctionParams, progress?: Progress): Promise<FrameWaitForFunctionResult>;
|
||||
waitForSelector(params: FrameWaitForSelectorParams, progress?: Progress): Promise<FrameWaitForSelectorResult>;
|
||||
expect(params: FrameExpectParams, progress?: Progress): Promise<FrameExpectResult>;
|
||||
evalOnSelector(params: FrameEvalOnSelectorParams): Promise<FrameEvalOnSelectorResult>;
|
||||
evalOnSelectorAll(params: FrameEvalOnSelectorAllParams): Promise<FrameEvalOnSelectorAllResult>;
|
||||
addScriptTag(params: FrameAddScriptTagParams): Promise<FrameAddScriptTagResult>;
|
||||
addStyleTag(params: FrameAddStyleTagParams): Promise<FrameAddStyleTagResult>;
|
||||
ariaSnapshot(params: FrameAriaSnapshotParams): Promise<FrameAriaSnapshotResult>;
|
||||
blur(params: FrameBlurParams): Promise<FrameBlurResult>;
|
||||
check(params: FrameCheckParams): Promise<FrameCheckResult>;
|
||||
click(params: FrameClickParams): Promise<FrameClickResult>;
|
||||
content(params?: FrameContentParams): Promise<FrameContentResult>;
|
||||
dragAndDrop(params: FrameDragAndDropParams): Promise<FrameDragAndDropResult>;
|
||||
drop(params: FrameDropParams): Promise<FrameDropResult>;
|
||||
dblclick(params: FrameDblclickParams): Promise<FrameDblclickResult>;
|
||||
dispatchEvent(params: FrameDispatchEventParams): Promise<FrameDispatchEventResult>;
|
||||
evaluateExpression(params: FrameEvaluateExpressionParams): Promise<FrameEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: FrameEvaluateExpressionHandleParams): Promise<FrameEvaluateExpressionHandleResult>;
|
||||
fill(params: FrameFillParams): Promise<FrameFillResult>;
|
||||
focus(params: FrameFocusParams): Promise<FrameFocusResult>;
|
||||
frameElement(params?: FrameFrameElementParams): Promise<FrameFrameElementResult>;
|
||||
resolveSelector(params: FrameResolveSelectorParams): Promise<FrameResolveSelectorResult>;
|
||||
highlight(params: FrameHighlightParams): Promise<FrameHighlightResult>;
|
||||
hideHighlight(params: FrameHideHighlightParams): Promise<FrameHideHighlightResult>;
|
||||
getAttribute(params: FrameGetAttributeParams): Promise<FrameGetAttributeResult>;
|
||||
goto(params: FrameGotoParams): Promise<FrameGotoResult>;
|
||||
hover(params: FrameHoverParams): Promise<FrameHoverResult>;
|
||||
innerHTML(params: FrameInnerHTMLParams): Promise<FrameInnerHTMLResult>;
|
||||
innerText(params: FrameInnerTextParams): Promise<FrameInnerTextResult>;
|
||||
inputValue(params: FrameInputValueParams): Promise<FrameInputValueResult>;
|
||||
isChecked(params: FrameIsCheckedParams): Promise<FrameIsCheckedResult>;
|
||||
isDisabled(params: FrameIsDisabledParams): Promise<FrameIsDisabledResult>;
|
||||
isEnabled(params: FrameIsEnabledParams): Promise<FrameIsEnabledResult>;
|
||||
isHidden(params: FrameIsHiddenParams): Promise<FrameIsHiddenResult>;
|
||||
isVisible(params: FrameIsVisibleParams): Promise<FrameIsVisibleResult>;
|
||||
isEditable(params: FrameIsEditableParams): Promise<FrameIsEditableResult>;
|
||||
press(params: FramePressParams): Promise<FramePressResult>;
|
||||
querySelector(params: FrameQuerySelectorParams): Promise<FrameQuerySelectorResult>;
|
||||
querySelectorAll(params: FrameQuerySelectorAllParams): Promise<FrameQuerySelectorAllResult>;
|
||||
queryCount(params: FrameQueryCountParams): Promise<FrameQueryCountResult>;
|
||||
selectOption(params: FrameSelectOptionParams): Promise<FrameSelectOptionResult>;
|
||||
setContent(params: FrameSetContentParams): Promise<FrameSetContentResult>;
|
||||
setInputFiles(params: FrameSetInputFilesParams): Promise<FrameSetInputFilesResult>;
|
||||
tap(params: FrameTapParams): Promise<FrameTapResult>;
|
||||
textContent(params: FrameTextContentParams): Promise<FrameTextContentResult>;
|
||||
title(params?: FrameTitleParams): Promise<FrameTitleResult>;
|
||||
type(params: FrameTypeParams): Promise<FrameTypeResult>;
|
||||
uncheck(params: FrameUncheckParams): Promise<FrameUncheckResult>;
|
||||
waitForTimeout(params: FrameWaitForTimeoutParams): Promise<FrameWaitForTimeoutResult>;
|
||||
waitForFunction(params: FrameWaitForFunctionParams): Promise<FrameWaitForFunctionResult>;
|
||||
waitForSelector(params: FrameWaitForSelectorParams): Promise<FrameWaitForSelectorResult>;
|
||||
expect(params: FrameExpectParams): Promise<FrameExpectResult>;
|
||||
}
|
||||
export type FrameLoadstateEvent = {
|
||||
add?: LifecycleEvent,
|
||||
@@ -3044,12 +3040,12 @@ export interface JSHandleEventTarget {
|
||||
}
|
||||
export interface JSHandleChannel extends JSHandleEventTarget, Channel {
|
||||
_type_JSHandle: boolean;
|
||||
dispose(params?: JSHandleDisposeParams, progress?: Progress): Promise<JSHandleDisposeResult>;
|
||||
evaluateExpression(params: JSHandleEvaluateExpressionParams, progress?: Progress): Promise<JSHandleEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: JSHandleEvaluateExpressionHandleParams, progress?: Progress): Promise<JSHandleEvaluateExpressionHandleResult>;
|
||||
getPropertyList(params?: JSHandleGetPropertyListParams, progress?: Progress): Promise<JSHandleGetPropertyListResult>;
|
||||
getProperty(params: JSHandleGetPropertyParams, progress?: Progress): Promise<JSHandleGetPropertyResult>;
|
||||
jsonValue(params?: JSHandleJsonValueParams, progress?: Progress): Promise<JSHandleJsonValueResult>;
|
||||
dispose(params?: JSHandleDisposeParams): Promise<JSHandleDisposeResult>;
|
||||
evaluateExpression(params: JSHandleEvaluateExpressionParams): Promise<JSHandleEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: JSHandleEvaluateExpressionHandleParams): Promise<JSHandleEvaluateExpressionHandleResult>;
|
||||
getPropertyList(params?: JSHandleGetPropertyListParams): Promise<JSHandleGetPropertyListResult>;
|
||||
getProperty(params: JSHandleGetPropertyParams): Promise<JSHandleGetPropertyResult>;
|
||||
jsonValue(params?: JSHandleJsonValueParams): Promise<JSHandleJsonValueResult>;
|
||||
}
|
||||
export type JSHandlePreviewUpdatedEvent = {
|
||||
preview: string,
|
||||
@@ -3112,42 +3108,42 @@ export interface ElementHandleEventTarget {
|
||||
}
|
||||
export interface ElementHandleChannel extends ElementHandleEventTarget, JSHandleChannel {
|
||||
_type_ElementHandle: boolean;
|
||||
evalOnSelector(params: ElementHandleEvalOnSelectorParams, progress?: Progress): Promise<ElementHandleEvalOnSelectorResult>;
|
||||
evalOnSelectorAll(params: ElementHandleEvalOnSelectorAllParams, progress?: Progress): Promise<ElementHandleEvalOnSelectorAllResult>;
|
||||
boundingBox(params?: ElementHandleBoundingBoxParams, progress?: Progress): Promise<ElementHandleBoundingBoxResult>;
|
||||
check(params: ElementHandleCheckParams, progress?: Progress): Promise<ElementHandleCheckResult>;
|
||||
click(params: ElementHandleClickParams, progress?: Progress): Promise<ElementHandleClickResult>;
|
||||
contentFrame(params?: ElementHandleContentFrameParams, progress?: Progress): Promise<ElementHandleContentFrameResult>;
|
||||
dblclick(params: ElementHandleDblclickParams, progress?: Progress): Promise<ElementHandleDblclickResult>;
|
||||
dispatchEvent(params: ElementHandleDispatchEventParams, progress?: Progress): Promise<ElementHandleDispatchEventResult>;
|
||||
fill(params: ElementHandleFillParams, progress?: Progress): Promise<ElementHandleFillResult>;
|
||||
focus(params?: ElementHandleFocusParams, progress?: Progress): Promise<ElementHandleFocusResult>;
|
||||
getAttribute(params: ElementHandleGetAttributeParams, progress?: Progress): Promise<ElementHandleGetAttributeResult>;
|
||||
hover(params: ElementHandleHoverParams, progress?: Progress): Promise<ElementHandleHoverResult>;
|
||||
innerHTML(params?: ElementHandleInnerHTMLParams, progress?: Progress): Promise<ElementHandleInnerHTMLResult>;
|
||||
innerText(params?: ElementHandleInnerTextParams, progress?: Progress): Promise<ElementHandleInnerTextResult>;
|
||||
inputValue(params?: ElementHandleInputValueParams, progress?: Progress): Promise<ElementHandleInputValueResult>;
|
||||
isChecked(params?: ElementHandleIsCheckedParams, progress?: Progress): Promise<ElementHandleIsCheckedResult>;
|
||||
isDisabled(params?: ElementHandleIsDisabledParams, progress?: Progress): Promise<ElementHandleIsDisabledResult>;
|
||||
isEditable(params?: ElementHandleIsEditableParams, progress?: Progress): Promise<ElementHandleIsEditableResult>;
|
||||
isEnabled(params?: ElementHandleIsEnabledParams, progress?: Progress): Promise<ElementHandleIsEnabledResult>;
|
||||
isHidden(params?: ElementHandleIsHiddenParams, progress?: Progress): Promise<ElementHandleIsHiddenResult>;
|
||||
isVisible(params?: ElementHandleIsVisibleParams, progress?: Progress): Promise<ElementHandleIsVisibleResult>;
|
||||
ownerFrame(params?: ElementHandleOwnerFrameParams, progress?: Progress): Promise<ElementHandleOwnerFrameResult>;
|
||||
press(params: ElementHandlePressParams, progress?: Progress): Promise<ElementHandlePressResult>;
|
||||
querySelector(params: ElementHandleQuerySelectorParams, progress?: Progress): Promise<ElementHandleQuerySelectorResult>;
|
||||
querySelectorAll(params: ElementHandleQuerySelectorAllParams, progress?: Progress): Promise<ElementHandleQuerySelectorAllResult>;
|
||||
screenshot(params: ElementHandleScreenshotParams, progress?: Progress): Promise<ElementHandleScreenshotResult>;
|
||||
scrollIntoViewIfNeeded(params: ElementHandleScrollIntoViewIfNeededParams, progress?: Progress): Promise<ElementHandleScrollIntoViewIfNeededResult>;
|
||||
selectOption(params: ElementHandleSelectOptionParams, progress?: Progress): Promise<ElementHandleSelectOptionResult>;
|
||||
selectText(params: ElementHandleSelectTextParams, progress?: Progress): Promise<ElementHandleSelectTextResult>;
|
||||
setInputFiles(params: ElementHandleSetInputFilesParams, progress?: Progress): Promise<ElementHandleSetInputFilesResult>;
|
||||
tap(params: ElementHandleTapParams, progress?: Progress): Promise<ElementHandleTapResult>;
|
||||
textContent(params?: ElementHandleTextContentParams, progress?: Progress): Promise<ElementHandleTextContentResult>;
|
||||
type(params: ElementHandleTypeParams, progress?: Progress): Promise<ElementHandleTypeResult>;
|
||||
uncheck(params: ElementHandleUncheckParams, progress?: Progress): Promise<ElementHandleUncheckResult>;
|
||||
waitForElementState(params: ElementHandleWaitForElementStateParams, progress?: Progress): Promise<ElementHandleWaitForElementStateResult>;
|
||||
waitForSelector(params: ElementHandleWaitForSelectorParams, progress?: Progress): Promise<ElementHandleWaitForSelectorResult>;
|
||||
evalOnSelector(params: ElementHandleEvalOnSelectorParams): Promise<ElementHandleEvalOnSelectorResult>;
|
||||
evalOnSelectorAll(params: ElementHandleEvalOnSelectorAllParams): Promise<ElementHandleEvalOnSelectorAllResult>;
|
||||
boundingBox(params?: ElementHandleBoundingBoxParams): Promise<ElementHandleBoundingBoxResult>;
|
||||
check(params: ElementHandleCheckParams): Promise<ElementHandleCheckResult>;
|
||||
click(params: ElementHandleClickParams): Promise<ElementHandleClickResult>;
|
||||
contentFrame(params?: ElementHandleContentFrameParams): Promise<ElementHandleContentFrameResult>;
|
||||
dblclick(params: ElementHandleDblclickParams): Promise<ElementHandleDblclickResult>;
|
||||
dispatchEvent(params: ElementHandleDispatchEventParams): Promise<ElementHandleDispatchEventResult>;
|
||||
fill(params: ElementHandleFillParams): Promise<ElementHandleFillResult>;
|
||||
focus(params?: ElementHandleFocusParams): Promise<ElementHandleFocusResult>;
|
||||
getAttribute(params: ElementHandleGetAttributeParams): Promise<ElementHandleGetAttributeResult>;
|
||||
hover(params: ElementHandleHoverParams): Promise<ElementHandleHoverResult>;
|
||||
innerHTML(params?: ElementHandleInnerHTMLParams): Promise<ElementHandleInnerHTMLResult>;
|
||||
innerText(params?: ElementHandleInnerTextParams): Promise<ElementHandleInnerTextResult>;
|
||||
inputValue(params?: ElementHandleInputValueParams): Promise<ElementHandleInputValueResult>;
|
||||
isChecked(params?: ElementHandleIsCheckedParams): Promise<ElementHandleIsCheckedResult>;
|
||||
isDisabled(params?: ElementHandleIsDisabledParams): Promise<ElementHandleIsDisabledResult>;
|
||||
isEditable(params?: ElementHandleIsEditableParams): Promise<ElementHandleIsEditableResult>;
|
||||
isEnabled(params?: ElementHandleIsEnabledParams): Promise<ElementHandleIsEnabledResult>;
|
||||
isHidden(params?: ElementHandleIsHiddenParams): Promise<ElementHandleIsHiddenResult>;
|
||||
isVisible(params?: ElementHandleIsVisibleParams): Promise<ElementHandleIsVisibleResult>;
|
||||
ownerFrame(params?: ElementHandleOwnerFrameParams): Promise<ElementHandleOwnerFrameResult>;
|
||||
press(params: ElementHandlePressParams): Promise<ElementHandlePressResult>;
|
||||
querySelector(params: ElementHandleQuerySelectorParams): Promise<ElementHandleQuerySelectorResult>;
|
||||
querySelectorAll(params: ElementHandleQuerySelectorAllParams): Promise<ElementHandleQuerySelectorAllResult>;
|
||||
screenshot(params: ElementHandleScreenshotParams): Promise<ElementHandleScreenshotResult>;
|
||||
scrollIntoViewIfNeeded(params: ElementHandleScrollIntoViewIfNeededParams): Promise<ElementHandleScrollIntoViewIfNeededResult>;
|
||||
selectOption(params: ElementHandleSelectOptionParams): Promise<ElementHandleSelectOptionResult>;
|
||||
selectText(params: ElementHandleSelectTextParams): Promise<ElementHandleSelectTextResult>;
|
||||
setInputFiles(params: ElementHandleSetInputFilesParams): Promise<ElementHandleSetInputFilesResult>;
|
||||
tap(params: ElementHandleTapParams): Promise<ElementHandleTapResult>;
|
||||
textContent(params?: ElementHandleTextContentParams): Promise<ElementHandleTextContentResult>;
|
||||
type(params: ElementHandleTypeParams): Promise<ElementHandleTypeResult>;
|
||||
uncheck(params: ElementHandleUncheckParams): Promise<ElementHandleUncheckResult>;
|
||||
waitForElementState(params: ElementHandleWaitForElementStateParams): Promise<ElementHandleWaitForElementStateResult>;
|
||||
waitForSelector(params: ElementHandleWaitForSelectorParams): Promise<ElementHandleWaitForSelectorResult>;
|
||||
}
|
||||
export type ElementHandleEvalOnSelectorParams = {
|
||||
selector: string,
|
||||
@@ -3549,16 +3545,16 @@ export interface LocalUtilsEventTarget {
|
||||
}
|
||||
export interface LocalUtilsChannel extends LocalUtilsEventTarget, Channel {
|
||||
_type_LocalUtils: boolean;
|
||||
zip(params: LocalUtilsZipParams, progress?: Progress): Promise<LocalUtilsZipResult>;
|
||||
harOpen(params: LocalUtilsHarOpenParams, progress?: Progress): Promise<LocalUtilsHarOpenResult>;
|
||||
harLookup(params: LocalUtilsHarLookupParams, progress?: Progress): Promise<LocalUtilsHarLookupResult>;
|
||||
harClose(params: LocalUtilsHarCloseParams, progress?: Progress): Promise<LocalUtilsHarCloseResult>;
|
||||
harUnzip(params: LocalUtilsHarUnzipParams, progress?: Progress): Promise<LocalUtilsHarUnzipResult>;
|
||||
connect(params: LocalUtilsConnectParams, progress?: Progress): Promise<LocalUtilsConnectResult>;
|
||||
tracingStarted(params: LocalUtilsTracingStartedParams, progress?: Progress): Promise<LocalUtilsTracingStartedResult>;
|
||||
addStackToTracingNoReply(params: LocalUtilsAddStackToTracingNoReplyParams, progress?: Progress): Promise<LocalUtilsAddStackToTracingNoReplyResult>;
|
||||
traceDiscarded(params: LocalUtilsTraceDiscardedParams, progress?: Progress): Promise<LocalUtilsTraceDiscardedResult>;
|
||||
globToRegex(params: LocalUtilsGlobToRegexParams, progress?: Progress): Promise<LocalUtilsGlobToRegexResult>;
|
||||
zip(params: LocalUtilsZipParams): Promise<LocalUtilsZipResult>;
|
||||
harOpen(params: LocalUtilsHarOpenParams): Promise<LocalUtilsHarOpenResult>;
|
||||
harLookup(params: LocalUtilsHarLookupParams): Promise<LocalUtilsHarLookupResult>;
|
||||
harClose(params: LocalUtilsHarCloseParams): Promise<LocalUtilsHarCloseResult>;
|
||||
harUnzip(params: LocalUtilsHarUnzipParams): Promise<LocalUtilsHarUnzipResult>;
|
||||
connect(params: LocalUtilsConnectParams): Promise<LocalUtilsConnectResult>;
|
||||
tracingStarted(params: LocalUtilsTracingStartedParams): Promise<LocalUtilsTracingStartedResult>;
|
||||
addStackToTracingNoReply(params: LocalUtilsAddStackToTracingNoReplyParams): Promise<LocalUtilsAddStackToTracingNoReplyResult>;
|
||||
traceDiscarded(params: LocalUtilsTraceDiscardedParams): Promise<LocalUtilsTraceDiscardedResult>;
|
||||
globToRegex(params: LocalUtilsGlobToRegexParams): Promise<LocalUtilsGlobToRegexResult>;
|
||||
}
|
||||
export type LocalUtilsZipParams = {
|
||||
zipFile: string,
|
||||
@@ -3721,8 +3717,8 @@ export interface RequestEventTarget {
|
||||
}
|
||||
export interface RequestChannel extends RequestEventTarget, Channel {
|
||||
_type_Request: boolean;
|
||||
response(params?: RequestResponseParams, progress?: Progress): Promise<RequestResponseResult>;
|
||||
rawRequestHeaders(params?: RequestRawRequestHeadersParams, progress?: Progress): Promise<RequestRawRequestHeadersResult>;
|
||||
response(params?: RequestResponseParams): Promise<RequestResponseResult>;
|
||||
rawRequestHeaders(params?: RequestRawRequestHeadersParams): Promise<RequestRawRequestHeadersResult>;
|
||||
}
|
||||
export type RequestResponseParams = {};
|
||||
export type RequestResponseOptions = {};
|
||||
@@ -3746,10 +3742,10 @@ export interface RouteEventTarget {
|
||||
}
|
||||
export interface RouteChannel extends RouteEventTarget, Channel {
|
||||
_type_Route: boolean;
|
||||
redirectNavigationRequest(params: RouteRedirectNavigationRequestParams, progress?: Progress): Promise<RouteRedirectNavigationRequestResult>;
|
||||
abort(params: RouteAbortParams, progress?: Progress): Promise<RouteAbortResult>;
|
||||
continue(params: RouteContinueParams, progress?: Progress): Promise<RouteContinueResult>;
|
||||
fulfill(params: RouteFulfillParams, progress?: Progress): Promise<RouteFulfillResult>;
|
||||
redirectNavigationRequest(params: RouteRedirectNavigationRequestParams): Promise<RouteRedirectNavigationRequestResult>;
|
||||
abort(params: RouteAbortParams): Promise<RouteAbortResult>;
|
||||
continue(params: RouteContinueParams): Promise<RouteContinueResult>;
|
||||
fulfill(params: RouteFulfillParams): Promise<RouteFulfillResult>;
|
||||
}
|
||||
export type RouteRedirectNavigationRequestParams = {
|
||||
url: string,
|
||||
@@ -3811,12 +3807,12 @@ export interface WebSocketRouteEventTarget {
|
||||
}
|
||||
export interface WebSocketRouteChannel extends WebSocketRouteEventTarget, Channel {
|
||||
_type_WebSocketRoute: boolean;
|
||||
connect(params?: WebSocketRouteConnectParams, progress?: Progress): Promise<WebSocketRouteConnectResult>;
|
||||
ensureOpened(params?: WebSocketRouteEnsureOpenedParams, progress?: Progress): Promise<WebSocketRouteEnsureOpenedResult>;
|
||||
sendToPage(params: WebSocketRouteSendToPageParams, progress?: Progress): Promise<WebSocketRouteSendToPageResult>;
|
||||
sendToServer(params: WebSocketRouteSendToServerParams, progress?: Progress): Promise<WebSocketRouteSendToServerResult>;
|
||||
closePage(params: WebSocketRouteClosePageParams, progress?: Progress): Promise<WebSocketRouteClosePageResult>;
|
||||
closeServer(params: WebSocketRouteCloseServerParams, progress?: Progress): Promise<WebSocketRouteCloseServerResult>;
|
||||
connect(params?: WebSocketRouteConnectParams): Promise<WebSocketRouteConnectResult>;
|
||||
ensureOpened(params?: WebSocketRouteEnsureOpenedParams): Promise<WebSocketRouteEnsureOpenedResult>;
|
||||
sendToPage(params: WebSocketRouteSendToPageParams): Promise<WebSocketRouteSendToPageResult>;
|
||||
sendToServer(params: WebSocketRouteSendToServerParams): Promise<WebSocketRouteSendToServerResult>;
|
||||
closePage(params: WebSocketRouteClosePageParams): Promise<WebSocketRouteClosePageResult>;
|
||||
closeServer(params: WebSocketRouteCloseServerParams): Promise<WebSocketRouteCloseServerResult>;
|
||||
}
|
||||
export type WebSocketRouteMessageFromPageEvent = {
|
||||
message: string,
|
||||
@@ -3911,12 +3907,12 @@ export interface ResponseEventTarget {
|
||||
}
|
||||
export interface ResponseChannel extends ResponseEventTarget, Channel {
|
||||
_type_Response: boolean;
|
||||
body(params?: ResponseBodyParams, progress?: Progress): Promise<ResponseBodyResult>;
|
||||
securityDetails(params?: ResponseSecurityDetailsParams, progress?: Progress): Promise<ResponseSecurityDetailsResult>;
|
||||
serverAddr(params?: ResponseServerAddrParams, progress?: Progress): Promise<ResponseServerAddrResult>;
|
||||
rawResponseHeaders(params?: ResponseRawResponseHeadersParams, progress?: Progress): Promise<ResponseRawResponseHeadersResult>;
|
||||
httpVersion(params?: ResponseHttpVersionParams, progress?: Progress): Promise<ResponseHttpVersionResult>;
|
||||
sizes(params?: ResponseSizesParams, progress?: Progress): Promise<ResponseSizesResult>;
|
||||
body(params?: ResponseBodyParams): Promise<ResponseBodyResult>;
|
||||
securityDetails(params?: ResponseSecurityDetailsParams): Promise<ResponseSecurityDetailsResult>;
|
||||
serverAddr(params?: ResponseServerAddrParams): Promise<ResponseServerAddrResult>;
|
||||
rawResponseHeaders(params?: ResponseRawResponseHeadersParams): Promise<ResponseRawResponseHeadersResult>;
|
||||
httpVersion(params?: ResponseHttpVersionParams): Promise<ResponseHttpVersionResult>;
|
||||
sizes(params?: ResponseSizesParams): Promise<ResponseSizesResult>;
|
||||
}
|
||||
export type ResponseBodyParams = {};
|
||||
export type ResponseBodyOptions = {};
|
||||
@@ -4037,64 +4033,64 @@ export interface PageEventTarget {
|
||||
}
|
||||
export interface PageChannel extends PageEventTarget, Channel {
|
||||
_type_Page: boolean;
|
||||
addInitScript(params: PageAddInitScriptParams, progress?: Progress): Promise<PageAddInitScriptResult>;
|
||||
close(params: PageCloseParams, progress?: Progress): Promise<PageCloseResult>;
|
||||
runBeforeUnload(params?: PageRunBeforeUnloadParams, progress?: Progress): Promise<PageRunBeforeUnloadResult>;
|
||||
clearConsoleMessages(params?: PageClearConsoleMessagesParams, progress?: Progress): Promise<PageClearConsoleMessagesResult>;
|
||||
consoleMessages(params: PageConsoleMessagesParams, progress?: Progress): Promise<PageConsoleMessagesResult>;
|
||||
emulateMedia(params: PageEmulateMediaParams, progress?: Progress): Promise<PageEmulateMediaResult>;
|
||||
exposeBinding(params: PageExposeBindingParams, progress?: Progress): Promise<PageExposeBindingResult>;
|
||||
goBack(params: PageGoBackParams, progress?: Progress): Promise<PageGoBackResult>;
|
||||
goForward(params: PageGoForwardParams, progress?: Progress): Promise<PageGoForwardResult>;
|
||||
requestGC(params?: PageRequestGCParams, progress?: Progress): Promise<PageRequestGCResult>;
|
||||
registerLocatorHandler(params: PageRegisterLocatorHandlerParams, progress?: Progress): Promise<PageRegisterLocatorHandlerResult>;
|
||||
resolveLocatorHandlerNoReply(params: PageResolveLocatorHandlerNoReplyParams, progress?: Progress): Promise<PageResolveLocatorHandlerNoReplyResult>;
|
||||
unregisterLocatorHandler(params: PageUnregisterLocatorHandlerParams, progress?: Progress): Promise<PageUnregisterLocatorHandlerResult>;
|
||||
reload(params: PageReloadParams, progress?: Progress): Promise<PageReloadResult>;
|
||||
expectScreenshot(params: PageExpectScreenshotParams, progress?: Progress): Promise<PageExpectScreenshotResult>;
|
||||
screenshot(params: PageScreenshotParams, progress?: Progress): Promise<PageScreenshotResult>;
|
||||
setExtraHTTPHeaders(params: PageSetExtraHTTPHeadersParams, progress?: Progress): Promise<PageSetExtraHTTPHeadersResult>;
|
||||
setNetworkInterceptionPatterns(params: PageSetNetworkInterceptionPatternsParams, progress?: Progress): Promise<PageSetNetworkInterceptionPatternsResult>;
|
||||
setWebSocketInterceptionPatterns(params: PageSetWebSocketInterceptionPatternsParams, progress?: Progress): Promise<PageSetWebSocketInterceptionPatternsResult>;
|
||||
setViewportSize(params: PageSetViewportSizeParams, progress?: Progress): Promise<PageSetViewportSizeResult>;
|
||||
keyboardDown(params: PageKeyboardDownParams, progress?: Progress): Promise<PageKeyboardDownResult>;
|
||||
keyboardUp(params: PageKeyboardUpParams, progress?: Progress): Promise<PageKeyboardUpResult>;
|
||||
keyboardInsertText(params: PageKeyboardInsertTextParams, progress?: Progress): Promise<PageKeyboardInsertTextResult>;
|
||||
keyboardType(params: PageKeyboardTypeParams, progress?: Progress): Promise<PageKeyboardTypeResult>;
|
||||
keyboardPress(params: PageKeyboardPressParams, progress?: Progress): Promise<PageKeyboardPressResult>;
|
||||
mouseMove(params: PageMouseMoveParams, progress?: Progress): Promise<PageMouseMoveResult>;
|
||||
mouseDown(params: PageMouseDownParams, progress?: Progress): Promise<PageMouseDownResult>;
|
||||
mouseUp(params: PageMouseUpParams, progress?: Progress): Promise<PageMouseUpResult>;
|
||||
mouseClick(params: PageMouseClickParams, progress?: Progress): Promise<PageMouseClickResult>;
|
||||
mouseWheel(params: PageMouseWheelParams, progress?: Progress): Promise<PageMouseWheelResult>;
|
||||
touchscreenTap(params: PageTouchscreenTapParams, progress?: Progress): Promise<PageTouchscreenTapResult>;
|
||||
clearPageErrors(params?: PageClearPageErrorsParams, progress?: Progress): Promise<PageClearPageErrorsResult>;
|
||||
pageErrors(params: PagePageErrorsParams, progress?: Progress): Promise<PagePageErrorsResult>;
|
||||
pdf(params: PagePdfParams, progress?: Progress): Promise<PagePdfResult>;
|
||||
requests(params?: PageRequestsParams, progress?: Progress): Promise<PageRequestsResult>;
|
||||
startJSCoverage(params: PageStartJSCoverageParams, progress?: Progress): Promise<PageStartJSCoverageResult>;
|
||||
stopJSCoverage(params?: PageStopJSCoverageParams, progress?: Progress): Promise<PageStopJSCoverageResult>;
|
||||
startCSSCoverage(params: PageStartCSSCoverageParams, progress?: Progress): Promise<PageStartCSSCoverageResult>;
|
||||
stopCSSCoverage(params?: PageStopCSSCoverageParams, progress?: Progress): Promise<PageStopCSSCoverageResult>;
|
||||
bringToFront(params?: PageBringToFrontParams, progress?: Progress): Promise<PageBringToFrontResult>;
|
||||
pickLocator(params?: PagePickLocatorParams, progress?: Progress): Promise<PagePickLocatorResult>;
|
||||
cancelPickLocator(params?: PageCancelPickLocatorParams, progress?: Progress): Promise<PageCancelPickLocatorResult>;
|
||||
hideHighlight(params?: PageHideHighlightParams, progress?: Progress): Promise<PageHideHighlightResult>;
|
||||
screencastShowOverlay(params: PageScreencastShowOverlayParams, progress?: Progress): Promise<PageScreencastShowOverlayResult>;
|
||||
screencastRemoveOverlay(params: PageScreencastRemoveOverlayParams, progress?: Progress): Promise<PageScreencastRemoveOverlayResult>;
|
||||
screencastChapter(params: PageScreencastChapterParams, progress?: Progress): Promise<PageScreencastChapterResult>;
|
||||
screencastSetOverlayVisible(params: PageScreencastSetOverlayVisibleParams, progress?: Progress): Promise<PageScreencastSetOverlayVisibleResult>;
|
||||
screencastShowActions(params: PageScreencastShowActionsParams, progress?: Progress): Promise<PageScreencastShowActionsResult>;
|
||||
screencastHideActions(params?: PageScreencastHideActionsParams, progress?: Progress): Promise<PageScreencastHideActionsResult>;
|
||||
screencastStart(params: PageScreencastStartParams, progress?: Progress): Promise<PageScreencastStartResult>;
|
||||
screencastStop(params?: PageScreencastStopParams, progress?: Progress): Promise<PageScreencastStopResult>;
|
||||
updateSubscription(params: PageUpdateSubscriptionParams, progress?: Progress): Promise<PageUpdateSubscriptionResult>;
|
||||
setDockTile(params: PageSetDockTileParams, progress?: Progress): Promise<PageSetDockTileResult>;
|
||||
webStorageItems(params: PageWebStorageItemsParams, progress?: Progress): Promise<PageWebStorageItemsResult>;
|
||||
webStorageGetItem(params: PageWebStorageGetItemParams, progress?: Progress): Promise<PageWebStorageGetItemResult>;
|
||||
webStorageSetItem(params: PageWebStorageSetItemParams, progress?: Progress): Promise<PageWebStorageSetItemResult>;
|
||||
webStorageRemoveItem(params: PageWebStorageRemoveItemParams, progress?: Progress): Promise<PageWebStorageRemoveItemResult>;
|
||||
webStorageClear(params: PageWebStorageClearParams, progress?: Progress): Promise<PageWebStorageClearResult>;
|
||||
addInitScript(params: PageAddInitScriptParams): Promise<PageAddInitScriptResult>;
|
||||
close(params: PageCloseParams): Promise<PageCloseResult>;
|
||||
runBeforeUnload(params?: PageRunBeforeUnloadParams): Promise<PageRunBeforeUnloadResult>;
|
||||
clearConsoleMessages(params?: PageClearConsoleMessagesParams): Promise<PageClearConsoleMessagesResult>;
|
||||
consoleMessages(params: PageConsoleMessagesParams): Promise<PageConsoleMessagesResult>;
|
||||
emulateMedia(params: PageEmulateMediaParams): Promise<PageEmulateMediaResult>;
|
||||
exposeBinding(params: PageExposeBindingParams): Promise<PageExposeBindingResult>;
|
||||
goBack(params: PageGoBackParams): Promise<PageGoBackResult>;
|
||||
goForward(params: PageGoForwardParams): Promise<PageGoForwardResult>;
|
||||
requestGC(params?: PageRequestGCParams): Promise<PageRequestGCResult>;
|
||||
registerLocatorHandler(params: PageRegisterLocatorHandlerParams): Promise<PageRegisterLocatorHandlerResult>;
|
||||
resolveLocatorHandlerNoReply(params: PageResolveLocatorHandlerNoReplyParams): Promise<PageResolveLocatorHandlerNoReplyResult>;
|
||||
unregisterLocatorHandler(params: PageUnregisterLocatorHandlerParams): Promise<PageUnregisterLocatorHandlerResult>;
|
||||
reload(params: PageReloadParams): Promise<PageReloadResult>;
|
||||
expectScreenshot(params: PageExpectScreenshotParams): Promise<PageExpectScreenshotResult>;
|
||||
screenshot(params: PageScreenshotParams): Promise<PageScreenshotResult>;
|
||||
setExtraHTTPHeaders(params: PageSetExtraHTTPHeadersParams): Promise<PageSetExtraHTTPHeadersResult>;
|
||||
setNetworkInterceptionPatterns(params: PageSetNetworkInterceptionPatternsParams): Promise<PageSetNetworkInterceptionPatternsResult>;
|
||||
setWebSocketInterceptionPatterns(params: PageSetWebSocketInterceptionPatternsParams): Promise<PageSetWebSocketInterceptionPatternsResult>;
|
||||
setViewportSize(params: PageSetViewportSizeParams): Promise<PageSetViewportSizeResult>;
|
||||
keyboardDown(params: PageKeyboardDownParams): Promise<PageKeyboardDownResult>;
|
||||
keyboardUp(params: PageKeyboardUpParams): Promise<PageKeyboardUpResult>;
|
||||
keyboardInsertText(params: PageKeyboardInsertTextParams): Promise<PageKeyboardInsertTextResult>;
|
||||
keyboardType(params: PageKeyboardTypeParams): Promise<PageKeyboardTypeResult>;
|
||||
keyboardPress(params: PageKeyboardPressParams): Promise<PageKeyboardPressResult>;
|
||||
mouseMove(params: PageMouseMoveParams): Promise<PageMouseMoveResult>;
|
||||
mouseDown(params: PageMouseDownParams): Promise<PageMouseDownResult>;
|
||||
mouseUp(params: PageMouseUpParams): Promise<PageMouseUpResult>;
|
||||
mouseClick(params: PageMouseClickParams): Promise<PageMouseClickResult>;
|
||||
mouseWheel(params: PageMouseWheelParams): Promise<PageMouseWheelResult>;
|
||||
touchscreenTap(params: PageTouchscreenTapParams): Promise<PageTouchscreenTapResult>;
|
||||
clearPageErrors(params?: PageClearPageErrorsParams): Promise<PageClearPageErrorsResult>;
|
||||
pageErrors(params: PagePageErrorsParams): Promise<PagePageErrorsResult>;
|
||||
pdf(params: PagePdfParams): Promise<PagePdfResult>;
|
||||
requests(params?: PageRequestsParams): Promise<PageRequestsResult>;
|
||||
startJSCoverage(params: PageStartJSCoverageParams): Promise<PageStartJSCoverageResult>;
|
||||
stopJSCoverage(params?: PageStopJSCoverageParams): Promise<PageStopJSCoverageResult>;
|
||||
startCSSCoverage(params: PageStartCSSCoverageParams): Promise<PageStartCSSCoverageResult>;
|
||||
stopCSSCoverage(params?: PageStopCSSCoverageParams): Promise<PageStopCSSCoverageResult>;
|
||||
bringToFront(params?: PageBringToFrontParams): Promise<PageBringToFrontResult>;
|
||||
pickLocator(params?: PagePickLocatorParams): Promise<PagePickLocatorResult>;
|
||||
cancelPickLocator(params?: PageCancelPickLocatorParams): Promise<PageCancelPickLocatorResult>;
|
||||
hideHighlight(params?: PageHideHighlightParams): Promise<PageHideHighlightResult>;
|
||||
screencastShowOverlay(params: PageScreencastShowOverlayParams): Promise<PageScreencastShowOverlayResult>;
|
||||
screencastRemoveOverlay(params: PageScreencastRemoveOverlayParams): Promise<PageScreencastRemoveOverlayResult>;
|
||||
screencastChapter(params: PageScreencastChapterParams): Promise<PageScreencastChapterResult>;
|
||||
screencastSetOverlayVisible(params: PageScreencastSetOverlayVisibleParams): Promise<PageScreencastSetOverlayVisibleResult>;
|
||||
screencastShowActions(params: PageScreencastShowActionsParams): Promise<PageScreencastShowActionsResult>;
|
||||
screencastHideActions(params?: PageScreencastHideActionsParams): Promise<PageScreencastHideActionsResult>;
|
||||
screencastStart(params: PageScreencastStartParams): Promise<PageScreencastStartResult>;
|
||||
screencastStop(params?: PageScreencastStopParams): Promise<PageScreencastStopResult>;
|
||||
updateSubscription(params: PageUpdateSubscriptionParams): Promise<PageUpdateSubscriptionResult>;
|
||||
setDockTile(params: PageSetDockTileParams): Promise<PageSetDockTileResult>;
|
||||
webStorageItems(params: PageWebStorageItemsParams): Promise<PageWebStorageItemsResult>;
|
||||
webStorageGetItem(params: PageWebStorageGetItemParams): Promise<PageWebStorageGetItemResult>;
|
||||
webStorageSetItem(params: PageWebStorageSetItemParams): Promise<PageWebStorageSetItemResult>;
|
||||
webStorageRemoveItem(params: PageWebStorageRemoveItemParams): Promise<PageWebStorageRemoveItemResult>;
|
||||
webStorageClear(params: PageWebStorageClearParams): Promise<PageWebStorageClearResult>;
|
||||
}
|
||||
export type PageBindingCallEvent = {
|
||||
binding: BindingCallChannel,
|
||||
@@ -4773,7 +4769,7 @@ export interface RootEventTarget {
|
||||
}
|
||||
export interface RootChannel extends RootEventTarget, Channel {
|
||||
_type_Root: boolean;
|
||||
initialize(params: RootInitializeParams, progress?: Progress): Promise<RootInitializeResult>;
|
||||
initialize(params: RootInitializeParams): Promise<RootInitializeResult>;
|
||||
}
|
||||
export type RootInitializeParams = {
|
||||
sdkLanguage: SDKLanguage,
|
||||
@@ -4804,7 +4800,7 @@ export interface PlaywrightEventTarget {
|
||||
}
|
||||
export interface PlaywrightChannel extends PlaywrightEventTarget, Channel {
|
||||
_type_Playwright: boolean;
|
||||
newRequest(params: PlaywrightNewRequestParams, progress?: Progress): Promise<PlaywrightNewRequestResult>;
|
||||
newRequest(params: PlaywrightNewRequestParams): Promise<PlaywrightNewRequestResult>;
|
||||
}
|
||||
export type PlaywrightNewRequestParams = {
|
||||
baseURL?: string,
|
||||
@@ -4888,13 +4884,13 @@ export interface DebugControllerEventTarget {
|
||||
}
|
||||
export interface DebugControllerChannel extends DebugControllerEventTarget, Channel {
|
||||
_type_DebugController: boolean;
|
||||
initialize(params: DebugControllerInitializeParams, progress?: Progress): Promise<DebugControllerInitializeResult>;
|
||||
setReportStateChanged(params: DebugControllerSetReportStateChangedParams, progress?: Progress): Promise<DebugControllerSetReportStateChangedResult>;
|
||||
setRecorderMode(params: DebugControllerSetRecorderModeParams, progress?: Progress): Promise<DebugControllerSetRecorderModeResult>;
|
||||
highlight(params: DebugControllerHighlightParams, progress?: Progress): Promise<DebugControllerHighlightResult>;
|
||||
hideHighlight(params?: DebugControllerHideHighlightParams, progress?: Progress): Promise<DebugControllerHideHighlightResult>;
|
||||
resume(params?: DebugControllerResumeParams, progress?: Progress): Promise<DebugControllerResumeResult>;
|
||||
kill(params?: DebugControllerKillParams, progress?: Progress): Promise<DebugControllerKillResult>;
|
||||
initialize(params: DebugControllerInitializeParams): Promise<DebugControllerInitializeResult>;
|
||||
setReportStateChanged(params: DebugControllerSetReportStateChangedParams): Promise<DebugControllerSetReportStateChangedResult>;
|
||||
setRecorderMode(params: DebugControllerSetRecorderModeParams): Promise<DebugControllerSetRecorderModeResult>;
|
||||
highlight(params: DebugControllerHighlightParams): Promise<DebugControllerHighlightResult>;
|
||||
hideHighlight(params?: DebugControllerHideHighlightParams): Promise<DebugControllerHideHighlightResult>;
|
||||
resume(params?: DebugControllerResumeParams): Promise<DebugControllerResumeResult>;
|
||||
kill(params?: DebugControllerKillParams): Promise<DebugControllerKillResult>;
|
||||
}
|
||||
export type DebugControllerInspectRequestedEvent = {
|
||||
selector: string,
|
||||
@@ -4977,11 +4973,11 @@ export interface SocksSupportEventTarget {
|
||||
}
|
||||
export interface SocksSupportChannel extends SocksSupportEventTarget, Channel {
|
||||
_type_SocksSupport: boolean;
|
||||
socksConnected(params: SocksSupportSocksConnectedParams, progress?: Progress): Promise<SocksSupportSocksConnectedResult>;
|
||||
socksFailed(params: SocksSupportSocksFailedParams, progress?: Progress): Promise<SocksSupportSocksFailedResult>;
|
||||
socksData(params: SocksSupportSocksDataParams, progress?: Progress): Promise<SocksSupportSocksDataResult>;
|
||||
socksError(params: SocksSupportSocksErrorParams, progress?: Progress): Promise<SocksSupportSocksErrorResult>;
|
||||
socksEnd(params: SocksSupportSocksEndParams, progress?: Progress): Promise<SocksSupportSocksEndResult>;
|
||||
socksConnected(params: SocksSupportSocksConnectedParams): Promise<SocksSupportSocksConnectedResult>;
|
||||
socksFailed(params: SocksSupportSocksFailedParams): Promise<SocksSupportSocksFailedResult>;
|
||||
socksData(params: SocksSupportSocksDataParams): Promise<SocksSupportSocksDataResult>;
|
||||
socksError(params: SocksSupportSocksErrorParams): Promise<SocksSupportSocksErrorResult>;
|
||||
socksEnd(params: SocksSupportSocksEndParams): Promise<SocksSupportSocksEndResult>;
|
||||
}
|
||||
export type SocksSupportSocksRequestedEvent = {
|
||||
uid: string,
|
||||
@@ -5050,8 +5046,8 @@ export interface JsonPipeEventTarget {
|
||||
}
|
||||
export interface JsonPipeChannel extends JsonPipeEventTarget, Channel {
|
||||
_type_JsonPipe: boolean;
|
||||
send(params: JsonPipeSendParams, progress?: Progress): Promise<JsonPipeSendResult>;
|
||||
close(params?: JsonPipeCloseParams, progress?: Progress): Promise<JsonPipeCloseResult>;
|
||||
send(params: JsonPipeSendParams): Promise<JsonPipeSendResult>;
|
||||
close(params?: JsonPipeCloseParams): Promise<JsonPipeCloseResult>;
|
||||
}
|
||||
export type JsonPipeMessageEvent = {
|
||||
message: any,
|
||||
@@ -5170,8 +5166,8 @@ export interface CDPSessionEventTarget {
|
||||
}
|
||||
export interface CDPSessionChannel extends CDPSessionEventTarget, Channel {
|
||||
_type_CDPSession: boolean;
|
||||
send(params: CDPSessionSendParams, progress?: Progress): Promise<CDPSessionSendResult>;
|
||||
detach(params?: CDPSessionDetachParams, progress?: Progress): Promise<CDPSessionDetachResult>;
|
||||
send(params: CDPSessionSendParams): Promise<CDPSessionSendResult>;
|
||||
detach(params?: CDPSessionDetachParams): Promise<CDPSessionDetachResult>;
|
||||
}
|
||||
export type CDPSessionEventEvent = {
|
||||
method: string,
|
||||
@@ -5207,8 +5203,8 @@ export interface BindingCallEventTarget {
|
||||
}
|
||||
export interface BindingCallChannel extends BindingCallEventTarget, Channel {
|
||||
_type_BindingCall: boolean;
|
||||
reject(params: BindingCallRejectParams, progress?: Progress): Promise<BindingCallRejectResult>;
|
||||
resolve(params: BindingCallResolveParams, progress?: Progress): Promise<BindingCallResolveResult>;
|
||||
reject(params: BindingCallRejectParams): Promise<BindingCallRejectResult>;
|
||||
resolve(params: BindingCallResolveParams): Promise<BindingCallResolveResult>;
|
||||
}
|
||||
export type BindingCallRejectParams = {
|
||||
error: SerializedError,
|
||||
@@ -5235,10 +5231,10 @@ export interface DebuggerEventTarget {
|
||||
}
|
||||
export interface DebuggerChannel extends DebuggerEventTarget, Channel {
|
||||
_type_Debugger: boolean;
|
||||
requestPause(params?: DebuggerRequestPauseParams, progress?: Progress): Promise<DebuggerRequestPauseResult>;
|
||||
resume(params?: DebuggerResumeParams, progress?: Progress): Promise<DebuggerResumeResult>;
|
||||
next(params?: DebuggerNextParams, progress?: Progress): Promise<DebuggerNextResult>;
|
||||
runTo(params: DebuggerRunToParams, progress?: Progress): Promise<DebuggerRunToResult>;
|
||||
requestPause(params?: DebuggerRequestPauseParams): Promise<DebuggerRequestPauseResult>;
|
||||
resume(params?: DebuggerResumeParams): Promise<DebuggerResumeResult>;
|
||||
next(params?: DebuggerNextParams): Promise<DebuggerNextResult>;
|
||||
runTo(params: DebuggerRunToParams): Promise<DebuggerRunToResult>;
|
||||
}
|
||||
export type DebuggerPausedStateChangedEvent = {
|
||||
pausedDetails?: {
|
||||
@@ -5287,8 +5283,8 @@ export interface DialogEventTarget {
|
||||
}
|
||||
export interface DialogChannel extends DialogEventTarget, Channel {
|
||||
_type_Dialog: boolean;
|
||||
accept(params: DialogAcceptParams, progress?: Progress): Promise<DialogAcceptResult>;
|
||||
dismiss(params?: DialogDismissParams, progress?: Progress): Promise<DialogDismissResult>;
|
||||
accept(params: DialogAcceptParams): Promise<DialogAcceptResult>;
|
||||
dismiss(params?: DialogDismissParams): Promise<DialogDismissResult>;
|
||||
}
|
||||
export type DialogAcceptParams = {
|
||||
promptText?: string,
|
||||
@@ -5398,14 +5394,14 @@ export interface TracingEventTarget {
|
||||
}
|
||||
export interface TracingChannel extends TracingEventTarget, Channel {
|
||||
_type_Tracing: boolean;
|
||||
tracingStart(params: TracingTracingStartParams, progress?: Progress): Promise<TracingTracingStartResult>;
|
||||
tracingStartChunk(params: TracingTracingStartChunkParams, progress?: Progress): Promise<TracingTracingStartChunkResult>;
|
||||
tracingGroup(params: TracingTracingGroupParams, progress?: Progress): Promise<TracingTracingGroupResult>;
|
||||
tracingGroupEnd(params?: TracingTracingGroupEndParams, progress?: Progress): Promise<TracingTracingGroupEndResult>;
|
||||
tracingStopChunk(params: TracingTracingStopChunkParams, progress?: Progress): Promise<TracingTracingStopChunkResult>;
|
||||
tracingStop(params?: TracingTracingStopParams, progress?: Progress): Promise<TracingTracingStopResult>;
|
||||
harStart(params: TracingHarStartParams, progress?: Progress): Promise<TracingHarStartResult>;
|
||||
harExport(params: TracingHarExportParams, progress?: Progress): Promise<TracingHarExportResult>;
|
||||
tracingStart(params: TracingTracingStartParams): Promise<TracingTracingStartResult>;
|
||||
tracingStartChunk(params: TracingTracingStartChunkParams): Promise<TracingTracingStartChunkResult>;
|
||||
tracingGroup(params: TracingTracingGroupParams): Promise<TracingTracingGroupResult>;
|
||||
tracingGroupEnd(params?: TracingTracingGroupEndParams): Promise<TracingTracingGroupEndResult>;
|
||||
tracingStopChunk(params: TracingTracingStopChunkParams): Promise<TracingTracingStopChunkResult>;
|
||||
tracingStop(params?: TracingTracingStopParams): Promise<TracingTracingStopResult>;
|
||||
harStart(params: TracingHarStartParams): Promise<TracingHarStartResult>;
|
||||
harExport(params: TracingHarExportParams): Promise<TracingHarExportResult>;
|
||||
}
|
||||
export type TracingTracingStartParams = {
|
||||
name?: string,
|
||||
@@ -5498,10 +5494,10 @@ export interface WorkerEventTarget {
|
||||
}
|
||||
export interface WorkerChannel extends WorkerEventTarget, Channel {
|
||||
_type_Worker: boolean;
|
||||
disconnect(params: WorkerDisconnectParams, progress?: Progress): Promise<WorkerDisconnectResult>;
|
||||
evaluateExpression(params: WorkerEvaluateExpressionParams, progress?: Progress): Promise<WorkerEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: WorkerEvaluateExpressionHandleParams, progress?: Progress): Promise<WorkerEvaluateExpressionHandleResult>;
|
||||
updateSubscription(params: WorkerUpdateSubscriptionParams, progress?: Progress): Promise<WorkerUpdateSubscriptionResult>;
|
||||
disconnect(params: WorkerDisconnectParams): Promise<WorkerDisconnectResult>;
|
||||
evaluateExpression(params: WorkerEvaluateExpressionParams): Promise<WorkerEvaluateExpressionResult>;
|
||||
evaluateExpressionHandle(params: WorkerEvaluateExpressionHandleParams): Promise<WorkerEvaluateExpressionHandleResult>;
|
||||
updateSubscription(params: WorkerUpdateSubscriptionParams): Promise<WorkerUpdateSubscriptionResult>;
|
||||
}
|
||||
export type WorkerConsoleEvent = {
|
||||
type: string,
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import type { BrowserContext } from './browserContext';
|
||||
import type { APIRequestContext, NewContextOptions } from './fetch';
|
||||
import type { StackFrame } from '@protocol/channels';
|
||||
import type { StackFrame } from './channels';
|
||||
import type { Page } from './page';
|
||||
import type { BrowserContextOptions } from './types';
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import { Events } from './events';
|
||||
|
||||
import type { Playwright } from './playwright';
|
||||
import type { ConnectOptions, HeadersArray } from './types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export async function connectToBrowser(playwright: Playwright, params: ConnectOptions): Promise<Browser> {
|
||||
const deadline = params.timeout ? monotonicTime() + params.timeout : 0;
|
||||
|
||||
@@ -47,7 +47,7 @@ import type { ClientInstrumentation } from './clientInstrumentation';
|
||||
import type { HeadersArray } from './types';
|
||||
import type { ValidatorContext } from '../protocol/validator';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
class Root extends ChannelOwner<channels.RootChannel> {
|
||||
constructor(connection: Connection) {
|
||||
|
||||
@@ -18,7 +18,7 @@ import { JSHandle } from './jsHandle';
|
||||
|
||||
import type * as api from '../../types/types';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { Page } from './page';
|
||||
import type { Worker } from './worker';
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Coverage implements api.Coverage {
|
||||
private _channel: channels.PageChannel;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import type { BrowserContext } from './browserContext';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Credentials implements api.Credentials {
|
||||
private _browserContext: BrowserContext;
|
||||
|
||||
@@ -18,7 +18,7 @@ import { ChannelOwner } from './channelOwner';
|
||||
import { Events } from './events';
|
||||
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
type PausedDetails = { location: { file: string, line?: number, column?: number }, title: string, stack?: string };
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import { Page } from './page';
|
||||
import { isTargetClosedError } from './errors';
|
||||
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
|
||||
export class Dialog extends ChannelOwner<channels.DialogChannel> implements api.Dialog {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { ChannelOwner } from './channelOwner';
|
||||
import { isTargetClosedError } from './errors';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export interface Disposable {
|
||||
dispose: () => Promise<void>;
|
||||
|
||||
@@ -28,7 +28,7 @@ import type { Page } from './page';
|
||||
import type { BrowserContextOptions, Headers, TimeoutOptions, WaitForEventOptions } from './types';
|
||||
import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type * as childProcess from 'child_process';
|
||||
import type { BrowserWindow } from 'electron';
|
||||
import type { Playwright } from './playwright';
|
||||
|
||||
@@ -29,7 +29,7 @@ import type { FilePayload, Rect, SelectOption, SelectOptionOptions, TimeoutOptio
|
||||
import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class ElementHandle<T extends Node = Node> extends JSHandle<T> implements api.ElementHandle {
|
||||
private _frame: Frame;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { isError } from '@isomorphic/rtti';
|
||||
import { parseSerializedValue, serializeValue } from '../protocol/serializers';
|
||||
|
||||
import type { SerializedError } from '@protocol/channels';
|
||||
import type { SerializedError } from './channels';
|
||||
|
||||
export class PlaywrightError extends Error {
|
||||
log: string[] = [];
|
||||
|
||||
@@ -31,7 +31,7 @@ import type { Serializable } from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { HeadersArray, NameValue } from '@isomorphic/types';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type * as fs from 'fs';
|
||||
|
||||
export type FetchOptions = {
|
||||
|
||||
@@ -18,7 +18,7 @@ import type { ElementHandle } from './elementHandle';
|
||||
import type { Page } from './page';
|
||||
import type { FilePayload, TimeoutOptions } from './types';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class FileChooser implements api.FileChooser {
|
||||
private _page: Page;
|
||||
|
||||
@@ -38,7 +38,7 @@ import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { ByRoleOptions } from '@isomorphic/locatorUtils';
|
||||
import type { URLMatch } from '@isomorphic/urlMatch';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export type WaitForNavigationOptions = {
|
||||
timeout?: number,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
import type { Page } from './page';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Keyboard implements api.Keyboard {
|
||||
private _page: Page;
|
||||
|
||||
@@ -20,7 +20,7 @@ import { parseSerializedValue, serializeValue } from '../protocol/serializers';
|
||||
|
||||
import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
|
||||
export class JSHandle<T = any> extends ChannelOwner<channels.JSHandleChannel> implements api.JSHandle {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { ChannelOwner } from './channelOwner';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class JsonPipe extends ChannelOwner<channels.JsonPipeChannel> {
|
||||
static from(jsonPipe: channels.JsonPipeChannel): JsonPipe {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { ChannelOwner } from './channelOwner';
|
||||
|
||||
import type { Size } from './types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
type DeviceDescriptor = {
|
||||
userAgent: string,
|
||||
|
||||
@@ -27,7 +27,7 @@ import type { DropPayload, FilePayload, FrameExpectParams, Rect, SelectOption, S
|
||||
import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { ByRoleOptions } from '@isomorphic/locatorUtils';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
|
||||
export type LocatorOptions = {
|
||||
|
||||
@@ -37,7 +37,7 @@ import type { Serializable } from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { HeadersArray } from '@isomorphic/types';
|
||||
import type { URLMatch } from '@isomorphic/urlMatch';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { Platform, Zone } from '@isomorphic/platform';
|
||||
|
||||
export type NetworkCookie = {
|
||||
|
||||
@@ -55,7 +55,7 @@ import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type { ByRoleOptions } from '@isomorphic/locatorUtils';
|
||||
import type { URLMatch } from '@isomorphic/urlMatch';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
type PDFOptions = Omit<channels.PagePdfParams, 'width' | 'height' | 'margin'> & {
|
||||
width?: string | number,
|
||||
|
||||
@@ -23,7 +23,7 @@ import { TimeoutError } from './errors';
|
||||
import { APIRequest } from './fetch';
|
||||
import { Selectors } from './selectors';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { LaunchOptions } from 'playwright-core';
|
||||
|
||||
export class Playwright extends ChannelOwner<channels.PlaywrightChannel> {
|
||||
|
||||
@@ -19,7 +19,7 @@ import { setTestIdAttribute } from './locator';
|
||||
|
||||
import type { SelectorEngine } from './types';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { BrowserContext } from './browserContext';
|
||||
import type { Platform } from '@isomorphic/platform';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Readable } from 'stream';
|
||||
|
||||
import { ChannelOwner } from './channelOwner';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Stream extends ChannelOwner<channels.StreamChannel> {
|
||||
static from(Stream: channels.StreamChannel): Stream {
|
||||
|
||||
@@ -21,7 +21,7 @@ import { DisposableStub } from './disposable';
|
||||
|
||||
import type { Page } from './page';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Tracing extends ChannelOwner<channels.TracingChannel> implements api.Tracing {
|
||||
private _includeSources = false;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import type { Size } from '@isomorphic/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
export type { HeadersArray, Point, Quad, Rect, Size } from '@isomorphic/types';
|
||||
|
||||
type LoggerSeverity = 'verbose' | 'info' | 'warning' | 'error';
|
||||
|
||||
@@ -18,7 +18,7 @@ import { rewriteErrorMessage } from '@isomorphic/stackTrace';
|
||||
import { TimeoutError } from './errors';
|
||||
|
||||
import type { ChannelOwner } from './channelOwner';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { EventEmitter } from 'events';
|
||||
import type { Zone } from '@isomorphic/platform';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import type { Page } from './page';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
type WebErrorLocation = channels.BrowserContextPageErrorEvent['location'];
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import type { BrowserContext } from './browserContext';
|
||||
import type { Page } from './page';
|
||||
import type * as structs from '../../types/structs';
|
||||
import type * as api from '../../types/types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { TimeoutOptions, WaitForEventOptions } from './types';
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { ChannelOwner } from './channelOwner';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { Writable } from 'stream';
|
||||
|
||||
export class WritableStream extends ChannelOwner<channels.WritableStreamChannel> {
|
||||
|
||||
@@ -14,7 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import type { SerializedValue } from '@protocol/channels';
|
||||
export type SerializedValue = {
|
||||
n?: number,
|
||||
b?: boolean,
|
||||
s?: string,
|
||||
v?: 'null' | 'undefined' | 'NaN' | 'Infinity' | '-Infinity' | '-0',
|
||||
d?: string,
|
||||
u?: string,
|
||||
bi?: string,
|
||||
ta?: {
|
||||
b: Buffer,
|
||||
k: 'i8' | 'ui8' | 'ui8c' | 'i16' | 'ui16' | 'i32' | 'ui32' | 'f32' | 'f64' | 'bi64' | 'bui64',
|
||||
},
|
||||
e?: {
|
||||
m: string,
|
||||
n: string,
|
||||
s: string,
|
||||
},
|
||||
r?: {
|
||||
p: string,
|
||||
f: string,
|
||||
},
|
||||
a?: SerializedValue[],
|
||||
o?: {
|
||||
k: string,
|
||||
v: SerializedValue,
|
||||
}[],
|
||||
h?: number,
|
||||
id?: number,
|
||||
ref?: number,
|
||||
};
|
||||
|
||||
export function parseSerializedValue(value: SerializedValue, handles: any[] | undefined): any {
|
||||
return innerParseSerializedValue(value, handles, new Map(), []);
|
||||
|
||||
@@ -40,7 +40,7 @@ import { registry } from '../registry';
|
||||
import type { BrowserOptions, BrowserProcess } from '../browser';
|
||||
import type { BrowserContext } from '../browserContext';
|
||||
import type * as types from '../types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
import type * as stream from 'stream';
|
||||
|
||||
const ARTIFACTS_FOLDER = path.join(os.tmpdir(), 'playwright-artifacts-');
|
||||
|
||||
@@ -20,7 +20,7 @@ import net from 'net';
|
||||
import debug from 'debug';
|
||||
import { assert } from '@isomorphic/assert';
|
||||
import type { Backend, DeviceBackend, SocketBackend } from './android';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
|
||||
export class AdbBackend implements Backend {
|
||||
|
||||
@@ -21,7 +21,7 @@ import { assert } from '@isomorphic/assert';
|
||||
import { TargetClosedError } from './errors';
|
||||
import { SdkObject } from './instrumentation';
|
||||
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
type SaveCallback = (localPath: string, error?: Error) => Promise<void>;
|
||||
type CancelCallback = () => Promise<void>;
|
||||
|
||||
@@ -31,7 +31,7 @@ import type { InitScript, Page } from '../page';
|
||||
import type { ConnectionTransport } from '../transport';
|
||||
import type * as types from '../types';
|
||||
import type { BidiSession } from './bidiConnection';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
|
||||
export class BidiBrowser extends Browser {
|
||||
|
||||
@@ -35,7 +35,7 @@ import type { InitScript, PageDelegate } from '../page';
|
||||
import type { Progress } from '../progress';
|
||||
import type * as types from '../types';
|
||||
import type { BidiSession } from './bidiConnection';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
const UTILITY_WORLD_NAME = '__playwright_utility_world__';
|
||||
export const kPlaywrightBindingChannel = 'playwrightChannel';
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
import { assert } from '@isomorphic/assert';
|
||||
|
||||
import type { BidiSession } from './bidiConnection';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
const PagePaperFormats: { [key: string]: { width: number, height: number }} = {
|
||||
letter: { width: 8.5, height: 11 },
|
||||
|
||||
@@ -32,7 +32,7 @@ import { TargetClosedError } from './errors';
|
||||
import type * as types from './types';
|
||||
import type { ProxySettings } from './types';
|
||||
import type { RecentLogsCollector } from '@utils/debugLogger';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type { ChildProcess } from 'child_process';
|
||||
import type { Language } from '@isomorphic/locatorGenerators';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
@@ -44,7 +44,7 @@ import type { Progress } from './progress';
|
||||
import type { ClientCertificatesProxy } from './socksClientCertificatesInterceptor';
|
||||
import type { SerializedStorage } from '@injected/storageScript';
|
||||
import type * as types from './types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
const BrowserContextEvent = {
|
||||
Console: 'console',
|
||||
|
||||
@@ -41,7 +41,7 @@ import type { Progress } from './progress';
|
||||
import type { BrowserName } from './registry';
|
||||
import type { ConnectionTransport } from './transport';
|
||||
import type * as types from './types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export const kNoXServerRunningError = 'Looks like you launched a headed browser without having a XServer running.\n' +
|
||||
'Set either \'headless: true\' or use \'xvfb-run <your-playwright-app>\' before running Playwright.\n\n<3 Playwright Team';
|
||||
|
||||
+5559
File diff suppressed because it is too large
Load Diff
@@ -51,7 +51,7 @@ import type { Progress } from '../progress';
|
||||
import type { ConnectionTransport, ProtocolRequest } from '../transport';
|
||||
import type { BrowserContext } from '../browserContext';
|
||||
import type * as types from '../types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
import type http from 'http';
|
||||
import type stream from 'stream';
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import type { CRDevTools } from './crDevTools';
|
||||
import type { Protocol } from './protocol';
|
||||
import type { BrowserOptions } from '../browser';
|
||||
import type { SdkObject } from '../instrumentation';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
export class CRBrowser extends Browser {
|
||||
readonly _connection: CRConnection;
|
||||
|
||||
@@ -27,7 +27,7 @@ import type { ConnectionTransport, ProtocolRequest, ProtocolResponse } from '../
|
||||
import type { Protocol } from './protocol';
|
||||
import type { RecentLogsCollector } from '@utils/debugLogger';
|
||||
import type { ProtocolLogger } from '../types';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
|
||||
export const ConnectionEvents = {
|
||||
|
||||
@@ -22,8 +22,8 @@ import { raceUncancellableOperationWithCleanup } from '../progress';
|
||||
import type { CRSession } from './crConnection';
|
||||
import type { Protocol } from './protocol';
|
||||
import type { RegisteredListener } from '@utils/eventsHelper';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
|
||||
export class CRCoverage {
|
||||
|
||||
@@ -44,7 +44,7 @@ import type { RegisteredListener } from '@utils/eventsHelper';
|
||||
import type { InitScript, PageDelegate } from '../page';
|
||||
import type { Progress } from '../progress';
|
||||
import type * as types from '../types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
|
||||
export type WindowBounds = { top?: number, left?: number, width?: number, height?: number };
|
||||
|
||||
@@ -19,7 +19,7 @@ import { assert } from '@isomorphic/assert';
|
||||
import { readProtocolStream } from './crProtocolHelper';
|
||||
|
||||
import type { CRSession } from './crConnection';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
const PagePaperFormats: { [key: string]: { width: number, height: number }} = {
|
||||
letter: { width: 8.5, height: 11 },
|
||||
|
||||
@@ -19,7 +19,7 @@ import { nullProgress } from './progress';
|
||||
|
||||
import type { BrowserContext } from './browserContext';
|
||||
import type { InitScript } from './page';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
export class Clock {
|
||||
private _browserContext: BrowserContext;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { isLocalHostname, kMaxCookieExpiresDateInSeconds } from './network';
|
||||
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export class Cookie {
|
||||
private _raw: channels.NetworkCookie;
|
||||
|
||||
@@ -21,7 +21,7 @@ import { nullProgress } from './progress';
|
||||
|
||||
import type { BrowserContext } from './browserContext';
|
||||
import type { InitScript } from './page';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
const kBindingName = '__pwWebAuthnBinding';
|
||||
const kAuthenticatorAAGUID = Buffer.alloc(16); // All-zero AAGUID for the virtual authenticator.
|
||||
|
||||
@@ -30,7 +30,7 @@ import type { BrowserContext } from './browserContext';
|
||||
import type { InstrumentationListener } from './instrumentation';
|
||||
import type { Playwright } from './playwright';
|
||||
import type { ElementInfo, Mode } from '@recorder/recorderTypes';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from './progress';
|
||||
import type * as actions from '@recorder/actions';
|
||||
|
||||
export class DebugController extends SdkObject {
|
||||
|
||||
@@ -20,7 +20,7 @@ import { SdkObject } from './instrumentation';
|
||||
import { BrowserContext } from './browserContext';
|
||||
|
||||
import type { CallMetadata, InstrumentationListener } from './instrumentation';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
const symbol = Symbol('Debugger');
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import { SdkObject } from './instrumentation';
|
||||
|
||||
import type { Instrumentation } from './instrumentation';
|
||||
import type { Page } from './page';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from './progress';
|
||||
|
||||
type OnHandle = (accept: boolean, promptText?: string) => Promise<void>;
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ import { SdkObject } from '../instrumentation';
|
||||
|
||||
import type { RootDispatcher } from './dispatcher';
|
||||
import type { Android, SocketBackend } from '../android/android';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class AndroidDispatcher extends Dispatcher<Android, channels.AndroidChannel, RootDispatcher> implements channels.AndroidChannel {
|
||||
_type_Android = true;
|
||||
@@ -104,7 +104,7 @@ export class AndroidDeviceDispatcher extends Dispatcher<AndroidDevice, channels.
|
||||
await this._object.send(progress, 'swipe', params);
|
||||
}
|
||||
|
||||
async info(params: channels.AndroidDeviceTapParams, progress: Progress): Promise<channels.AndroidDeviceInfoResult> {
|
||||
async info(params: channels.AndroidDeviceInfoParams, progress: Progress): Promise<channels.AndroidDeviceInfoResult> {
|
||||
const info = await this._object.send(progress, 'info', params);
|
||||
fixupAndroidElementInfo(info);
|
||||
return { info };
|
||||
|
||||
@@ -22,8 +22,8 @@ import { StreamDispatcher } from './streamDispatcher';
|
||||
|
||||
import type { DispatcherScope } from './dispatcher';
|
||||
import type { Artifact } from '../artifact';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class ArtifactDispatcher extends Dispatcher<Artifact, channels.ArtifactChannel, DispatcherScope> implements channels.ArtifactChannel {
|
||||
_type_Artifact = true;
|
||||
|
||||
@@ -46,8 +46,8 @@ import type { Request, Response, RouteHandler } from '../network';
|
||||
import type { InitScript, Page, PageError } from '../page';
|
||||
import type { Disposable } from '../disposable';
|
||||
import type { DispatcherScope } from './dispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
import type { URLMatch } from '@isomorphic/urlMatch';
|
||||
|
||||
export class BrowserContextDispatcher extends Dispatcher<BrowserContext, channels.BrowserContextChannel, DispatcherScope> implements channels.BrowserContextChannel {
|
||||
|
||||
@@ -25,8 +25,8 @@ import { nullProgress } from '../progress';
|
||||
import type { BrowserTypeDispatcher } from './browserTypeDispatcher';
|
||||
import type { PageDispatcher } from './pageDispatcher';
|
||||
import type { CRBrowser } from '../chromium/crBrowser';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
type BrowserDispatcherOptions = {
|
||||
// Do not allow to close this browser.
|
||||
|
||||
@@ -21,8 +21,8 @@ import { Dispatcher } from './dispatcher';
|
||||
|
||||
import type { BrowserType } from '../browserType';
|
||||
import type { RootDispatcher } from './dispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class BrowserTypeDispatcher extends Dispatcher<BrowserType, channels.BrowserTypeChannel, RootDispatcher> implements channels.BrowserTypeChannel {
|
||||
_type_BrowserType = true;
|
||||
|
||||
@@ -19,8 +19,8 @@ import { CDPSession } from '../chromium/crConnection';
|
||||
|
||||
import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type { BrowserDispatcher } from './browserDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class CDPSessionDispatcher extends Dispatcher<CDPSession, channels.CDPSessionChannel, BrowserDispatcher | BrowserContextDispatcher> implements channels.CDPSessionChannel {
|
||||
_type_CDPSession = true;
|
||||
|
||||
@@ -20,8 +20,8 @@ import { Dispatcher } from './dispatcher';
|
||||
|
||||
import type { DispatcherConnection, RootDispatcher } from './dispatcher';
|
||||
import type { RegisteredListener } from '@utils/eventsHelper';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
|
||||
export class DebugControllerDispatcher extends Dispatcher<DebugController, channels.DebugControllerChannel, RootDispatcher> implements channels.DebugControllerChannel {
|
||||
|
||||
@@ -19,8 +19,8 @@ import { Dispatcher } from './dispatcher';
|
||||
import { Debugger } from '../debugger';
|
||||
|
||||
import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class DebuggerDispatcher extends Dispatcher<Debugger, channels.DebuggerChannel, BrowserContextDispatcher> implements channels.DebuggerChannel {
|
||||
_type_Debugger = true;
|
||||
|
||||
@@ -19,8 +19,8 @@ import { PageDispatcher } from './pageDispatcher';
|
||||
|
||||
import type { Dialog } from '../dialog';
|
||||
import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class DialogDispatcher extends Dispatcher<Dialog, channels.DialogChannel, BrowserContextDispatcher | PageDispatcher> implements channels.DialogChannel {
|
||||
_type_Dialog = true;
|
||||
|
||||
@@ -33,7 +33,7 @@ import type { CallMetadata } from '../instrumentation';
|
||||
import type { PlaywrightDispatcher } from './playwrightDispatcher';
|
||||
import type { RegisteredListener } from '@utils/eventsHelper';
|
||||
import type { ValidatorContext } from '../../protocol/validator';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
const metadataValidator = createMetadataValidator();
|
||||
const waitInfoValidator = createWaitInfoValidator();
|
||||
|
||||
@@ -18,8 +18,8 @@ import { Dispatcher } from './dispatcher';
|
||||
|
||||
import type { DisposableObject } from '../disposable';
|
||||
import type { DispatcherScope } from './dispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class DisposableDispatcher extends Dispatcher<DisposableObject, channels.DisposableChannel, DispatcherScope> implements channels.DisposableChannel {
|
||||
_type_Disposable = true;
|
||||
|
||||
@@ -23,8 +23,8 @@ import type { RootDispatcher } from './dispatcher';
|
||||
import type { PageDispatcher } from './pageDispatcher';
|
||||
import type { ConsoleMessage } from '../console';
|
||||
import type { Electron } from '../electron/electron';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
|
||||
export class ElectronDispatcher extends Dispatcher<Electron, channels.ElectronChannel, RootDispatcher> implements channels.ElectronChannel {
|
||||
|
||||
@@ -21,8 +21,8 @@ import { JSHandleDispatcher, parseArgument, serializeResult } from './jsHandleDi
|
||||
import type { ElementHandle } from '../dom';
|
||||
import type { Frame } from '../frames';
|
||||
import type * as js from '../javascript';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
|
||||
export class ElementHandleDispatcher extends JSHandleDispatcher<FrameDispatcher> implements channels.ElementHandleChannel {
|
||||
|
||||
@@ -25,7 +25,7 @@ import type { Progress } from '../progress';
|
||||
import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type { PageDispatcher } from './pageDispatcher';
|
||||
import type { NavigationEvent } from '../frames';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
|
||||
export class FrameDispatcher extends Dispatcher<Frame, channels.FrameChannel, BrowserContextDispatcher | PageDispatcher> implements channels.FrameChannel {
|
||||
_type_Frame = true;
|
||||
|
||||
@@ -22,8 +22,8 @@ import type * as js from '../javascript';
|
||||
import type { ElectronApplicationDispatcher } from './electronDispatcher';
|
||||
import type { FrameDispatcher } from './frameDispatcher';
|
||||
import type { PageDispatcher, WorkerDispatcher } from './pageDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export type JSHandleDispatcherParentScope = PageDispatcher | FrameDispatcher | WorkerDispatcher | ElectronApplicationDispatcher;
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ import { Dispatcher } from './dispatcher';
|
||||
import { SdkObject } from '../instrumentation';
|
||||
|
||||
import type { LocalUtilsDispatcher } from './localUtilsDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class JsonPipeDispatcher extends Dispatcher<SdkObject, channels.JsonPipeChannel, LocalUtilsDispatcher> implements channels.JsonPipeChannel {
|
||||
_type_JsonPipe = true;
|
||||
|
||||
@@ -31,7 +31,7 @@ import { WebSocketTransport } from '../transport';
|
||||
import type { HarBackend } from '../harBackend';
|
||||
import type { Playwright } from '../playwright';
|
||||
import type { RootDispatcher } from './dispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
import type * as http from 'http';
|
||||
import type { HTTPRequestParams } from '@utils/network';
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@ import type { Response, Route } from '../network';
|
||||
import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type { RootDispatcher } from './dispatcher';
|
||||
import type { PageDispatcher } from './pageDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class RequestDispatcher extends Dispatcher<Request, channels.RequestChannel, BrowserContextDispatcher | PageDispatcher | FrameDispatcher> implements channels.RequestChannel {
|
||||
_type_Request: boolean;
|
||||
|
||||
@@ -46,8 +46,8 @@ import type { InitScript } from '../page';
|
||||
import type { Disposable } from '../disposable';
|
||||
import type { BrowserTypeDispatcher } from './browserTypeDispatcher';
|
||||
import type { ConsoleMessage } from '../console';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
import type { URLMatch } from '@isomorphic/urlMatch';
|
||||
import type { ScreencastFrame } from '../types';
|
||||
import type { ScreencastClient } from '../screencast';
|
||||
|
||||
@@ -33,8 +33,8 @@ import type { RegisteredListener } from '@utils/eventsHelper';
|
||||
import type { AndroidDevice } from '../android/android';
|
||||
import type { Browser } from '../browser';
|
||||
import type { Playwright } from '../playwright';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export type PlaywrightDispatcherOptions = {
|
||||
socksProxy?: SocksProxy;
|
||||
|
||||
@@ -19,9 +19,9 @@ import { Dispatcher } from './dispatcher';
|
||||
import { SdkObject } from '../instrumentation';
|
||||
|
||||
import type { ArtifactDispatcher } from './artifactDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
import type * as stream from 'stream';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
class StreamSdkObject extends SdkObject {
|
||||
readonly stream: stream.Readable;
|
||||
|
||||
@@ -22,8 +22,8 @@ import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type { APIRequestContextDispatcher } from './networkDispatchers';
|
||||
import type { PageDispatcher } from './pageDispatcher';
|
||||
import type { Tracing } from '../trace/recorder/tracing';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
export class TracingDispatcher extends Dispatcher<Tracing, channels.TracingChannel, BrowserContextDispatcher | APIRequestContextDispatcher> implements channels.TracingChannel {
|
||||
_type_Tracing = true;
|
||||
|
||||
@@ -27,8 +27,8 @@ import type { BrowserContext } from '../browserContext';
|
||||
import type { DispatcherConnection } from './dispatcher';
|
||||
import type { Frame } from '../frames';
|
||||
import type * as ws from '@injected/webSocketMock';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
import type { InitScript, PageBinding } from '../page';
|
||||
|
||||
export class WebSocketRouteDispatcher extends Dispatcher<SdkObject, channels.WebSocketRouteChannel, PageDispatcher | BrowserContextDispatcher> implements channels.WebSocketRouteChannel {
|
||||
|
||||
@@ -20,8 +20,8 @@ import { Dispatcher } from './dispatcher';
|
||||
import { SdkObject } from '../instrumentation';
|
||||
|
||||
import type { BrowserContextDispatcher } from './browserContextDispatcher';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type { Progress } from '@protocol/progress';
|
||||
import type * as channels from '../channels';
|
||||
import type { Progress } from '../progress';
|
||||
|
||||
class WritableStreamSdkObject extends SdkObject {
|
||||
readonly streamOrDirectory: fs.WriteStream | string;
|
||||
|
||||
@@ -30,7 +30,7 @@ import type { Page } from './page';
|
||||
import type { Progress } from './progress';
|
||||
import type { ScreenshotOptions } from './screenshotter';
|
||||
import type * as types from './types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
export type InputFilesItems = {
|
||||
filePayloads?: types.FilePayload[],
|
||||
|
||||
@@ -47,7 +47,7 @@ import type { Page } from '../page';
|
||||
import type { Playwright } from '../playwright';
|
||||
import type { Progress } from '../progress';
|
||||
import type * as types from '../types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from '../channels';
|
||||
import type * as childProcess from 'child_process';
|
||||
import type { BrowserWindow } from 'electron';
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { isError } from '@isomorphic/rtti';
|
||||
import { parseSerializedValue, serializeValue } from '../protocol/serializers';
|
||||
|
||||
import type { SerializedError } from '@protocol/channels';
|
||||
import type { SerializedError } from './channels';
|
||||
|
||||
class CustomError extends Error {
|
||||
constructor(message: string) {
|
||||
|
||||
@@ -45,7 +45,7 @@ import type * as types from './types';
|
||||
import type { HeadersArray, ProxySettings } from './types';
|
||||
import type { HTTPCredentials } from '../../types/types';
|
||||
import type { RegisteredListener } from '@utils/eventsHelper';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
import type * as har from '@trace/har';
|
||||
import type { LookupAddress } from 'dns';
|
||||
import type { Readable, TransformCallback } from 'stream';
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { WritableStreamDispatcher } from './dispatchers/writableStreamDispa
|
||||
import type { InputFilesItems } from './dom';
|
||||
import type { Frame } from './frames';
|
||||
import type * as types from './types';
|
||||
import type * as channels from '@protocol/channels';
|
||||
import type * as channels from './channels';
|
||||
|
||||
// Keep in sync with the client.
|
||||
export const fileUploadSizeLimit = 50 * 1024 * 1024;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user