Hi would you please help , I’m able to do the whole action but not able to do it for the next element / links in search result
when I’m doing loop for example 5 times I;m geting action for first item 5 times not same action for the 5 results
{
“Name”: “youtube.com”,
“CreationDate”: “2020-8-7”,
“Commands”: [
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorignore”
},
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “https://www.youtube.com/results?search_query=aa”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “0”,
“Value”: “Loop_Counter”
},
{
“Command”: “label”,
“Target”: “Macro_Code”,
“Value”: “”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return Number (${Loop_Counter}) + 1”,
“Value”: “Loop_Counter”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="video-title"]/yt-formatted-string",
“Value”: “”,
“Targets”: [
"xpath=//[@id="video-title"]/yt-formatted-string”,
“xpath=//a/yt-formatted-string”,
“css=#video-title > yt-formatted-string”
]
},
{
“Command”: “waitForPageToLoad”,
“Target”: “3000”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BKSP}${KEY_BACKSPACE}${KEY_BACKSPACE}${KEY_BACKSPACE}${KEY_BACKSPACE}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BKSP}${KEY_BACKSPACE}${KEY_BACKSPACE}${KEY_BACKSPACE}${KEY_BACKSPACE}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BKSP}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BACKSPACE}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_PGDN}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BKSP}”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “3000”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “3000”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BKSP}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_BACKSPACE}”,
“Value”: “”
}
]
}