UNPKG

@o3r/testing

Version:

The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.

26 lines 816 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.O3rSelectElement = void 0; const element_1 = require("../element"); /** * Implementation dedicated to Playwright. */ class O3rSelectElement extends element_1.O3rElement { constructor(sourceElement) { super(sourceElement); } /** @inheritdoc */ selectByIndex(index, _timeout) { return this.sourceElement.element.selectOption({ index }); } /** @inheritdoc */ selectByValue(value, _timeout) { return this.sourceElement.element.selectOption({ value }); } /** @inheritDoc */ async getValue() { return this.sourceElement.element.locator('option:checked').inputValue(); } } exports.O3rSelectElement = O3rSelectElement; //# sourceMappingURL=select-element.js.map