Studio
2023.10
false
Banner background image
Studio User Guide
Last updated Apr 26, 2024

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).


  9. Add a Click activity below and indicate the magnifying glass button next to the search field. This brings up the UiPath® page in Wikipedia.
  10. Use the Screen Scraping wizard to scrape the text you want. In this case, we scrape the entire History section.
  11. 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.
  12. From the Variables panel, change the scope of the P variable to sequence, so that it can be used later on.


  13. (Optional) Add a Close Application activity below the Screen Scraping container. Use Indicate on screen to select Internet Explorer.
  14. 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.
  15. Add a Type Into activity. Use Indicate on screen to select the editable text space inside the Output.txt file.
  16. Set the Text property to P (without quotes). This pastes the scraped text, which is contained in the variable, inside the Output.txt file.
  17. (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.
  18. (Optional) Add a Close Application activity and use Indicate on screen to select Notepad.
  19. 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.


Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.