@johnsharon
I think temporary profiles can't be deleted. Check the folder:
"....\BrowserAutomationStudio\apps\26.7.1\prof"
The reason for this behavior may be that BAS does not have permissions to edit/delete files.
Try to run the program as administrator.
Try restarting the project periodically using the buttons in the interface, but not through forced closing or closing via Task Manager or something similar.
Try moving BAS or the project you are running to a different directory or disk.
How can i save my nodejs variable, to a "BAS" variable?
-
-
were you able to figure this out? I have already tried [[Varname]] = objectToSave
-
@janekorec said in How can i save my nodejs variable, to a "BAS" variable?:
+1 same problem, not enough wiki
The usual assignment by value works
[[NEW_VARIABLE]] = "hello world"but the data between BAS and nodejs is transmitted in serialized form

-
Before you start the Node.js part, drop helper functions into Tools > Execute Code :
setGlobalVar = function () { var args = _function_arguments(); var name = Object.keys(args)[0]; PSet("basglobal", name, JSON.stringify(args[name])); }; getGlobalVar = function() { var name = _function_arguments(); var result = JSON.parse(P("basglobal", JSON.stringify(name)) || '""') _function_return(result) }Next time, use them in your Node.js code like this:
await BAS_FUNCTION("setGlobalVar", {"TEST": 2}) var value = await BAS_FUNCTION("getGlobalVar", "TEST") console.log(value) await BAS_FUNCTION("setGlobalVar", {"TEST2": 222222})The variable inspector doesn’t see them, but they do exist!