Skip to content
On this page
json
// config.json

{
  "role": "action", 
  "type": "test-action-addon",
  "label": "Action Addon",
  "description": "Test Action Addon Description",
  "defaultValues": {
    "testText": "My default message",
  },
  "fields": [
    {
      "type": "text",
      "name": "testText",
      "label": "Test Text",
      "description": "Test Text Description."
    }
  ]
}
js
// script.js
const response=await fetch('https://jsonplaceholder.typicode.com/todos/1');
const json=await response.json();

await page.evaluate(function (json) {
  return alert(JSON.stringify(json));
}, json);