puppeteer/website/versioned_docs/version-19.2.0/api/puppeteer.elementhandle.focus.md
2022-10-26 09:51:16 +02:00

295 B

sidebar_label
ElementHandle.focus

ElementHandle.focus() method

Calls focus on the element.

Signature:

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

Returns:

Promise<void>