"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OjMessage = void 0;
const OjMessageBase_1 = require("./OjMessageBase");
/**
 * The component WebElement for [oj-message](../../jsdocs/oj.ojMessage.html).
 * Do not instantiate this class directly, instead, use
 * [ojMessage](../functions/elements.ojMessage-1.html).
 */
class OjMessage extends OjMessageBase_1.OjMessageBase {
    /**
     * Dismiss the message
     */
    async doClose() {
        await this.whenReady();
        await this.getDriver().executeScript('arguments[0].close()', this);
        await this.whenBusyContextReady();
    }
}
exports.OjMessage = OjMessage;
//# sourceMappingURL=OjMessage.js.map