Having trouble validating a web table with nested ng-repeats. Specifically, struggling to extract data from the match column due to the structure of the table. Each row has multiple ng-repeats for columns. Looking for guidance on creating a method to validate this kind of table setup.
<div class="data">
<table class="table table-striped table-hover ng-scope">
<tbody>
<!-- ngRepeat: row in table.filtered track by table.idPropertyFn(row) -->
<tr ng-repeat-start="row in table.filtered track by table.idPropertyFn(row)" ng-class="table.getRowClasses(table.idPropertyFn(row), $index+1)" id="3-1-row" class="ng-scope odd">
<td class="column-checkbox">
<label>
...
(original table code omitted for brevity)
...
</span>
</td>
</tr>
</tbody>
Struggling with the current method as it doesn't handle columns with multiple ng-repeats. Here's the snippet of code I'm using:
validateMatchRuleTable: function() {
element.all(by.repeater(versionLocators.constants.selectAllRowsFromTable_repeater)).then(function(numOfRows){
for (var i = 0; i <numOfRows.length; i++) {
var rows = element.all(by.repeater(versionLocators.constants.selectAllRowsFromTable_repeater).row(i));
var cellTexts = rows.map(function (elm) {
return {
name: elm.element(by.binding(versionLocators.constants.matchRuleNameColumn_css)).getText().then(function (text) {
return text;
}),
});
}
});
},
Seeking advice on how to include the additional column named "match" which contains an ng-repeat (match in row.matches) within the same validation method. Apologies for the lengthy post and thank you in advance!