Robotic Process Automation – Web Automation Example

I have used RPA web automation to get the days exchange rates for five currencies. This is a quick example of what is possible. A lot more can be done with this and it’s so simple to use.

All my RPA scripts can be found in my Github

The process of the script is;
1. Open chrome and go to https://www.x-rates.com/table/?from=USD&amount=1
2. Pick out the currencies; Euro, GBP, AUD, CAD and Yen in the table#
3. Print out those rates in the console
4. Close Chrome
5. Add the currencies to a dictionary and list
6. Write that list to a CSV file

Script

Script Output Console

Script Output CSV

Extra Info

What I haven’t talked about yet is how I have made the script get the currencies I want. If we look at the web page we see a lot of currencies. How does RPA know which ones are which?
The answer is that the script is told what to read using Xpaths.

Useful link for identifying elements
https://www.linkedin.com/posts/kensoh_xpath-rpa-tagui-activity-6829673864633704448-Iw-D/
https://github.com/tebelorg/RPA-Python#element-identifiers

Othe rexamples of Xpaths are;

Google Search Box. This is searching the page for the name of “q”. And on the Google page this name is the search box.

Highlighted you will see name=”q”

Another example is the search on SSL Labs. This is the exact same as Google, but this search bar is called “d”.

Highlighted you will see name=”d”

Leave a Comment

Your email address will not be published. Required fields are marked *