Skip to main content
Version: 16.2.0

ElementHandle.focus() method

Calls focus on the element.

Signature:

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

Returns:

Promise<void>