Skip to content

How to check if Next button //*[@id="tableSandbox_next"] is disabled on https://rpachallengeocr.azurewebsites.net/ #568

@Uohzhcim

Description

@Uohzhcim

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions