How to Set Cookie value in scriptToString ?


Unable to set cookie value in scriptToString method , below is my syntax , Can you guys please validate and let me know the fix ?

script = wpt.scriptToString([
{setViewportSize: [1280,1024]},
{setCookie: [, ‘SEGMENT=%7B%22EXPERIMENT%22%3A%5B1063%5D%7D’]} ]);

Any help is appreciated…

IIUC you’re using the node.js wrapper. You might be able to find someone here who can help but I think you’d have better luck asking on the project’s GitHub page: