import { DOMWorld } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
Constructors
Properties
_waitTasks: Set<WaitTask>
Methods
_detach(): void
_document(): Promise<ElementHandle>
_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>(): Promise<WrapElementHandle<ReturnType>>
selector: string,
pageFunction: (elements: any[], ...args: unknown[]) => ReturnType | Promise<ReturnType>,
...args: SerializableOrJSHandle[],
$eval<ReturnType>(): Promise<WrapElementHandle<ReturnType>>
selector: string,
pageFunction: (element: any, ...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; 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>
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>