Error in v8.0.1 with script

In latest version I have error with this in chrome.

{
“Command”: “executeScript_Sandbox”,
“Target”: “localStorage.setItem(‘test’, ‘xxx’);\n”,
“Value”: “”,
“Description”: “”
}

I receive error: localStorage is not defined

With 6.2.8 I didn’t have any problem.

This is an interesting use case!

The problem is that since RPA V7.0 executeScript_Sandbox is no longer 100% compatible with executeScript. The reason is that due to the upgrade to manifest V3 we must use different Javascript interpreter for the sandboxed version of the command.

So while executeScript (which runs in the website) remains unchanged, the _Sandbox version uses now JS-Interpreter - and this library has no access to Chrome APIs like “localStorage.setItem”

So the solution here is:

  • Use executeScript

  • Or: Store data differently, e. g. in a CSV file?