Browser Automation
We will create a simple flow that will use Google search to convert a Dollar amount to Euro amount.
Create Flow
The following steps create a simple browser automation flow.
- In Flow Designer click the 'Untitled' named button right to logo
- Click New Project button in the popup window
- Give a name to flow and press OK
- Create the following flow by drag-and-dropping the nodes from the node palette, or by right clicking on the empty board. You can search the nodes by name
Default node names are left as is in this example. But in order to make your flow more readable you can change the node names. For ex: "Get Value" can be renamed to "Read Converted Value" or "Message Box" can be renamed to "Show Euro Amount".
Below is the list of nodes used in this flow:
- Trigger -> Inject
- Dialog -> Input Box
- Browser -> Open Browser
- Programming -> Function
- Browser -> Open Link
- Browser -> Get Value
- Dialog -> Message Box
- Flow -> Stop
- Now click the "Input Box" node and change the node's properties as follows:
Click "Function" node's menu button and select Edit, then copy paste the below script and press Save
var q = msg.amount + "+dollar+to+euro";
msg.link = "https://www.google.com/search?q=" + q;
return msg;Click the "Open Link" node and change the URL parameter as follows:
- Click the "Get Value" node and change the Selector parameter as follows:
Here is the copyable text version:
//*[@data-value]
- Click the "Message Box" node and change the node's properties as follows:
- Click Save icon or press Ctrl+S for a shortcut.
Run Flow
We have created our flow and are now ready to run.
- Click the play icon at the toolbar.
- We will select the desktop run in this document. If it's disabled it means that you don't have any connected robot. Click Desktop then select your robot (if you connected more than one robot) and press RUN.
Please make sure you installed a robot to your computer. You can follow this guide if you haven't. Or make sure you have connected your robot to your workspace. You can follow this guide if haven't.
- When the flow starts running, you will see an input box displayed on your Desktop, asking the number of Dollars to convert to Euros. Enter an amount and press OK.
- The Google Search result page will be loaded on the browser started by the flow.
- A message box on your Desktop will display the result taken from this page by the flow.
If you look at the Flow Designer, you will see that the flow is waiting the Message Box node to finish. After you click OK the flow will continue and finish.
- The started browser will stay open until you press OK.