How to use extract table data activity in income tax portal?


im trying to extract this cards by extract table data activity. but the activity is not executing. please help me to extract this, click the view notice and order button on each card.

Hey,
After table extraction check the selector of the activity.
Also, for each ui element or find children activities might be useful for clicking these buttons that you want.

Hi @Prabhakaran_Elango

This page is not a table, it is a card-based UI. Extract Table Data will not work. Use For Each UI Element to loop through all View Notices/Orders buttons and click them one by one.

Thank You

I have tried this solution, it clicks the 1st card, then i came back to this page the next cards are not getting clicked.

@Prabhakaran_Elango
Please Use index-based clicking or re-identify the elements after each navigation instead of storing UiElements.

Example

@Prabhakaran_Elango

This is happening due to after every click the page is being changed and DOM gets refreshed. So your code will work for first item and for the remaining will fail.

One possible solution would be:

  1. Use find children activity i.e. lstUiElements
  2. Use 'For Each Ui Element` activity and pass the output of the step 1
  3. Set For Each index variable i.e. intElementIndex
  4. Inside For Each goes your click and extraction logic for the particular item at intElementIndex
  5. Click back to the previous page
  6. Now use find children activity and assign output to - lstUiElements

@Prabhakaran_Elango

May I know what issue you are getting with extract table data is it not extracting or something else?

also easiest for your case would be use a selector with idx in it…increase the idx value starting from 1 till you dont find more items..this way you can click each button

example selector <webctrl tag=='button' innertext='View Notices/Orders*' idx='{{indexVariable}}' />

this is sample selector indicate one button you need to click and check the exact selector

cheers

I have used for each uielement activity and indicated the view notice and orders button, inside the loop I used click activity, in the value input element of click activity i put the current element to click. But no it seems like the activity is not working because inside the loop i used log message activity to debug the execution but no message is logged while execution. This is the problem im facing right now.

@Prabhakaran_Elango

The approach gicen above is completely different

And coming to for each not working looks like what you indicated is wrong

Cheers

Hi @Prabhakaran_Elango

Use Find Children activity on the container holding all cards, then For Each element in the output. Inside the loop, use Click activity with a selector relative to the current card to click the “View Notices/Orders” button. This way you handle each card individually since Extract Table Data won’t work here.