Hello, if I push Play Loop 1-3, how can I do to ignore the last command?
xpath=//*[@id=“ScheduleManageForm”]/input[5]
The goal is always ignore the last commando in the last loop. So, if I play loop 1-3, 1-10, etc I want always ignore the last command in the last loop. I’ve tried times, break, but I was not able to solve it. Thanks.
Here is the script:
{
“Name”: “Station ADD Schedule”,
“CreationDate”: “2024-9-13”,
“Commands”: [
{
“Command”: “type”,
“Target”: “name=schedule.0.duration”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “csvRead”,
“Target”: “stations.csv”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “type”,
“Target”: “xpath=//[@id="c117_c233_0_c117_c233_0_c243_${!COL1}c117_c233_0_c243${!COL1}_c272"]/input",
“Value”: “${!COL3}”,
“Targets”: [
"xpath=//[@id="c117_c233_0_c117_c233_0_c243_0_c117_c233_0_c243_0_c272"]/input”,
“xpath=//input[@type=‘text’]”,
“xpath=//div/input”,
“css=#c117_c233_0_c117_c233_0_c243_0_c117_c233_0_c243_0_c272 > input”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “name=schedule.${!COL1}.days”,
“Value”: “${!COL13}”,
“Targets”: [
“name=schedule.0.days”,
“xpath=//[@id="scheduletable"]/tbody/tr/td[5]/input",
“xpath=//input[@name=‘schedule.0.days’]”,
“xpath=//td[5]/input”,
“css=#scheduletable > tbody > tr > td:nth-child(5) > input”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “name=schedule.${!COL1}.start”,
“Value”: “${!COL5}”,
“Targets”: [
“name=schedule.0.start”,
"xpath=//[@id="scheduletable"]/tbody/tr/td[6]/input”,
“xpath=//input[@name=‘schedule.0.start’]”,
“xpath=//td[6]/input”,
“css=#scheduletable > tbody > tr > td:nth-child(6) > input”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “name=schedule.${!COL1}.end”,
“Value”: “${!COL6}”,
“Description”: “”
},
{
“Command”: “comment”,
“Target”: “new row”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “comment”,
“Target”: “pause // 2000”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//*[@id="ScheduleManageForm"]/input[5]”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “comment”,
“Target”: “pause // 5000”,
“Value”: “”,
“Description”: “”
}
]
}