In advance to explain it, DataScraping activity doesn’t work here.
I’m working on project to automate tasks now. My client has their own windows programs. One of them, I guess it’s developed by MFC or something.
So I need to extract data from table in that app. I inspected into selector of the table, and found column headers and rows in sub trees.
I want to use those information to find how many rows table has. Actually, I couldn’t bring sources out cuz of security. Even, screenshot as well.
Every Cell in the table has their own index. So If I knew rows’ count, I can extract data by looping certain count.
I know it’s very tricky to answer without showing data.
Plz give me some advices
Thx to answer
Actually, I’m trying to use find children activity now.
But it isn’t easy to use it.
I filtered some elements using that activity. But I couldn’t get rows’ count tho.
If you have some guidance of find children activity, could you let me know?
Thx to advice. But Data Scraping Activity doesn’t work to the App. It’s made by C/C++ language and I guess this kind of app can’t be extracted by Data Scraping Activity. So I can’t help finding another way to scrap it
Find Children returns all descendant elements of the table which align to the value in the activity’s filter property ( e.g. "<webctrl idx='1' parentid='overview' tag='P' />" ). This is output to a list variable. You should edit the filter to align to whatever identifies a row in your table combined with a wildcard (e.g. “<webctrl row=*”).
Each item in this list, which is a UiPath.Core.Uielement object. In your case, these objects are instances of rows. To see if you are on the correct path, output the selectors for the elements collected using a For Each loop on the variable and write each item selector to a text file (item.selector.tostring). Maybe post the output here so we can help you understand it.
If all is well, then each object represents a row and a simple count of the number of objects in the list variable will provide you the number of rows in the table.
Its worth the effort to understand how the activity works so well done. It is very flexible in terms of what it can be used for and once you understand how it works, you’ll find a place for it in many different automation projects.