Recording Web Macro for Robot Task
This page shows how to record browser actions with the Web Macro Task recorder and copy them into a Robot Task sequence, which is faster than building Web Macro activities one by one.
Why use this approach
- The recorder captures the browser interactions for you, including element paths and navigation steps
- Recorded actions can be reused and refined rather than built from scratch
- The pasted actions in the Robot Task work the same as Web Macro activities you configure yourself
Record and copy into a Robot Task
-
Add a Web Macro Task to a Job. It is only a workspace for recording.
warningA Web Macro Task in an active Job runs whenever the Job runs. Record in a Job that is not active, or delete the Web Macro Task when you have copied the actions.
-
In the Web Macro Task, click Record and go through the browser interactions you want to automate, from opening the browser to the last action.
-
Stop the recording.
-
When you are asked whether to save the recorded actions, click Yes.
-
In the recorded action list, right-click the Launch New Instance action and select Copy.
Copy the Launch New Instance action, not the top-level Sequence. Copying the Sequence does not bring over the Open Browser action correctly.
-
Open the Robot Task and paste the action inside its existing Sequence. The Open Browser action appears as the parent, with Launch New Instance inside it.
-
Add any further Robot Task activities after the pasted Web Macro block: mouse actions, keyboard input, file operations, loops or any other activity from the activity list.
Structure reference
When Web Macro actions are placed correctly in a Robot Task, the hierarchy looks like this:
Sequence
└── Open Browser
└── Launch New Instance
├── [recorded action 1]
├── [recorded action 2]
└── ...
All Web Macro child actions must be inside the Launch New Instance action, which itself must be inside Open Browser.
Tips
- After pasting, review each recorded action and rename it with its Display name property, so that the sequence stays readable
- If the target website changes after recording (a redesign, or updated elements), record again and replace the pasted block, because the element paths captured during recording may no longer be valid; see Element Path
- You can record several Web Macro Tasks and copy blocks from each into one Robot Task, to combine workflows across different sites