How to Set Cookie value in scriptToString ?

Hello,

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([
{navigate: http://www.xyz.com},
{setViewportSize: [1280,1024]},
{setCookie: [ http://www.xyz.com, ‘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: Issues · catchpoint/WebPageTest.api-nodejs · GitHub