我需要在我的应用程序中自动化分页,方案是:'计算页数并迭代所有页面'并且'每页中的测试行数不应超过10'
<pagination-controls _ngcontent-c22="" autohide="false" class="my-pagination" directionlinks="true" id="allergyPagination" maxsize="5" ng-reflect-id="allergyPagination" ng-reflect-max-size="5" ng-reflect-direction-links="true" ng-reflect-auto-hide="false">
<pagination-template ng-reflect-id="allergyPagination" ng-reflect-max-size="5">
<!--bindings={
"ng-reflect-ng-if": "true"
}--><ul class="ngx-pagination" role="navigation" aria-label="Pagination">
<!--bindings={
"ng-reflect-ng-if": "true"
}--><li class="pagination-previous">
<!--bindings={
"ng-reflect-ng-if": "true"
}--><a aria-label="Previous page">
Previous <span class="show-for-sr">page</span>
</a>
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
</li>
<!--bindings={
"ng-reflect-ng-for-of": "[object Object],[object Object"
}--><li>
<!--bindings={
"ng-reflect-ng-if": "true"
}--><a>
<span class="show-for-sr">page </span>
<span>1</span>
</a>
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
</li><li>
<!--bindings={
"ng-reflect-ng-if": "true"
}--><a>
<span class="show-for-sr">page </span>
<span>2</span>
</a>
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
</li><li class="current">
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
<!--bindings={
"ng-reflect-ng-if": "true"
}--><div>
<span class="show-for-sr">You're on page </span>
<span>3</span>
</div>
</li><li>
<!--bindings={
"ng-reflect-ng-if": "true"
}--><a>
<span class="show-for-sr">page </span>
<span>4</span>
</a>
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
</li><li>
<!--bindings={
"ng-reflect-ng-if": "true"
}--><a>
<span class="show-for-sr">page </span>
<span>5</span>
</a>
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
</li>
<!--bindings={
"ng-reflect-ng-if": "true"
}--><li class="pagination-next">
<!--bindings={
"ng-reflect-ng-if": "true"
}--><a aria-label="Next page">
Next <span class="show-for-sr">page</span>
</a>
<!--bindings={
"ng-reflect-ng-if": "false"
}-->
</li>
</ul>
</pagination-template>
</pagination-controls>
请帮助。我经历了这个“How to test Pagination feature using Protractor”,但在我的场景中我无法成功实现。