@serenity-js/web
Version:
Serenity/JS Screenplay Pattern library offering a flexible, web driver-agnostic approach for interacting with web-based user interfaces and components, suitable for various testing contexts
24 lines • 1.39 kB
TypeScript
import util from 'node:util';
import type { Optional } from '@serenity-js/core';
/**
* [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/) represents the context in which [`Locator`](https://serenity-js.org/api/web/class/Locator/) looks for [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElements/).
* This context is either a parent element, or some representation of the top-level browsing context.
*
* ## Learn more
* - [`Locator`](https://serenity-js.org/api/web/class/Locator/)
* - [`Page.locate`](https://serenity-js.org/api/web/class/Page/#locate)
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElements/)
*
* @group Models
*/
export declare abstract class RootLocator<Native_Element_Type> implements Optional {
abstract switchToFrame(element: Native_Element_Type): Promise<void>;
abstract switchToParentFrame(): Promise<void>;
abstract switchToMainFrame(): Promise<void>;
abstract isPresent(): Promise<boolean>;
abstract nativeElement(): Promise<Partial<Native_Element_Type>>;
toString(): string;
[util.inspect.custom]: (depth: number, options: util.InspectOptionsStylized, inspect: typeof util.inspect) => string;
}
//# sourceMappingURL=RootLocator.d.ts.map