import { DOMWorld } from "https://deno.land/x/pptr@1.2.0/mod.ts";
Constructors
Properties
private
_contextPromise: Promise<ExecutionContext> | nullprivate
_contextResolveCallback: ((x: ExecutionContext) => void) | nullprivate
_documentPromise: Promise<ElementHandle> | nullprivate
_frame: Frameprivate
_frameManager: FrameManagerprivate
_timeoutSettings: TimeoutSettings_waitTasks: Set<WaitTask>
Methods
private
_onBindingCalled(event: Protocol.Runtime.BindingCalledEvent): Promise<void>_detach(): void
_document(): Promise<ElementHandle>
_hasContext(): boolean
_setContext(context?: ExecutionContext): Promise<void>
$(selector: string): Promise<ElementHandle | null>
$$(selector: string): Promise<ElementHandle[]>
$$eval<ReturnType>(): Promise<WrapElementHandle<ReturnType>>
selector: string,
pageFunction: (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType>,
...args: SerializableOrJSHandle[],
$eval<ReturnType>(): Promise<WrapElementHandle<ReturnType>>
selector: string,
pageFunction: (element: Element, ...args: unknown[]) => ReturnType | Promise<ReturnType>,
...args: SerializableOrJSHandle[],
$x(expression: string): Promise<ElementHandle[]>
addBindingToContext(context: ExecutionContext, name: string): Promise<void>
addScriptTag(options: { url?: string; path?: string; content?: 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>
executionContext(): Promise<ExecutionContext>
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(): Promise<void>
selector: string,
text: string,
options?: { delay: number; },
waitForFunction(): Promise<JSHandle>
pageFunction: Function | string,
options?: { polling?: string | number; timeout?: number; },
...args: SerializableOrJSHandle[],
waitForSelector(selector: string, options: WaitForSelectorOptions): Promise<ElementHandle | null>
waitForSelectorInPage(): Promise<ElementHandle | null>
waitForXPath(xpath: string, options: WaitForSelectorOptions): Promise<ElementHandle | null>