Skip to main content
Latest
class IsolatedWorld
Re-export
import { IsolatedWorld } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.js";

Constructors

new
IsolatedWorld(
client: CDPSession,
frameManager: FrameManager,
frame: Frame,
timeoutSettings: TimeoutSettings,
)

Properties

readonly
_boundFunctions: Map<string, Function>
readonly
_waitTasks: Set<WaitTask>

Methods

_addBindingToContext(context: ExecutionContext, name: string): Promise<void>
_detach(): void
_waitForSelectorInPage(
queryOne: Function,
selector: string,
binding?: PageBinding,
): Promise<ElementHandle<any> | null>
$<Selector extends string>(selector: Selector): Promise<ElementHandle<NodeFor<Selector>> | null>
$$<Selector extends string>(selector: Selector): Promise<Array<ElementHandle<NodeFor<Selector>>>>
$$eval<Selector extends string, Params extends unknown[], Func extends EvaluateFunc<[Array<NodeFor<Selector>>, ...Params]> = EvaluateFunc<[Array<NodeFor<Selector>>, ...Params]>>(
selector: Selector,
pageFunction: Func | string,
...args: Params,
): Promise<Awaited<ReturnType<Func>>>
$eval<Selector extends string, Params extends unknown[], Func extends EvaluateFunc<[ElementHandle<NodeFor<Selector>>, ...Params]> = EvaluateFunc<[ElementHandle<NodeFor<Selector>>, ...Params]>>(
selector: Selector,
pageFunction: Func | string,
...args: Params,
): Promise<Awaited<ReturnType<Func>>>
$x(expression: string): Promise<Array<ElementHandle<any>>>
addScriptTag(options: { url?: string; path?: string; content?: string; id?: string; type?: string; }): Promise<ElementHandle<any>>

Adds a script tag into the current context.

addStyleTag(options: { url?: string; path?: string; content?: string; }): Promise<ElementHandle<any>>

Adds a style tag into the current context.

adoptBackendNode(backendNodeId?: Protocol.DOM.BackendNodeId): Promise<JSHandle<any>>
adoptHandle<T extends JSHandle<any>>(handle: T): Promise<T>
clearContext(): void
click(selector: string, options: { delay?: number; button?: MouseButton; clickCount?: number; }): Promise<void>
content(): Promise<string>
document(): Promise<ElementHandle<any>>
evaluate<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>
evaluateHandle<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<HandleFor<Awaited<ReturnType<Func>>>>
focus(selector: string): Promise<void>
hasContext(): boolean
hover(selector: string): Promise<void>
select(selector: string, ...values: string[]): Promise<string[]>
setContent(html: string, options?: { timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; }): Promise<void>
tap(selector: string): Promise<void>
title(): Promise<string>
type(
selector: string,
text: string,
options?: { delay: number; },
): Promise<void>
waitForFunction(
pageFunction: Function | string,
options?: { polling?: string | number; timeout?: number; },
...args: unknown[],
): Promise<JSHandle>
waitForSelector<Selector extends string>(selector: Selector, options: WaitForSelectorOptions): Promise<ElementHandle<NodeFor<Selector>> | null>