How to scrape data using the Get Value Activity
Scraping number values in WPF applications using Get Value
Let's take the ExpenseIT application as an example( here is a link to the Official Website of the ExpenseIT Application, from where you can download it: http://www.expenseit.com ) . We will try to extract the total expense amount. The number showing as 527 is an image format and cannot be selected through a simple mouse click. So the regular click and select activity won't work with this one.
To scrape this data, we can use the Get Value activity. This activity allows you to get the text value of the specified UI object. To use this activity, the first option is to simply search for this activity in the Activities panel and drag and drop it into your workflow.
The second option is to use the Macro recorder.
Step 1. Start by opening the Macro Recording tool and clicking the Record button from the Design menu.
Step 2. Select Control and click Get Value.
Step 3. The next thing we will do is to highlight the total expense. The number will automatically be selected. Click on it.
Step 4. That's it! You can now save the recording. This will automatically create a recording sequence where it will scrape the Total Expense amount from the App.