PagePage.locator_1Version: 22.14.0On this pagePage.locator() method Creates a locator for the provided function. See Locator for details and supported actions. Signature: class Page { locator<Ret>(func: () => Awaitable<Ret>): Locator<Ret>;} Parameters ParameterTypeDescriptionfunc() => Awaitable<Ret> Returns: Locator<Ret>