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