Saving log.txt to computer after final loop in csv?

Hello,

I’m a beginner w/ Kantu. I’ve created a loop that reads a csv & completes some tasks.

I’d like to save a log file to my computer after the completion of all loops. I added it to the end here, but it ends up asking to save it after each loop.

Please advise.

Here is my simple script:

{
“Name”: “DemoCsvReadWithLoop_duplicate+mod”,
“CreationDate”: “2019-3-11”,
“Commands”: [
{
“Command”: “store”,
“Target”: “medium”,
“Value”: “!replayspeed”
},
{
“Command”: “csvRead”,
“Target”: “testloop6.csv”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Status = {!csvReadStatus}, line = {!csvReadLineNumber}”,
“Value”: “reads status & gives line number”
},
{
“Command”: “storeEval”,
“Target”: “(new Date().getHours()+” : " + new Date().getMinutes() + " : " + new Date().getSeconds())",
“Value”: “timestamp”
},
{
“Command”: “echo”,
“Target”: “line is beginning run at ({timestamp})", "Value": "" }, { "Command": "open", "Target": "{!COL1}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “has opened the administrator backend”
},
{
“Command”: “type”,
“Target”: “name=rsf_backend_password”,
“Value”: “{!COL2}" }, { "Command": "clickAndWait", "Target": "/html/body/div[1]/form/button", "Value": "" }, { "Command": "comment", "Target": "", "Value": "submit button from firewall, next step goes into main login" }, { "Command": "type", "Target": "id=mod-login-username", "Value": "{!COL3}”
},
{
“Command”: “type”,
“Target”: “id=mod-login-password”,
“Value”: “${!COL4}”
},
{
“Command”: “clickAndWait”,
“Target”: “//[@id=“form-login”]/fieldset/div[3]/div/div/button",
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “submit button from login”
},
{
“Command”: “click”,
“Target”: “link=Extensions”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “link=Plugins”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=filter_search”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=filter_search”,
“Value”: “System - Update Notification”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “this is searching for the specific system update plugin”
},
{
“Command”: “clickAndWait”,
“Target”: "//
[@id=“j-main-container”]/div[1]/div[1]/div[1]/div[1]/button”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “submit button to search”
},
{
“Command”: “click”,
“Target”: “id=cb0”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “this is the checkbox for the plugin”
},
{
“Command”: “clickAndWait”,
“Target”: “//*[@id=“toolbar-unpublish”]/button”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “this is the unpublish button”
},
{
“Command”: “click”,
“Target”: “link=User Menu”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “link=Logout”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “logs out of admin backend”
},
{
“Command”: “localStorageExport”,
“Target”: “log”,
“Value”: “”
}
]
}

What message do you get? Can you please add a screenshot?

Ok,

at the end of each loop a popup pulls up and asks me to save the log manually. see pic below. i understand i might need a while statement, but not sure how to implement that. or is there a different way to go about it?

thank you,

I would like to wrap all of my loops and their steps inside some sort of While condition or something, then have the save log option to my desktop.

BUT when I try to incorporate parts of the “DemoCsvReadWithWhile”, my process just ends up breaking. Need help making sure that if the loop has an error, it will log the error as a timeout, but continue.

Then save the log file to my desktop one time after the final loop.

Appreciate your help!