I have a table in the browser and need to download a file in each row.
The table has a different number of data sets, depending on the settings.
Shall I use Screen Scraping, create a data table and iterate through each line?
Is it possible? How do I get the data from the Sceen Scraping in a data table?
I am beginner and appreciate all kind of help.
Thank you so much.
Katarina
You can use DATA SCRAPPING method which will help you to scrap the required text or URLs from the browser and get the output as datatable itself
If you are trying to use screen scrapping it will give string as a output
Pass that string variable to a GENERATE DATATABLE activity AND get the output as dt
For example pls refer this
Once after getting the URL then you can use simple activities in UiPath to download file
But pls mention how will you download the files manually
for me it seems to be quite static - so how to deal with it when the number of the data sets changes? Or am I wrong?
for now, i was working with the Click activities to download the file. How am I supposed to do it now since I am not able to click on the first row in the second column …
And for this
You can use the same with click activity just by creating a variable in selector and pass the column row values one by one to that variable inside a for each row loop
Steps involved
— for each row -pass th datatable as input
—inside the loop use a assign activity and pass the specific column value to a variable
—next use a click activity and pass that variable in the selector
Now it will click one by one and download it
Pls let know for any queries
If this gets clarified it would be great if you can mark the right comment as solution with tick mark so that it will be useful for others
It iterates through the rows and also assigns the columns to the variables.
But still for each row it downloads just the first file.
So in the click activity I tried to pass a variable (the onclick) in the selector but it does not work. It says: the selector is invalid. But the onclick event changes every row so I passed this to a variable and put it in the selector.