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