Skip to main content
Go to Latest
class DOMWorld
Re-export
import { DOMWorld } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";

Constructors

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

Properties

private
_client
private
optional
_contextPromise
private
optional
_contextResolveCallback
private
_ctxBindings
private
_detached
private
optional
_documentPromise
private
_frame
private
_frameManager
private
_onBindingCalled
private
_settingUpBinding
private
_timeoutSettings
_boundFunctions: Map<string, Function>
_waitTasks: Set<WaitTask>

Methods

_detach(): void
_hasContext(): boolean
_setContext(context?: ExecutionContext): Promise<void>
$<T extends any = any>(selector: string): Promise<ElementHandle<T> | null>
$$<T extends any = any>(selector: string): Promise<Array<ElementHandle<T>>>
$$eval<ReturnType>(
selector: string,
pageFunction: (elements: any[], ...args: unknown[]) => ReturnType | Promise<ReturnType>,
): Promise<WrapElementHandle<ReturnType>>
$eval<ReturnType>(
selector: string,
pageFunction: (element: any, ...args: unknown[]) => ReturnType | Promise<ReturnType>,
): Promise<WrapElementHandle<ReturnType>>
$x(expression: string): Promise<ElementHandle[]>
addBindingToContext(context: ExecutionContext, name: string): Promise<void>
addScriptTag(options: { url?: string; path?: string; content?: string; id?: string; type?: string; }): Promise<ElementHandle>

Adds a script tag into the current context.

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

Adds a style tag into the current context.

click(selector: string, options: { delay?: number; button?: MouseButton; clickCount?: number; }): Promise<void>
content(): Promise<string>
evaluate<T extends EvaluateFn>(pageFunction: T, ...args: SerializableOrJSHandle[]): Promise<UnwrapPromiseLike<EvaluateFnReturnType<T>>>
evaluateHandle<HandlerType extends JSHandle = JSHandle>(pageFunction: EvaluateHandleFn, ...args: SerializableOrJSHandle[]): Promise<HandlerType>
focus(selector: string): Promise<void>
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; },
): Promise<JSHandle>
waitForSelector(selector: string, options: WaitForSelectorOptions): Promise<ElementHandle | null>
waitForSelectorInPage(
queryOne: Function,
selector: string,
binding?: PageBinding,
): Promise<ElementHandle | null>
waitForXPath(xpath: string, options: WaitForSelectorOptions): Promise<ElementHandle | null>

Static Properties

private
bindingIdentifier