Files
browser-automation-botGitHubrelease-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
4d7b677d1d chore: release main (#15201)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2026-07-27 14:29:23 +02:00

532 B

sidebar_label
sidebar_label
Frame.focus

Frame.focus() method

Focuses the first element that matches the selector.

Signature

class Frame {
  focus(selector: string): Promise<void>;
}

Parameters

Parameter

Type

Description

selector

string

The selector to query for.

Returns:

Promise<void>

Exceptions

Throws if there's no element matching selector.