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

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

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

Parameters

selectorOrFunctionOrTimeout: string | number | Function
  • a selector, predicate or timeout to wait for.
optional
options: { visible?: boolean; hidden?: boolean; timeout?: number; polling?: string | number; }
  • optional waiting parameters.
  • arguments to pass to pageFunction.