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