mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: use link with placeholder (#11405)
This commit is contained in:
parent
63a0d8b683
commit
d54b80fa80
@ -402,7 +402,9 @@ export abstract class Browser extends EventEmitter<BrowserEvents> {
|
|||||||
* {@link Page.setUserAgent}.
|
* {@link Page.setUserAgent}.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract userAgent(): Promise<string>;
|
abstract userAgent(): Promise<string>;
|
||||||
|
|
||||||
|
@ -166,7 +166,9 @@ export abstract class BrowserContext extends EventEmitter<BrowserContextEvents>
|
|||||||
* are not listed here will be automatically denied.
|
* are not listed here will be automatically denied.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract overridePermissions(
|
abstract overridePermissions(
|
||||||
origin: string,
|
origin: string,
|
||||||
@ -188,7 +190,9 @@ export abstract class BrowserContext extends EventEmitter<BrowserContextEvents>
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract clearPermissionOverrides(): Promise<void>;
|
abstract clearPermissionOverrides(): Promise<void>;
|
||||||
|
|
||||||
|
@ -964,7 +964,9 @@ export abstract class ElementHandle<
|
|||||||
* absolute.
|
* absolute.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract uploadFile(
|
abstract uploadFile(
|
||||||
this: ElementHandle<HTMLInputElement>,
|
this: ElementHandle<HTMLInputElement>,
|
||||||
|
@ -313,7 +313,9 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
|
|||||||
* `false`.
|
* `false`.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract isOOPFrame(): boolean;
|
abstract isOOPFrame(): boolean;
|
||||||
|
|
||||||
@ -352,7 +354,9 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
|
|||||||
* calling {@link HTTPResponse.status}.
|
* calling {@link HTTPResponse.status}.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Partial support
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
*
|
*
|
||||||
* - `referer` not supported
|
* - `referer` not supported
|
||||||
* - `referrerPolicy` not supported
|
* - `referrerPolicy` not supported
|
||||||
@ -1206,7 +1210,9 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*
|
*
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
@ -132,7 +132,9 @@ export abstract class HTTPRequest {
|
|||||||
* @experimental
|
* @experimental
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract get client(): CDPSession;
|
abstract get client(): CDPSession;
|
||||||
|
|
||||||
@ -152,7 +154,9 @@ export abstract class HTTPRequest {
|
|||||||
* `respond()` aren't called).
|
* `respond()` aren't called).
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract continueRequestOverrides(): ContinueRequestOverrides;
|
abstract continueRequestOverrides(): ContinueRequestOverrides;
|
||||||
|
|
||||||
@ -161,7 +165,9 @@ export abstract class HTTPRequest {
|
|||||||
* interception is allowed to respond (ie, `abort()` is not called).
|
* interception is allowed to respond (ie, `abort()` is not called).
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract responseForRequest(): Partial<ResponseForRequest> | null;
|
abstract responseForRequest(): Partial<ResponseForRequest> | null;
|
||||||
|
|
||||||
@ -169,7 +175,9 @@ export abstract class HTTPRequest {
|
|||||||
* The most recent reason for aborting the request
|
* The most recent reason for aborting the request
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract abortErrorReason(): Protocol.Network.ErrorReason | null;
|
abstract abortErrorReason(): Protocol.Network.ErrorReason | null;
|
||||||
|
|
||||||
@ -185,7 +193,9 @@ export abstract class HTTPRequest {
|
|||||||
* `disabled`, `none`, or `already-handled`.
|
* `disabled`, `none`, or `already-handled`.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract interceptResolutionState(): InterceptResolutionState;
|
abstract interceptResolutionState(): InterceptResolutionState;
|
||||||
|
|
||||||
@ -194,7 +204,9 @@ export abstract class HTTPRequest {
|
|||||||
* `false` otherwise.
|
* `false` otherwise.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract isInterceptResolutionHandled(): boolean;
|
abstract isInterceptResolutionHandled(): boolean;
|
||||||
|
|
||||||
@ -213,7 +225,9 @@ export abstract class HTTPRequest {
|
|||||||
* the request interception.
|
* the request interception.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract finalizeInterceptions(): Promise<void>;
|
abstract finalizeInterceptions(): Promise<void>;
|
||||||
|
|
||||||
@ -311,7 +325,9 @@ export abstract class HTTPRequest {
|
|||||||
* failure text if the request fails.
|
* failure text if the request fails.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract failure(): {errorText: string} | null;
|
abstract failure(): {errorText: string} | null;
|
||||||
|
|
||||||
@ -345,7 +361,9 @@ export abstract class HTTPRequest {
|
|||||||
* immediately.
|
* immediately.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract continue(
|
abstract continue(
|
||||||
overrides?: ContinueRequestOverrides,
|
overrides?: ContinueRequestOverrides,
|
||||||
@ -385,7 +403,9 @@ export abstract class HTTPRequest {
|
|||||||
* immediately.
|
* immediately.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract respond(
|
abstract respond(
|
||||||
response: Partial<ResponseForRequest>,
|
response: Partial<ResponseForRequest>,
|
||||||
@ -406,7 +426,9 @@ export abstract class HTTPRequest {
|
|||||||
* immediately.
|
* immediately.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract abort(errorCode?: ErrorCode, priority?: number): Promise<void>;
|
abstract abort(errorCode?: ErrorCode, priority?: number): Promise<void>;
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,9 @@ export abstract class HTTPResponse {
|
|||||||
* secure connection, or `null` otherwise.
|
* secure connection, or `null` otherwise.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract securityDetails(): SecurityDetails | null;
|
abstract securityDetails(): SecurityDetails | null;
|
||||||
|
|
||||||
@ -96,7 +98,9 @@ export abstract class HTTPResponse {
|
|||||||
* Promise which resolves to a buffer with response body.
|
* Promise which resolves to a buffer with response body.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract buffer(): Promise<Buffer>;
|
abstract buffer(): Promise<Buffer>;
|
||||||
|
|
||||||
@ -136,7 +140,9 @@ export abstract class HTTPResponse {
|
|||||||
* True if the response was served by a service worker.
|
* True if the response was served by a service worker.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract fromServiceWorker(): boolean;
|
abstract fromServiceWorker(): boolean;
|
||||||
|
|
||||||
|
@ -437,7 +437,9 @@ export abstract class Mouse {
|
|||||||
* @param target - point to drag to
|
* @param target - point to drag to
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract drag(start: Point, target: Point): Promise<Protocol.Input.DragData>;
|
abstract drag(start: Point, target: Point): Promise<Protocol.Input.DragData>;
|
||||||
|
|
||||||
@ -447,7 +449,9 @@ export abstract class Mouse {
|
|||||||
* @param data - drag data containing items and operations mask
|
* @param data - drag data containing items and operations mask
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract dragEnter(
|
abstract dragEnter(
|
||||||
target: Point,
|
target: Point,
|
||||||
@ -460,7 +464,9 @@ export abstract class Mouse {
|
|||||||
* @param data - drag data containing items and operations mask
|
* @param data - drag data containing items and operations mask
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract dragOver(
|
abstract dragOver(
|
||||||
target: Point,
|
target: Point,
|
||||||
@ -473,7 +479,9 @@ export abstract class Mouse {
|
|||||||
* @param data - drag data containing items and operations mask
|
* @param data - drag data containing items and operations mask
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract drop(target: Point, data: Protocol.Input.DragData): Promise<void>;
|
abstract drop(target: Point, data: Protocol.Input.DragData): Promise<void>;
|
||||||
|
|
||||||
@ -486,7 +494,9 @@ export abstract class Mouse {
|
|||||||
* Defaults to 0.
|
* Defaults to 0.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract dragAndDrop(
|
abstract dragAndDrop(
|
||||||
start: Point,
|
start: Point,
|
||||||
|
@ -422,7 +422,9 @@ export const enum PageEvent {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
Popup = 'popup',
|
Popup = 'popup',
|
||||||
/**
|
/**
|
||||||
@ -468,7 +470,9 @@ export const enum PageEvent {
|
|||||||
* is spawned by the page.
|
* is spawned by the page.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
WorkerCreated = 'workercreated',
|
WorkerCreated = 'workercreated',
|
||||||
/**
|
/**
|
||||||
@ -477,7 +481,9 @@ export const enum PageEvent {
|
|||||||
* is destroyed by the page.
|
* is destroyed by the page.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
WorkerDestroyed = 'workerdestroyed',
|
WorkerDestroyed = 'workerdestroyed',
|
||||||
}
|
}
|
||||||
@ -620,7 +626,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* `true` if the service worker are being bypassed, `false` otherwise.
|
* `true` if the service worker are being bypassed, `false` otherwise.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract isServiceWorkerBypassed(): boolean;
|
abstract isServiceWorkerBypassed(): boolean;
|
||||||
|
|
||||||
@ -632,7 +640,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* {@link Page.mouse}).
|
* {@link Page.mouse}).
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract isDragInterceptionEnabled(): boolean;
|
abstract isDragInterceptionEnabled(): boolean;
|
||||||
|
|
||||||
@ -640,8 +650,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* `true` if the page has JavaScript enabled, `false` otherwise.
|
* `true` if the page has JavaScript enabled, `false` otherwise.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Support for BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract isJavaScriptEnabled(): boolean;
|
abstract isJavaScriptEnabled(): boolean;
|
||||||
|
|
||||||
@ -729,7 +742,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract waitForFileChooser(
|
abstract waitForFileChooser(
|
||||||
options?: WaitTimeoutOptions
|
options?: WaitTimeoutOptions
|
||||||
@ -749,7 +764,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract setGeolocation(options: GeolocationOptions): Promise<void>;
|
abstract setGeolocation(options: GeolocationOptions): Promise<void>;
|
||||||
|
|
||||||
@ -780,8 +799,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* Creates a Chrome Devtools Protocol session attached to the page.
|
* Creates a Chrome Devtools Protocol session attached to the page.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported By BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract createCDPSession(): Promise<CDPSession>;
|
abstract createCDPSession(): Promise<CDPSession>;
|
||||||
|
|
||||||
@ -824,7 +846,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* This does not contain ServiceWorkers
|
* This does not contain ServiceWorkers
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract workers(): WebWorker[];
|
abstract workers(): WebWorker[];
|
||||||
|
|
||||||
@ -865,7 +889,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param value - Whether to enable request interception.
|
* @param value - Whether to enable request interception.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setRequestInterception(value: boolean): Promise<void>;
|
abstract setRequestInterception(value: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -875,7 +901,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param bypass - Whether to bypass service worker and load from network.
|
* @param bypass - Whether to bypass service worker and load from network.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setBypassServiceWorker(bypass: boolean): Promise<void>;
|
abstract setBypassServiceWorker(bypass: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -887,7 +915,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* {@link Page.mouse}).
|
* {@link Page.mouse}).
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setDragInterception(enabled: boolean): Promise<void>;
|
abstract setDragInterception(enabled: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -899,7 +929,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param enabled - When `true`, enables offline mode for the page.
|
* @param enabled - When `true`, enables offline mode for the page.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setOfflineMode(enabled: boolean): Promise<void>;
|
abstract setOfflineMode(enabled: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -931,7 +963,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* emulation.
|
* emulation.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract emulateNetworkConditions(
|
abstract emulateNetworkConditions(
|
||||||
networkConditions: NetworkConditions | null
|
networkConditions: NetworkConditions | null
|
||||||
@ -1015,6 +1049,15 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param selector - A `selector` to query page for
|
* @param selector - A `selector` to query page for
|
||||||
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors | selector}
|
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors | selector}
|
||||||
* to query page for.
|
* to query page for.
|
||||||
|
*
|
||||||
|
* @privateRemarks BiDi
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* - ARIA selector not supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
async $<Selector extends string>(
|
async $<Selector extends string>(
|
||||||
selector: Selector
|
selector: Selector
|
||||||
@ -1028,6 +1071,15 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @remarks
|
* @remarks
|
||||||
* Shortcut for {@link Frame.$$ | Page.mainFrame().$$(selector) }.
|
* Shortcut for {@link Frame.$$ | Page.mainFrame().$$(selector) }.
|
||||||
* @param selector - A `selector` to query page for
|
* @param selector - A `selector` to query page for
|
||||||
|
*
|
||||||
|
* @privateRemarks BiDi
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* - ARIA selector not supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
async $$<Selector extends string>(
|
async $$<Selector extends string>(
|
||||||
selector: Selector
|
selector: Selector
|
||||||
@ -1130,8 +1182,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* this prototype.
|
* this prototype.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported with BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract queryObjects<Prototype>(
|
abstract queryObjects<Prototype>(
|
||||||
prototypeHandle: JSHandle<Prototype>
|
prototypeHandle: JSHandle<Prototype>
|
||||||
@ -1198,6 +1253,15 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @returns The result of calling `pageFunction`. If it returns an element it
|
* @returns The result of calling `pageFunction`. If it returns an element it
|
||||||
* is wrapped in an {@link ElementHandle}, else the raw value itself is
|
* is wrapped in an {@link ElementHandle}, else the raw value itself is
|
||||||
* returned.
|
* returned.
|
||||||
|
*
|
||||||
|
* @privateRemarks BiDi
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* - ARIA selector not supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
async $eval<
|
async $eval<
|
||||||
Selector extends string,
|
Selector extends string,
|
||||||
@ -1276,6 +1340,15 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @returns The result of calling `pageFunction`. If it returns an element it
|
* @returns The result of calling `pageFunction`. If it returns an element it
|
||||||
* is wrapped in an {@link ElementHandle}, else the raw value itself is
|
* is wrapped in an {@link ElementHandle}, else the raw value itself is
|
||||||
* returned.
|
* returned.
|
||||||
|
*
|
||||||
|
* @privateRemarks BiDi
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* - ARIA selector not supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
async $$eval<
|
async $$eval<
|
||||||
Selector extends string,
|
Selector extends string,
|
||||||
@ -1312,13 +1385,17 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* URL. If URLs are specified, only cookies for those URLs are returned.
|
* URL. If URLs are specified, only cookies for those URLs are returned.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract cookies(...urls: string[]): Promise<Protocol.Network.Cookie[]>;
|
abstract cookies(...urls: string[]): Promise<Protocol.Network.Cookie[]>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract deleteCookie(
|
abstract deleteCookie(
|
||||||
...cookies: Protocol.Network.DeleteCookiesRequest[]
|
...cookies: Protocol.Network.DeleteCookiesRequest[]
|
||||||
@ -1332,7 +1409,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setCookie(...cookies: Protocol.Network.CookieParam[]): Promise<void>;
|
abstract setCookie(...cookies: Protocol.Network.CookieParam[]): Promise<void>;
|
||||||
|
|
||||||
@ -1463,7 +1542,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* To disable authentication, pass `null`.
|
* To disable authentication, pass `null`.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract authenticate(credentials: Credentials): Promise<void>;
|
abstract authenticate(credentials: Credentials): Promise<void>;
|
||||||
|
|
||||||
@ -1488,7 +1569,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* with every request. All header values must be strings.
|
* with every request. All header values must be strings.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setExtraHTTPHeaders(headers: Record<string, string>): Promise<void>;
|
abstract setExtraHTTPHeaders(headers: Record<string, string>): Promise<void>;
|
||||||
|
|
||||||
@ -1499,7 +1582,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @returns Promise which resolves when the user agent is set.
|
* @returns Promise which resolves when the user agent is set.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract setUserAgent(
|
abstract setUserAgent(
|
||||||
userAgent: string,
|
userAgent: string,
|
||||||
@ -1543,7 +1628,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* in seconds since an arbitrary point in the past.
|
* in seconds since an arbitrary point in the past.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract metrics(): Promise<Metrics>;
|
abstract metrics(): Promise<Metrics>;
|
||||||
|
|
||||||
@ -1849,7 +1936,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* more than 2 network connections for at least `500` ms.
|
* more than 2 network connections for at least `500` ms.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract goBack(options?: WaitForOptions): Promise<HTTPResponse | null>;
|
abstract goBack(options?: WaitForOptions): Promise<HTTPResponse | null>;
|
||||||
|
|
||||||
@ -1880,7 +1969,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* more than 2 network connections for at least `500` ms.
|
* more than 2 network connections for at least `500` ms.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract goForward(options?: WaitForOptions): Promise<HTTPResponse | null>;
|
abstract goForward(options?: WaitForOptions): Promise<HTTPResponse | null>;
|
||||||
|
|
||||||
@ -1920,7 +2011,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
async emulate(device: Device): Promise<void> {
|
async emulate(device: Device): Promise<void> {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
@ -1936,8 +2029,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* It will take full effect on the next navigation.
|
* It will take full effect on the next navigation.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported Bidi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract setJavaScriptEnabled(enabled: boolean): Promise<void>;
|
abstract setJavaScriptEnabled(enabled: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -1950,8 +2046,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* before navigating to the domain.
|
* before navigating to the domain.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract setBypassCSP(enabled: boolean): Promise<void>;
|
abstract setBypassCSP(enabled: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -1981,8 +2080,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract emulateMediaType(type?: string): Promise<void>;
|
abstract emulateMediaType(type?: string): Promise<void>;
|
||||||
|
|
||||||
@ -1991,8 +2093,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param factor - slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
|
* @param factor - slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported By BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract emulateCPUThrottling(factor: number | null): Promise<void>;
|
abstract emulateCPUThrottling(factor: number | null): Promise<void>;
|
||||||
|
|
||||||
@ -2058,8 +2163,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported By BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract emulateMediaFeatures(features?: MediaFeature[]): Promise<void>;
|
abstract emulateMediaFeatures(features?: MediaFeature[]): Promise<void>;
|
||||||
|
|
||||||
@ -2070,8 +2178,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* `null` disables timezone emulation.
|
* `null` disables timezone emulation.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract emulateTimezone(timezoneId?: string): Promise<void>;
|
abstract emulateTimezone(timezoneId?: string): Promise<void>;
|
||||||
|
|
||||||
@ -2095,8 +2206,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param overrides - Mock idle state. If not set, clears idle overrides
|
* @param overrides - Mock idle state. If not set, clears idle overrides
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract emulateIdleState(overrides?: {
|
abstract emulateIdleState(overrides?: {
|
||||||
isUserActive: boolean;
|
isUserActive: boolean;
|
||||||
@ -2132,8 +2246,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param type - the type of deficiency to simulate, or `'none'` to reset.
|
* @param type - the type of deficiency to simulate, or `'none'` to reset.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract emulateVisionDeficiency(
|
abstract emulateVisionDeficiency(
|
||||||
type?: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest['type']
|
type?: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest['type']
|
||||||
@ -2164,9 +2281,13 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* set the isMobile or hasTouch properties.
|
* set the isMobile or hasTouch properties.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Full support by BiDi+
|
*
|
||||||
* Partial support by BiDi
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* #TODO: List unsupported?
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract setViewport(viewport: Viewport): Promise<void>;
|
abstract setViewport(viewport: Viewport): Promise<void>;
|
||||||
|
|
||||||
@ -2292,8 +2413,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract setCacheEnabled(enabled?: boolean): Promise<void>;
|
abstract setCacheEnabled(enabled?: boolean): Promise<void>;
|
||||||
|
|
||||||
@ -2354,8 +2478,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @experimental
|
* @experimental
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Supported by BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
async screencast(
|
async screencast(
|
||||||
options: Readonly<ScreencastOptions> = {}
|
options: Readonly<ScreencastOptions> = {}
|
||||||
@ -2499,7 +2626,13 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param options - Configures screenshot behavior.
|
* @param options - Configures screenshot behavior.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Partial support by BiDi
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* #TODO: List unsupported?
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
async screenshot(
|
async screenshot(
|
||||||
options: Readonly<ScreenshotOptions> & {encoding: 'base64'}
|
options: Readonly<ScreenshotOptions> & {encoding: 'base64'}
|
||||||
@ -2665,7 +2798,13 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* @param options - options for generating the PDF.
|
* @param options - options for generating the PDF.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Partial support by BiDi
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* #TODO: List unsupported?
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*/
|
*/
|
||||||
abstract createPDFStream(options?: PDFOptions): Promise<Readable>;
|
abstract createPDFStream(options?: PDFOptions): Promise<Readable>;
|
||||||
|
|
||||||
@ -2802,7 +2941,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* Shortcut for {@link Frame.tap | page.mainFrame().tap(selector)}.
|
* Shortcut for {@link Frame.tap | page.mainFrame().tap(selector)}.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
tap(selector: string): Promise<void> {
|
tap(selector: string): Promise<void> {
|
||||||
return this.mainFrame().tap(selector);
|
return this.mainFrame().tap(selector);
|
||||||
@ -2916,8 +3057,11 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* by using the {@link Page.setDefaultTimeout} method.
|
* by using the {@link Page.setDefaultTimeout} method.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Partial support -
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* ARIA selector not supported
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Partial support
|
||||||
|
*
|
||||||
|
* - ARIA selector not supported
|
||||||
*/
|
*/
|
||||||
async waitForSelector<Selector extends string>(
|
async waitForSelector<Selector extends string>(
|
||||||
selector: Selector,
|
selector: Selector,
|
||||||
@ -3076,7 +3220,9 @@ export abstract class Page extends EventEmitter<PageEvents> {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract waitForDevicePrompt(
|
abstract waitForDevicePrompt(
|
||||||
options?: WaitTimeoutOptions
|
options?: WaitTimeoutOptions
|
||||||
|
@ -72,7 +72,9 @@ export abstract class Target {
|
|||||||
* Creates a Chrome Devtools Protocol session attached to the target.
|
* Creates a Chrome Devtools Protocol session attached to the target.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract createCDPSession(): Promise<CDPSession>;
|
abstract createCDPSession(): Promise<CDPSession>;
|
||||||
|
|
||||||
@ -99,7 +101,9 @@ export abstract class Target {
|
|||||||
* Get the target that opened this target. Top-level targets return `null`.
|
* Get the target that opened this target. Top-level targets return `null`.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
*/
|
*/
|
||||||
abstract opener(): Target | undefined;
|
abstract opener(): Target | undefined;
|
||||||
}
|
}
|
||||||
|
@ -129,8 +129,11 @@ export interface SnapshotOptions {
|
|||||||
* the "interesting" nodes of the tree.
|
* the "interesting" nodes of the tree.
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Support for BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
|
@ -124,8 +124,11 @@ export interface CSSCoverageOptions {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Support for BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
|
@ -46,8 +46,11 @@ export interface TracingOptions {
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @privateRemarks BiDi
|
* @privateRemarks BiDi
|
||||||
* Not supported when using protocol `webDriverBiDi`
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | CDP}: Supported
|
||||||
* Support for BiDi+
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi}: Unsupported
|
||||||
|
*
|
||||||
|
* {@link PROTOCOL_GET_STARTED_LINK_TEMPLATE | BiDi+}: Supported
|
||||||
*
|
*
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user