accessing global variable via nodejs is not possible in bas? maybe i am missing something but in my tests it not working same way as normal node, very strange behavior
@saimraza786 why just not to run node js server not in BAS? set 2 endpoint url's, one to push data on server , and second to retrieve data from server to BAS only by GET request?
Hello there I'm trying to run BAS api or BAS functions in node and no matter what I try I get an error
I love to get your help :D
Using the code bellow
await BAS_API("load('google.com')!");
or
await BAS_API("load(\"http://google.com\")!");
I get the this Error
F:\bablosoft\BrowserAutomationStudio\apps\22.7.1\embedded\f1064e45.948MdPTikzsT\distr\lib\custom\wl3hbvfvocs.js:46
await BAS_API("load(\"http://google.com\")!");
^^^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:588:28)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at F:\bablosoft\BrowserAutomationStudio\apps\22.7.1\embedded\f1064e45.948MdPTikzsT\distr\lib\internal\custom.js:11:38