diff --git a/_posts/api/webpage/method/2000-01-01-add-cookie.md b/_posts/api/webpage/method/2000-01-01-add-cookie.md index 6d1c1d93..36e4df79 100644 --- a/_posts/api/webpage/method/2000-01-01-add-cookie.md +++ b/_posts/api/webpage/method/2000-01-01-add-cookie.md @@ -17,7 +17,7 @@ Add a Cookie to the page. If the domains do not match, the Cookie will be ignore var webPage = require('webpage'); var page = webPage.create(); -page.addCookie({ +phantom.addCookie({ 'name' : 'Valid-Cookie-Name', /* required property */ 'value' : 'Valid-Cookie-Value', /* required property */ 'domain' : 'localhost', /* required property */