"use strict";
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Object.defineProperty(exports, "__esModule", { value: true });
exports.clickStylePropertyEditorButton = clickStylePropertyEditorButton;
exports.clickPropertyButton = clickPropertyButton;
const chai_1 = require("chai");
async function clickStylePropertyEditorButton(title, editorElement, devToolsPage) {
    const gridEditorButtons = await devToolsPage.$$(`[title="${title}"]`);
    chai_1.assert.lengthOf(gridEditorButtons, 1);
    await devToolsPage.click(`[title="${title}"]`);
    await devToolsPage.waitFor(editorElement);
}
async function clickPropertyButton(selector, devToolsPage) {
    await devToolsPage.waitFor(selector);
    const buttons = await devToolsPage.$$(selector);
    chai_1.assert.lengthOf(buttons, 1);
    await devToolsPage.click(selector);
}
//# sourceMappingURL=style-property-editor-helpers.js.map