"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OjSlider = void 0;
const OjSliderBase_1 = require("./OjSliderBase");
/**
 * The component WebElement for [oj-slider](../../jsdocs/oj.ojSlider.html).
 * Do not instantiate this class directly, instead, use
 * [ojSlider](../functions/elements.ojSlider-1.html).
 */
class OjSlider extends OjSliderBase_1.OjSliderBase {
    /**
     * Sets the value of "value" property.
     * The numerical value of the slider.
     * @param value The value to set for "value"
     */
    async changeValue(value) {
        // Call focus() on the root element
        await this.getDriver().executeScript('arguments[0].focus()', this);
        // Only mutate if not disabled
        const disabled = await this.getDisabled();
        if (!disabled) {
            return this.setProperty('value', value);
        }
    }
}
exports.OjSlider = OjSlider;
//# sourceMappingURL=OjSlider.js.map