Not able to get the values of a sorted ag-grid column in an array using Protractor and Typescript
问题 I have to verify the sorting function in an ag-grid. When the UI is opened, the column data will be in some order. I am sorting it in ascending order and then storing the values in a array. ag_grid_utils.clickOnHeader("Name"); var testArr=[]; element.all(by.css('div.ag-body-container div[col-id="Name"]')) .map(function (Element) { element.getText().then(function (result) { console.log("result :: "+result); testArr.push(result); }); }) However when I print the array, the values are not sorted.