When trying to utilize what is described here Selenium IDE Commands 2021 - Overview and Tutorials
inside a macro what is shown works. But when using in conjunction with Error !errorignore
and using more than one variable the macro simply does not obey the command. That is, I can only use 1 flow control variable within a macro with the option to ignore errors within the testing process.
Could someone please tell me how it would be possible to use more than one flow control variable within a macro without this error of not executing the command.
I’m creating an automation to perform micro tasks of social networks on a website in Brazil.
I’ll be leaving here what I’m doing and if there’s someone who can help me, I’d be grateful to have the contact.
{
"Name": "Macro Ganhar nas Redes",
"CreationDate": "2022-12-7",
"Commands": [
{
"Command": "store",
"Target": "true",
"Value": "!errorignore",
"Description": ""
},
{
"Command": "label",
"Target": "TarefaErrada",
"Value": "",
"Description": ""
},
{
"Command": "open",
"Target": "https://www.ganharnasredes.com/painel/?pagina=sistema",
"Value": "",
"Description": ""
},
{
"Command": "selectWindow",
"Target": "tab=0",
"Value": "",
"Description": ""
},
{
"Command": "select",
"Target": "id=contatt",
"Value": "value=3589431",
"Description": ""
},
{
"Command": "click",
"Target": "id=btn_iniciar",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "4000",
"Value": "",
"Description": ""
},
{
"Command": "assertText",
"Target": "xpath=//*[@id=\"tarefa\"]/b",
"Value": "[TT] Curtir Publicação",
"Description": ""
},
{
"Command": "gotoIf_v2",
"Target": "${!statusOK}",
"Value": "TarefaErrada",
"Description": ""
},
{
"Command": "assertText",
"Target": "xpath=//*[@id=\"tarefa\"]/h3",
"Value": "Tarefas Esgotadas",
"Description": ""
},
{
"Command": "gotoIf_v2",
"Target": "${!statusOK}",
"Value": "TarefaErrada",
"Description": ""
},
{
"Command": "click",
"Target": "linkText=Acesso Direto",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "1500",
"Value": "",
"Description": ""
},
{
"Command": "selectWindow",
"Target": "tab=1",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "1500",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Seguir')]]",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "refresh",
"Target": "https://www.tiktok.com/",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//video",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"app\"]/div[2]/div[3]/div[2]/div[2]/div[2]/div[2]/button",
"Value": "",
"Targets": [
"xpath=//*[@id=\"app\"]/div[2]/div[3]/div[2]/div[2]/div[2]/div[2]/button",
"xpath=//div[2]/div[2]/button",
"css=#app > div.tiktok-ywuvyb-DivBodyContainer.e1irlpdw0 > div.tiktok-1qg2388-DivBrowserModeContainer.e11s2kul0 > div.tiktok-3q30id-DivContentContainer.e1mecfx00 > div.tiktok-1h8ubbu-DivMainContent.e1mecfx01 > div.tiktok-iwpir3-DivContainer.ehlq8k30 > div.tiktok-o0skzi-DivCopyLinkContainer.ehlq8k33 > button"
],
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Seguir')]]",
"Value": "",
"Description": ""
},
{
"Command": "refresh",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "refresh",
"Target": "https://www.tiktok.com/",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Seguir')]]",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "refresh",
"Target": "https://www.tiktok.com/",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "selectWindow",
"Target": "tab=0",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "id=btn-confirmar",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "2000",
"Value": "",
"Description": ""
},
{
"Command": "selectWindow",
"Target": "TAB=CLOSEALLOTHER",
"Value": "",
"Description": ""
}
]
}