How to cycle a macro through a series of domains?

Hi! First off, thank you for taking the time for reading this.
My macro is set to fill a certain standard form.
The same form is present on websites A, B, C, and D
My current setup:
I have a folder in which I have 5 macros, one for each website with the exact same commands but the only difference is the website address. I right click on the folder then click on “Play all in folder”

What I would like to have:
A single macro with the 7 commands required to fill the form but after the macro has filled the form on website A, it goes to website B and does the same, then on to website C and D and then stops.
I’d be grateful if you could help me with this.

PS/Some info

  • I literally found UiVision 4 days ago and am througly loving the simplicity.
  • I would love to provide you with the link the forms (for your own inspections) but they are behind a login and strict firewall.

Thanks & Cheers!
-Alf

  • Here is the JSON data for your reference -

{
“Name”: dprcd.x
“CreationDate”: “2020-5-12”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://dprcd.x/”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=txtUserName”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtUserName”,
“Value”: “sfe”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="dvLogin"]/div/div[2]",
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=txtPassWord”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtPassWord”,
“Value”: "o
*********”
},
{
“Command”: “click”,
“Target”: “id=btnLogin”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=ActD”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Alerts”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Noster”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//*[@id="divInputControls"]/div[1]/div[3]”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=rdoDistTypeAll”,
“Value”: “A”
},
{
“Command”: “click”,
“Target”: “id=rdoDistTypeAll”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=txtTitle”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtTitle”,
“Value”: “VID19”
},
{
“Command”: “click”,
“Target”: “id=txtMessage”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtMessage”,
“Value”: “formation”
},
{
“Command”: “type”,
“Target”: “id=rdoPriorityHigh”,
“Value”: “0”
},
{
“Command”: “click”,
“Target”: “id=rdoPriorityHigh”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=txtValidFrom”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=txtValidFrom”,
“Value”: “12/05/2020”
},
{
“Command”: “type”,
“Target”: “id=txtValidTo”,
“Value”: “12/12/2020”
},
{
“Command”: “type”,
“Target”: “id=rdoAckReqdYes”,
“Value”: “Y”
},
{
“Command”: “click”,
“Target”: “id=rdoAckReqdYes”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=rdoOnlyTickerYes”,
“Value”: “1”
},
{
“Command”: “click”,
“Target”: “id=rdoOnlyTickerYes”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=rdoHighlightYes”,
“Value”: “1”
},
{
“Command”: “click”,
“Target”: “id=rdoHighlightYes”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=btnSave”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=ActiD”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=ActiD”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Approvals”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Approvals”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Administration”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Notval”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=hdrCheckBox”,
“Value”: “on”
},
{
“Command”: “click”,
“Target”: “id=hdrCheckBox”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=btnNotiove”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “linkText=Logout”,
“Value”: “”
}
]
}

Your question is very simple, create a csv with a list of domains after you with the same macro can work in all domain simply incrementing the line of csv with domain to read.

You must change only open command with COL1 (contains domain to load) and with a loop it start from line 1 to next line using the same macro code.

In this mode with 1 macro code you can fill unlimited sites with same forms.

Read here info

https://ui.vision/rpa/docs/selenium-ide/csvread

1 Like

Thank you for this! I shall try it and let you know how I fare :slight_smile: