diff --git a/javascript/node/selenium-webdriver/lib/webdriver.js b/javascript/node/selenium-webdriver/lib/webdriver.js index ff134c6b3b03f..2dd4f6dd332dd 100644 --- a/javascript/node/selenium-webdriver/lib/webdriver.js +++ b/javascript/node/selenium-webdriver/lib/webdriver.js @@ -1188,7 +1188,8 @@ class Options { * * @param {string} name The name of the cookie to retrieve. * @return {!Promise} A promise that will be resolved - * with the named cookie, or `null` if there is no such cookie. + * with the named cookie + * @throws {error.NoSuchCookieError} if there is no such cookie. */ async getCookie(name) { try {