/**
 * Page object for table columns that format their text for display.
 */
export class TableColumnFormattedTextPageObject {
    constructor(tablePageObject) {
        this.tablePageObject = tablePageObject;
        // When text is localized to different languages, the space character
        // can get changed to a different unicode variant. This regular expression
        // matches both known unicode variants so we can change them back to a
        // regular space to perform consistent checks for testing purposes.
        this.spaceUnicodeCharsRegEx = /\u202f|\u00a0/g;
    }
    getRenderedCellContent(rowIndex, columnIndex) {
        return this.tablePageObject
            .getRenderedCellTextContent(rowIndex, columnIndex)
            .replace(this.spaceUnicodeCharsRegEx, ' ');
    }
    getRenderedGroupHeaderContent(groupRowIndex) {
        return this.tablePageObject
            .getRenderedGroupHeaderTextContent(groupRowIndex)
            .replace(this.spaceUnicodeCharsRegEx, ' ');
    }
    getCellTitle(rowIndex, columnIndex) {
        this.verifyCellType(rowIndex, columnIndex);
        return this.tablePageObject
            .getCellTitle(rowIndex, columnIndex)
            .replace(this.spaceUnicodeCharsRegEx, ' ');
    }
}
//# sourceMappingURL=table-column-formatted-text.pageobject.js.map