focus

suspend fun focus(args: DOM.FocusParameter, mode: CommandMode = CommandMode.DEFAULT)

Focuses the given element.


suspend fun focus(nodeId: Int? = null, backendNodeId: Int? = null, objectId: String? = null)

Focuses the given element.

Parameters

nodeId

Identifier of the node.

backendNodeId

Identifier of the backend node.

objectId

JavaScript object id of the node wrapper.