https://rpachallengeocr.azurewebsites.net/
on Page 1 & 2
...
<a class="paginate_button next" aria-controls="tableSandbox" data-dt-idx="4" tabindex="0" id="tableSandbox_next">Next
...
on Page 3 (last page of table)
...
<a class="paginate_button next disabled" aria-controls="tableSandbox" data-dt-idx="4" tabindex="0" id="tableSandbox_next">Next
...
import rpa as r
def nextBtnEnabled():
#check if the Next button is disabled (end of table)
-> btnStatus = r.read("#tableSandbox_next") #Error, Nothing is read...
return btnStatus
Expected behavior: Find that button is disabled on Page 3 so stop getting more invoice rows.
Actural behavior: No way to check whether or not the button is enabled or disabled with tagui for python.
Question: How to check that the invoice table is reaching last page?