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

20 lines 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ByXPath = void 0; const Selector_1 = require("./Selector"); /** * Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using an [XPath selector](https://developer.mozilla.org/en-US/docs/Web/XPath). * * **Pro tip:** Instantiate using [`By.xpath`](https://serenity-js.org/api/web/class/By/#xpath) * * @group Models */ class ByXPath extends Selector_1.Selector { value; constructor(value) { super(); this.value = value; } } exports.ByXPath = ByXPath; //# sourceMappingURL=ByXPath.js.map