import { RootLocator } from '@serenity-js/web'; import type * as playwright from 'playwright-core'; type PageFunction = string | ((arg: Argument) => R | Promise); /** * Playwright-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/). * * @group Models */ export declare class PlaywrightRootLocator extends RootLocator { private readonly page; private currentFrame; constructor(page: playwright.Page); isPresent(): Promise; nativeElement(): Promise>; /** * Evaluates the given `pageFunction` in the context of the current frame. * See [`playwright.Frame.evaluate`](https://playwright.dev/docs/api/class-frame#frame-evaluate). * * @param pageFunction * @param arg */ evaluate(pageFunction: PageFunction, arg: Arguments): Promise; /** * Switches the current context to the frame identified by the given locator. * * @param frame */ switchToFrame(frame: playwright.Locator): Promise; /** * Switches the current context to the parent frame of the current frame. */ switchToParentFrame(): Promise; /** * Switches the context to the top-level frame. */ switchToMainFrame(): Promise; } export {}; //# sourceMappingURL=PlaywrightRootLocator.d.ts.map