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

x/pptr/src/FrameManager.ts>Frame#hover

Headless Chrome Deno API
Latest
method Frame.prototype.hover
import { Frame } from "https://deno.land/x/pptr@1.2.0/src/FrameManager.ts";

This method fetches an element with selector, scrolls it into view if needed, and then uses Page.mouse to hover over the center of the element.

Parameters

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

Returns

Promise<void>