I have to compare the table values from an accounting software with a CSV file. If I am not wrong, the way to do it is to use Data Scraping on the table.
The issue comes when the window to view the table cannot be maximised, thus I can only scrape a limited amount of rows since I cannot view more past the 10 first rows unless I scroll down the table.
My superior told me to use Add Data Row to add the rows that Data Scraping couldn’t get, but how could that be done? I am totally lost.
Does this mean I have to do Data Scraping over and over again? Would that allow for flexibility with the scrapped data? The entries for the table changes, so I need to do must be dynamic/flexible.
First think is just indicate the table in the Ui-Explorer and check in the Visual tree of all the rows of the table are available without scroll (you may not see on the screen but still those would been rendered already on the screen)
If that is confirmed from above, You can use Find Children activity to scrape the entire table data.
is there a scroll down button or something?
If there is you can capture the selector(using a click activity or something)
then expand target section in properties and copy the selector here
Would it be troublesome if I ask for an example of how that would be done? Since I need to make it into DataTable to allow comparison between the two, would that mean I have to generate Data Table after Find Children?
But if you can confirm me that first point which I mentioned like if the elements are available on the visual tree of Ui-Explorer even before scrolling ?
It only shows as 10 rows, and I noticed even when I scrolled down more it’s the same. At first I thought it didn’t register the other rows but since it’s the UI, it can only show as 10 rows, right?
This is how it looks on the software. (There are one more row after what you see here).
compare last row of table to last row of previous table String.join(","c, extractedDt.Rows(extractedDt.Rows.Count-1).ItemArray).equals(String.join(","c, prevDt.Rows(prevDt.Rows.Count-1).ItemArray))
if rows are equal, means we cannot scroll down anymore, so break out of loop
if rows not equal, merge the current extracted table with previous one.
Thank you so much!! I’m like halfway understanding what you’re getting at I think.
So the data scraping would be in the While loop yes?
Do I insert this as the condition? Do I just copy paste what you’ve graciously given me or is there words I have to change so I can use it? I suppose it doesn’t help I know no VB.Net.
This if it’s not equal I use Merge DataTable, right?
Is the clicking down arrow to repeat the Data Scrapping?
Are you using Data Scarping which is at the ribbon in the studio. if you use this, it can extract the same pattern of information without scrolling down