Subscribe

UiPath Studio

The UiPath Studio Guide

Example of RDP Automation

To illustrate native RDP support, we created an automation process which interacts with a web browser, navigates to a particular page, scrapes text, and saves it in an existing text file which is on a folder on the remote machine's desktop. For the sake of this example, we use Internet Explorer as our web browser and Notepad to save the scraped text.

  1. On the Remote Desktop machine, open Internet Explorer.
  2. In a new Blank Process, add an Open Application activity.
  3. Click Indicate on screen and select the Internet Explorer instance.
  4. In the Do container, add a Type Into activity. Use Indicate on screen to select the browser address field. Ideally, enable the ClickBeforeTyping option.
  5. In the Text property, write "https://en.wikipedia.org/wiki/Main_Page" (between quotes).
  6. Add a Click activity below and indicate the right arrow button of the address bar. This brings you to the specified web page.
  7. Add another Type Into activity. Use Indicate on screen to select the search field inside the web page.
  8. Set the Text property to "UiPath" (between quotes).
  1. Add a Click activity below and indicate the magnifying glass button next to the search field. This brings up the UiPath page in Wikipedia.
  2. Use the Screen Scraping wizard to scrape the text you want. In this case, we scrape the entire History section.
  3. When you're satisfied with the selected text, click the Finish button. A Screen Scraping container is added below the Open Application container. Inside, you find a Do container with a Get Full Text activity. A new P generic value variable is created which holds the scraped text.
  4. From the Variables panel, change the scope of the P variable to sequence, so that it can be used later on.
  1. (Optional) Add a Close Application activity below the Screen Scraping container. Use Indicate on screen to select Internet Explorer.
  2. Add two Double Click activities.
    14.1. Configure the first one to double click the Data folder on the desktop to open it.
    14.2. Configure the second one to double click the Output.txt file inside the Data folder.
  3. Add a Type Into activity. Use Indicate on screen to select the editable text space inside the Output.txt file.
  4. Set the Text property to P (without quotes). This pastes the scraped text, which is contained in the variable, inside the Output.txt file.
  5. (Optional) Add a Send Hotkey activity and set the key combination to Ctrl + S. This is done to save the file. Ideally, enable the ClickBeforeTyping option to ensure Notepad is in focus when the hotkey command is sent.
  6. (Optional) Add a Close Application activity and use Indicate on screen to select Notepad.
  7. Press F5 to run the process. Notice how Internet Explorer is opened, navigates to Wikipedia, scrapes the History category from the UiPath page, and pastes it inside a text file from a desktop folder.

Updated 2 years ago

Example of RDP Automation


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.