UNPKG

@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

28 lines 1.33 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RootLocator = void 0; const node_util_1 = __importDefault(require("node:util")); const io_1 = require("@serenity-js/core/lib/io"); /** * [`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 */ class RootLocator { toString() { return 'root locator'; } [node_util_1.default.inspect.custom] = (0, io_1.inspectedObject)(this, []); } exports.RootLocator = RootLocator; //# sourceMappingURL=RootLocator.js.map