Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Frame.prototype.focus
import { Frame } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/FrameManager.js";

This method fetches an element with selector and focuses it.

Parameters

selector: string
  • the selector for the element to focus. If there are multiple elements, the first will be focused.

Returns

Promise<void>