Hi , how can loop same action to next elements
for example I want to enter to each product in this page https://www.amazon.com/s?k=sofa , copy title and store to csv ,
I’m able to do it for one product but how to do it for all products ?
my map
{
“Name”: “amazon”,
“CreationDate”: “2023-9-30”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://www.amazon.com/s?k=sofa&crid=FCQIUGJGZ5DH&sprefix=sof%2Caps%2C154&ref=nb_sb_noss_2”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “xpath=//[@id="search"]/div/div/div/span/div/div[5]/div/div/div/div/div/span/a/div/img",
“Value”: “”,
“Targets”: [
"xpath=//[@id="search"]/div/div/div/span/div/div[5]/div/div/div/div/div/span/a/div/img”,
“xpath=//div[5]/div/div/div/div/div/span/a/div/img”,
“css=#search > div.s-desktop-width-max.s-desktop-content.s-wide-grid-style-t1.s-opposite-dir.s-wide-grid-style.sg-row > div.sg-col-20-of-24.s-matching-dir.sg-col-16-of-20.sg-col.sg-col-8-of-12.sg-col-12-of-16 > div > span.rush-component.s-latency-cf-section > div.s-main-slot.s-result-list.s-search-results.sg-row > div:nth-child(9) > div > div > div > div > div.s-product-image-container.aok-relative.s-text-center.s-image-overlay-grey.puis-image-overlay-grey.s-padding-left-small.s-padding-right-small.puis-spacing-small.s-height-equalized.puis.puis-v20azwp0smsgc01ytmkntf1rk7n > span > a > div > img”
],
“Description”: “”
},
{
“Command”: “storeText”,
“Target”: “id=title”,
“Value”: “!CsvLine”,
“Description”: “”
},
{
“Command”: “csvSave”,
“Target”: “data.csv”,
“Value”: “”,
“Description”: “”
}
]
}