Current time: 10-18-2019, 06:15 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Set Cookie value in scriptToString ?
11-09-2015, 01:04 PM
Post: #1
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..
Find all posts by this user
Quote this message in a reply
11-10-2015, 10:17 AM
Post: #2
RE: How to Set Cookie value in scriptToString ?
(11-09-2015 01:04 PM)badarinathvm Wrote:  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: https://github.com/marcelduran/webpagetest-api/issues
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)