Hello. I use while for repeating actoins and csvreadarray. ${a1[${i1}][0]} - something like this. I need to increase var i1 + 1 after every cycle
{
"Name": "3",
"CreationDate": "2022-11-1",
"Commands": [
{
"Command": "csvReadArray",
"Target": "fb-yag.csv",
"Value": "a1",
"Description": ""
},
{
"Command": "store",
"Target": "0",
"Value": "i1",
"Description": ""
},
{
"Command": "while_v2",
"Target": "${i1} <= 500",
"Value": "",
"Description": ""
},
{
"Command": "csvRead",
"Target": "links.csv",
"Value": "",
"Description": ""
},
{
"Command": "open",
"Target": "${!COL1}",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "store // 0",
"Value": "i1",
"Description": ""
},
{
"Command": "verifyElementPresent",
"Target": "//*[text()[contains(.,'Продать')]]",
"Value": "",
"Description": ""
},
{
"Command": "if_v2",
"Target": "${!STATUSOK} == true",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Продать')]]",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Товар на продажу')]]",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "click // //*[text()[contains(.,'Добавить фото')]]",
"Value": "",
"Description": ""
},
{
"Command": "XClick",
"Target": "0dipqh_dpi_96.png",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${a1[${i1}][0]}",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ENTER}",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Название')]]",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${a1[${i1}][1]}",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Цена')]]",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "35",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Состояние')]]",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Новый товар')]]",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Описание')]]",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${a1[${i1}][1]} etri 30 AZN \" Hədiyyə probniki siyahidan seçin Whatsappa yazın: https://wa.me/994552001242\"",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Далее')]]",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_END}",
"Value": "",
"Description": ""
},
{
"Command": "XClick",
"Target": "iom6s5_dpi_96.png",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ESC}",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ESC}",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "click // //*[text()[contains(.,'Отправить')]]",
"Value": "",
"Description": ""
},
{
"Command": "else",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Напишите что-нибудь...')]]",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "click // //*[text()[contains(.,'Создайте общедоступную публикацию...')]]",
"Value": "",
"Description": ""
},
{
"Command": "XClick",
"Target": "6drd3x_dpi_96.png",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${a1[${i1}][1]} etri 30 AZN \" Hədiyyə probniki siyahidan seçin Whatsappa yazın: https://wa.me/994552001242\"",
"Value": "",
"Description": ""
},
{
"Command": "XClick",
"Target": "otxpsy_dpi_96.png",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${a1[${i1}][0]}",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ENTER}",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'Отправить')]]",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ESC}",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "${KEY_ESC}",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "${i1}",
"Value": "${i1}=${i1}+1",
"Description": ""
},
{
"Command": "comment",
"Target": "repeatIf // ",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "waitForPageToLoad",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "//*[text()[contains(.,'1 мин.')]]",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "${!URL}",
"Value": "!csvLine",
"Description": ""
},
{
"Command": "csvSave",
"Target": "urls.csv",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
}
]
}
{
"Command": "executeScript_Sandbox",
"Target": "return Number(${i1}) + 1;",
"Value": "i1",
"Description": ""
}
thank you, it worked