Skip to main content
Version: 17.0.0

ElementHandle.focus() method

Calls focus on the element.

Signature:

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

Returns:

Promise<void>