Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Frame.prototype.waitFor
Deprecated
Deprecated

Don't use this method directly. Instead use the more explicit methods available: Frame.waitForSelector, Frame.waitForXPath, Frame.waitForFunction or Frame.waitForTimeout.

import { Frame } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/FrameManager.d.ts";

Parameters

selectorOrFunctionOrTimeout: string | number | Function
  • a selector, predicate or timeout to wait for.
optional
options: Record<string, unknown>
  • optional waiting parameters.
  • arguments to pass to pageFunction.

Returns

Promise<JSHandle | null>