I have a web page, that has a table, that uses a pager, and that have different filters to filter the columns. The table contains 50 rows per page.
After applying a filter I want to count how many rows the filter has returned; to do so I need to go through all the pages that are available and for each page count the number of the rows that are there.
To go to the next page I have an right arrow >
that I can click on. When I am on the last page, the arrow becomes disabled and I can no longer click on it.
My question is: is there a way to test if the arrow is still clickable?
I should mention that my home page uses AngularJS
to populate the table, so I use ng-click
and give it a method that load the next page of the table.
while
loop that tested if the arrow was still visible and was getting an infinite loop, and saw that the condition will always be true as the arrow is never hidden. So I tried an other approche with anif
statement. @TESTasy