Skip to main content
Navigator | Tier 3
August 17, 2022
Question

Click on each page to extract data from we table

  • August 17, 2022
  • 6 replies
  • 453 views

How can I capture data from each webpage where paging is there

 

image

    6 replies

    Zaibi
    Navigator | Tier 3
    August 17, 2022

    Hi @Prankur Joshi​ 

     

    Pagination is apply here, Using for loop and Capture the paging table set DOMXPath as pages run dynamically.

    Zaibi
    Cadet | Tier 2
    August 18, 2022

    Hi

     

    First, you need to build the logic to identify the number of pages on the webpage and navigate through all the pages- as I can see previous and next option has disable/enable function, you can utilize that to run in a loop till the object is available.

     

    Now you can extract each table from the web page using the ID eg: \table[1],\table[2],..... which would be dynamic.

     

    Regards

    Kartheek T C

    PrankurJAuthor
    Navigator | Tier 3
    August 18, 2022

    Thanks @chenchu kartheek Talahari​ for the reply.

     

    However I have found a better way to do this, with while loop and object exists condition, it should work fine without worrying about how many pages are there.

    Ashwin A.K
    Navigator | Tier 3
    August 19, 2022

    Hi @Prankur Joshi​ ,

     

    Try studying the Object Properties(Ctrl+Shift+I) of the Next Button.

    There is a good chance that as soon as it reaches the last page, the button becomes Disabled.

     

    You can use a Loop: While: Object Condition for the bot to keep iterating as long as the button is Active.

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    PrankurJAuthor
    Navigator | Tier 3
    August 19, 2022

    Yes @Ashwin A.K​ I did, thank you for your reply.

    Navigator | Tier 3
    July 18, 2023

    Hello @PrankurJ , I am using while loop but it doesn’t extract the last datatable in the last page.