The code below pretty much works, but I need to make it better to loop through the divs.
{
“Name”: “ManyVids_ Follow”,
“CreationDate”: “2020-2-14”,
“Commands”: [
{
“Command”: “open”,
“Target”: “Hottest vids from your favorite content creators | ManyVids”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[1]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[2]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[3]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[4]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[5]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[6]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[7]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[8]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[9]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[10]/div[4]/button”,
“Value”: “”
},
{
“Command”: “sendKeys”,
“Target”: “xpath=/html/body/div[1]”,
“Value”: “${KEY_PGDN}”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[11]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[12]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[13]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[14]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[15]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[16]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[17]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[18]/div[4]/button”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="app"]/div/div[2]/div[19]/div[4]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//[@id="app"]/div/div[2]/div[20]/div[4]/button”,
“Value”: “”
},
{
“Command”: “sendKeys”,
“Target”: “xpath=/html/body/div[1]”,
“Value”: “${KEY_PGDN}”
}
]
}