Resources

Knowledge Base

Intercept User Events

user_events

Task

This sample saves the total expense from "ExpenseIt" application in a file when the "Ok" button is clicked.

Steps to automate

  1. Open the Expenseit application.
  2. When the user presses the OK button inside the app scrape the amount text.
  3. Save the result in a text file.

Solution

  1. Open the app using Open application activity.
  2. Add an On click user event linked to the OK button.
  3. Inside the On Click sequence add the activity for scraping the result text
  4. Add an Append to file activity for writing the result to a text file.

2014-08-21_1738

2014-08-21_1738_001