Skip to main content
Version: 15.4.0

ElementHandle.focus() method

Calls focus on the element.

Signature:

class ElementHandle {
focus(): Promise<void>;
}

Returns:

Promise<void>