diff --git a/javascript/node/selenium-webdriver/test/phantomjs/execute_phantomjs_test.js b/javascript/node/selenium-webdriver/test/phantomjs/execute_phantomjs_test.js
index <HASH>..<HASH> 100644
--- a/javascript/node/selenium-webdriver/test/phantomjs/execute_phantomjs_test.js
+++ b/javascript/node/selenium-webdriver/test/phantomjs/execute_phantomjs_test.js
@@ -57,7 +57,7 @@ test.suite(function(env) {
       });
 
       test.it('can manipulate the current page', function() {
-        driver.manage().addCookie('foo', 'bar');
+        driver.manage().addCookie({name: 'foo', value: 'bar'});
         driver.manage().getCookie('foo').then(function(cookie) {
           assert.equal('bar', cookie.value);
         });
Missed an addCookie call