I have a problem, I can’t find help here on the forum.
What I need to do is the following.
Summary: Accessing links, clicking buttons, doing it in a loop, 24/7
How it works:
- access link
- Search the site, if there is any button with the attributes.
- click on all the buttons that have the attribute.
- exit page, enter another page, loop.
Difficulty:
Some pages have 5 buttons, some have 100, some have 1, and some have 0 buttons.
How to ignore pages with 0 buttons?
Is there a way before starting to click, check if the page has the buttons?
Currently my script clicks 100 times, I have "errorignore"
I want to prevent the script from trying to click, and jump to the next page.
{
"Name": "forum",
"CreationDate": "2022-3-9",
"Commands": [
{
"Command": "store",
"Target": "true",
"Value": "!errorignore",
"Description": ""
},
{
"Command": "store",
"Target": "fast",
"Value": "!REPLAYSPEED",
"Description": ""
},
{
"Command": "store",
"Target": "1",
"Value": "!TIMEOUT_WAIT",
"Description": ""
},
{
"Command": "open",
"Target": "https://exemple.com/downloads-pictures",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//div[2]/div/div/div/div/div/div",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//tr[2]/td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//tr[3]/td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//tr[4]/td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//tr[5]/td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//tr[6]/td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//tr[7]/td[8]/a/i",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "....keep going up to 100",
"Value": "....keep going up to 100",
"Description": ""
},
{
"Command": "",
"Target": "",
"Value": "",
"Description": ""
}
]
}