Skip to main content
Version: 21.1.1

ElementHandle.hover() method

This method scrolls element into view if needed, and then uses Page to hover over the center of the element. If the element is detached from DOM, the method throws an error.

Signature:

class ElementHandle {
hover(this: ElementHandle<Element>): Promise<void>;
}

Parameters

ParameterTypeDescription
thisElementHandle<Element>

Returns:

Promise<void>