focus method
Focuses the given element.
nodeId
Identifier of the node.
backendNodeId
Identifier of the backend node.
objectId
JavaScript object id of the node wrapper.
Implementation
Future<void> focus(
{NodeId? nodeId,
BackendNodeId? backendNodeId,
runtime.RemoteObjectId? objectId}) async {
await _client.send('DOM.focus', {
if (nodeId != null) 'nodeId': nodeId,
if (backendNodeId != null) 'backendNodeId': backendNodeId,
if (objectId != null) 'objectId': objectId,
});
}