@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
23 lines • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ByRole = void 0;
const Selector_1 = require("./Selector");
/**
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) by its [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
* [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
*
* **Pro tip:** Instantiate using [`By.role`](https://serenity-js.org/api/web/class/By/#role)
*
* @group Models
*/
class ByRole extends Selector_1.Selector {
value;
options;
constructor(value, options) {
super();
this.value = value;
this.options = options;
}
}
exports.ByRole = ByRole;
//# sourceMappingURL=ByRole.js.map