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