Skip to content

Commit 4cf028a

Browse files
kozhevnikovlmtierney
authored andcommitted
Fix node Options documentation (#4479)
1 parent dab663d commit 4cf028a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,14 +1191,14 @@ class Options {
11911191
* __Sample Usage:__
11921192
*
11931193
* // Set a basic cookie.
1194-
* driver.options().addCookie({name: 'foo', value: 'bar'});
1194+
* driver.manage().addCookie({name: 'foo', value: 'bar'});
11951195
*
11961196
* // Set a cookie that expires in 10 minutes.
11971197
* let expiry = new Date(Date.now() + (10 * 60 * 1000));
1198-
* driver.options().addCookie({name: 'foo', value: 'bar', expiry});
1198+
* driver.manage().addCookie({name: 'foo', value: 'bar', expiry});
11991199
*
12001200
* // The cookie expiration may also be specified in seconds since epoch.
1201-
* driver.options().addCookie({
1201+
* driver.manage().addCookie({
12021202
* name: 'foo',
12031203
* value: 'bar',
12041204
* expiry: Math.floor(Date.now() / 1000)

0 commit comments

Comments
 (0)