File tree Expand file tree Collapse file tree 4 files changed +2
-27
lines changed
javascript/node/selenium-webdriver Expand file tree Collapse file tree 4 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ mode.
120
120
- InvalidElementCoordinatesError
121
121
* Changes to ` lib/webdriver.WebDriver ` :
122
122
- Dropped support for "requiredCapabilities" from WebDriver.createSession
123
+ * Changes to ` lib/webdriver.Alert ` :
124
+ - Removed authenticateAs
123
125
* Changes to ` lib/webdriver.Options ` (` driver.manage() ` ):
124
126
- Removed timeouts (use get/setTimeouts)
125
127
* Changes to ` lib/webdriver.Window ` (` driver.manage().window() ` ):
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ const Name = {
161
161
DISMISS_ALERT : 'dismissAlert' ,
162
162
GET_ALERT_TEXT : 'getAlertText' ,
163
163
SET_ALERT_TEXT : 'setAlertValue' ,
164
- SET_ALERT_CREDENTIALS : 'setAlertCredentials' ,
165
164
166
165
GET_AVAILABLE_LOG_TYPES : 'getAvailableLogTypes' ,
167
166
GET_LOG : 'getLog' ,
Original file line number Diff line number Diff line change @@ -225,7 +225,6 @@ const COMMAND_MAP = new Map([
225
225
[ cmd . Name . DISMISS_ALERT , post ( '/session/:sessionId/dismiss_alert' ) ] ,
226
226
[ cmd . Name . GET_ALERT_TEXT , get ( '/session/:sessionId/alert_text' ) ] ,
227
227
[ cmd . Name . SET_ALERT_TEXT , post ( '/session/:sessionId/alert_text' ) ] ,
228
- [ cmd . Name . SET_ALERT_CREDENTIALS , post ( '/session/:sessionId/alert/credentials' ) ] ,
229
228
[ cmd . Name . GET_LOG , post ( '/session/:sessionId/log' ) ] ,
230
229
[ cmd . Name . GET_AVAILABLE_LOG_TYPES , get ( '/session/:sessionId/log/types' ) ] ,
231
230
[ cmd . Name . GET_SESSION_LOGS , post ( '/logs' ) ] ,
Original file line number Diff line number Diff line change @@ -2257,21 +2257,6 @@ class Alert {
2257
2257
return this . text_ ;
2258
2258
}
2259
2259
2260
- /**
2261
- * Sets the username and password in an alert prompting for credentials (such
2262
- * as a Basic HTTP Auth prompt). This method will implicitly
2263
- * {@linkplain #accept() submit} the dialog.
2264
- *
2265
- * @param {string } username The username to send.
2266
- * @param {string } password The password to send.
2267
- * @return {!Promise<void> } A promise that will be resolved when this
2268
- * command has completed.
2269
- */
2270
- authenticateAs ( username , password ) {
2271
- return this . driver_ . execute (
2272
- new command . Command ( command . Name . SET_ALERT_CREDENTIALS ) ) ;
2273
- }
2274
-
2275
2260
/**
2276
2261
* Accepts this alert.
2277
2262
*
@@ -2351,16 +2336,6 @@ class AlertPromise extends Alert {
2351
2336
} ) ;
2352
2337
} ;
2353
2338
2354
- /**
2355
- * Defers action until the alert has been located.
2356
- * @override
2357
- */
2358
- this . authenticateAs = function ( username , password ) {
2359
- return alert . then ( function ( alert ) {
2360
- return alert . authenticateAs ( username , password ) ;
2361
- } ) ;
2362
- } ;
2363
-
2364
2339
/**
2365
2340
* Defers action until the alert has been located.
2366
2341
* @override
You can’t perform that action at this time.
0 commit comments