import { menuButtonTag } from '../../../menu-button';
import { MenuButtonPageObject } from '../../../menu-button/testing/menu-button.pageobject';
/**
 * Page object for `nimble-table-column-menu-button`.
 */
export class TableColumnMenuButtonPageObject {
    constructor(tablePageObject) {
        this.tablePageObject = tablePageObject;
    }
    getMenuButton(rowIndex, columnIndex) {
        const cellView = this.tablePageObject.getRenderedCellView(rowIndex, columnIndex);
        const menuButtonElement = cellView.shadowRoot.querySelector(menuButtonTag);
        return menuButtonElement
            ? new MenuButtonPageObject(menuButtonElement)
            : null;
    }
}
//# sourceMappingURL=table-column-menu-button.pageobject.js.map