Hello,
I’m very new to UI.Vision. I use Zennoposter during one year. But I search for a tool than I can quickly use directly from Chrome for some actions.
I have a page with some links with text. I want to extract all this links and click on it to do others actions.
I have used a “storeAttribute” command to search link. It work. But as number of link changed each time. I want to handle error when no more link found… I use onError … but this don’t work, I don’t know why…
Can you help me ?
{
"Name": "Extract Link",
"CreationDate": "2023-8-19",
"Commands": [
{
"Command": "open",
"Target": "https://www.airbnb.fr/hosting/reservations/completed",
"Value": "",
"Description": ""
},
{
"Command": "onError",
"Target": "#goto",
"Value": "ENDEXTRACT",
"Description": ""
},
{
"Command": "times",
"Target": "35",
"Value": "",
"Description": "Boucle 35x"
},
{
"Command": "storeAttribute",
"Target": "storeAttribute // xpath=(//a[contains(text(), 'Laisser un commentaire')])[${!times}]@href",
"Value": "url",
"Description": ""
},
{
"Command": "comment",
"Target": "xpath=(//a[contains(text(), 'Détails')])[${!times}]@href",
"Value": "url",
"Description": ""
},
{
"Command": "echo",
"Target": "url of link${!times}=${url}",
"Value": "green",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "label",
"Target": "ENDEXTRACT",
"Value": "",
"Description": ""
}
]
}