I am using protractor to retrieve data from filtered rows of an ag-grid. In ag-grid 25, objects that are present in the DOM are not being found and are generating script errors. In the following code the ColumnHambugerMenu for the specified column is clicked. An error is thrown when trying to click the ColumnFilterIcon even though it exists in the DOM
filterSingleEventRow: async function (stringToFilter, columnName) {
try {
await browser.wait(EC.presenceOf(GridColumnHeader), 12000);
await ColumnHamburgerMenu(columnName).click();
await ColumnFilterIcon.click();
...
where
GridColumnHeader = element(by.xpath('.//div[contains(@class, "ag-header")]'));
ColumnHamburgerMenu = element(by.xpath('.//div[@col-id= "' + columnName + '"]//span[(@ref= "eMenu")]'));
ColumnFilterIcon = element(by.xpath('//div[(@ref="eHeader")] //span[(@class="ag-icon ag-icon-filter")]'));