File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/node/selenium-webdriver/lib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1191,14 +1191,14 @@ class Options {
1191
1191
* __Sample Usage:__
1192
1192
*
1193
1193
* // Set a basic cookie.
1194
- * driver.options ().addCookie({name: 'foo', value: 'bar'});
1194
+ * driver.manage ().addCookie({name: 'foo', value: 'bar'});
1195
1195
*
1196
1196
* // Set a cookie that expires in 10 minutes.
1197
1197
* 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});
1199
1199
*
1200
1200
* // The cookie expiration may also be specified in seconds since epoch.
1201
- * driver.options ().addCookie({
1201
+ * driver.manage ().addCookie({
1202
1202
* name: 'foo',
1203
1203
* value: 'bar',
1204
1204
* expiry: Math.floor(Date.now() / 1000)
You can’t perform that action at this time.
0 commit comments