<img src="//trc.taboola.com/1222697/log/3/unip?en=page_view" width="0" height="0" style="display:none">


The Knowledgebase articles are deprecated. Please visit the new Guides and Resources here: https://www.uipath.com/developers/guides-and-resources.

Knowledge Base

Intercept User Events



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.


  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.