FrameFrame.focusVersion: 19.6.3On this pageFrame.focus() methodFocuses the first element that matches the selector.Signature:class Frame { focus(selector: string): Promise<void>;}ParametersParameterTypeDescriptionselectorstringThe selector to query for.Returns:Promise<void>ExceptionsThrows if there's no element matching selector.