Web Macro Exercise - Get Interest Rate
Use an RPA Web Macro to pull an interest rate from a bank website
Instructions
Create the Job and Task
- In the RPA Tray Client, click Add Job.
- Within the new Job add a new Web Macro Task
Create a User Variable
- Navigate to the Variables section (bottom left of the interface).
- Click Add a User Variable.
- Name the variable: 30YearFixedRate.
- Set the initial value to TEST.
- Click Add to create the variable.
- Confirm the variable appears with the correct name and value.
- Click Close.
Record the Automation Steps
- Navigate to Web Macro > Actions to view the Action Sequence
You have two options:
info
In this exercise we will use the Record Feature
Drag and Drop: Manually drag actions from the left panel to the right sequence panel.
or
Record Feature (Recommended):
- Click the Record button.
- If a new window opens on another screen, drag it into view.
- Begin recording your actions.
Navigate to the Target Website
- In the recording window, go to citi.com.
Observe that:
- Actions are logged on the right.
- As you hover over elements, OpCon RPA highlights what it will capture.
Capture the Mortgage Rate
- Navigate to Home Lending.
- Click on 'View Purchase Rates', scroll to find the 30-year fixed rate.
- Right-click the rate and select Add Extract Data Action.
- On the Extract data tab, select and confirm the element (e.g., “InnerText: 6.75”) is correctly identified.
- Select the Destination tab and set the destination to the 30 year fix rate variable.
- Click OK to confirm.
- Stop the recording.
Save and Test
- Save your automation.
- Check the variable — it should still show test.
- Run the automation by clicking Test run:
- Watch OpCon RPA step through the process.
- It should navigate to the site, find the rate, and extract it.
- After completion, check the variable again — it should now contain the actual rate value.