FrameFrame.focusVersion: 21.3.8On 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.