Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Frame#focus

Headless Chrome Deno API
Latest
method Frame.prototype.focus
Re-export
import { Frame } from "https://deno.land/x/pptr@1.2.0/mod.ts";

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>