Now I’m must create global variable in browser scope;
{
"Name": "zzzzz",
"CreationDate": "2020-1-13",
"Commands": [
{
"Command": "executeScript",
"Target": "return fetch('https://api.github.com/orgs/nodejs').then(x => x.json()).then(x => window.test = x)",
"Value": ""
},
{
"Command": "executeScript",
"Target": "return test",
"Value": "test"
}
]
}
Better
{
"Name": "zzzzz",
"CreationDate": "2020-1-13",
"Commands": [
{
"Command": "async_executeScript",
"Target": "return await fetch('https://api.github.com/orgs/nodejs').then(x => x.json())",
"Value": "test"
}
]
}