Here’s the script
{
“Name”: “SAQ_Search_Bing_Rouge_Page”,
“CreationDate”: “2019-1-12”,
“Commands”: [
{
“Command”: “store”,
“Target”: “0”,
“Value”: “loop_counter”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!ErrorIgnore”
},
{
“Command”: “store”,
“Target”: “FAST”,
“Value”: “!replayspeed”
},
{
“Command”: “store”,
“Target”: “2000”,
“Value”: “!TIMEOUT_MACRO”
},
{
“Command”: “store”,
“Target”: “0”,
“Value”: “no_result”
},
{
“Command”: “while”,
“Target”: “${!statusOK}”,
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “(${loop_counter} * 10) + 1”,
“Value”: “page_index”
},
{
“Command”: “echo”,
“Target”: “loop_counter ${loop_counter}”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “"cote des experts"+"Fiche produit"+"vin rouge"+-"Ce produit est épuisé"+-"pas en stock " site:www.saq.com - Search”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: “//[@id="b_results"]/li/div/h2/a@href",
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: "//[@id="b_results"]/li[2]/div/h2/a@href”,
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: “//[@id="b_results"]/li[3]/div/h2/a@href",
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: "//[@id="b_results"]/li[4]/div/h2/a@href”,
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: “//[@id="b_results"]/li[5]/div/h2/a@href",
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: "//[@id="b_results"]/li[6]/div/h2/a@href”,
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: “//[@id="b_results"]/li[7]/div/h2/a@href",
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: "//[@id="b_results"]/li[8]/div/h2/a@href”,
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: “//[@id="b_results"]/li[9]/div/h2/a@href",
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeAttribute”,
“Target”: "//[@id="b_results"]/li[10]/div/h2/a@href”,
“Value”: “!csvLine”
},
{
“Command”: “csvSave”,
“Target”: “saq_save_rouge”,
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “${loop_counter} + 1”,
“Value”: “loop_counter”
},
{
“Command”: “endWhile”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “localStorageExport”,
“Target”: “saq_save_rouge.csv”,
“Value”: “”
}
]
}Preformatted text