Skip to content

Commit f63a810

Browse files
committed
[js] Remove Alert.authenticateAs
Support for this command was also removed from the java API in 3.8.0 (commit bdf883b)
1 parent f3eafa0 commit f63a810

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

javascript/node/selenium-webdriver/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ mode.
120120
- InvalidElementCoordinatesError
121121
* Changes to `lib/webdriver.WebDriver`:
122122
- Dropped support for "requiredCapabilities" from WebDriver.createSession
123+
* Changes to `lib/webdriver.Alert`:
124+
- Removed authenticateAs
123125
* Changes to `lib/webdriver.Options` (`driver.manage()`):
124126
- Removed timeouts (use get/setTimeouts)
125127
* Changes to `lib/webdriver.Window` (`driver.manage().window()`):

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ const Name = {
161161
DISMISS_ALERT: 'dismissAlert',
162162
GET_ALERT_TEXT: 'getAlertText',
163163
SET_ALERT_TEXT: 'setAlertValue',
164-
SET_ALERT_CREDENTIALS: 'setAlertCredentials',
165164

166165
GET_AVAILABLE_LOG_TYPES: 'getAvailableLogTypes',
167166
GET_LOG: 'getLog',

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ const COMMAND_MAP = new Map([
225225
[cmd.Name.DISMISS_ALERT, post('/session/:sessionId/dismiss_alert')],
226226
[cmd.Name.GET_ALERT_TEXT, get('/session/:sessionId/alert_text')],
227227
[cmd.Name.SET_ALERT_TEXT, post('/session/:sessionId/alert_text')],
228-
[cmd.Name.SET_ALERT_CREDENTIALS, post('/session/:sessionId/alert/credentials')],
229228
[cmd.Name.GET_LOG, post('/session/:sessionId/log')],
230229
[cmd.Name.GET_AVAILABLE_LOG_TYPES, get('/session/:sessionId/log/types')],
231230
[cmd.Name.GET_SESSION_LOGS, post('/logs')],

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,21 +2257,6 @@ class Alert {
22572257
return this.text_;
22582258
}
22592259

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-
22752260
/**
22762261
* Accepts this alert.
22772262
*
@@ -2351,16 +2336,6 @@ class AlertPromise extends Alert {
23512336
});
23522337
};
23532338

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-
23642339
/**
23652340
* Defers action until the alert has been located.
23662341
* @override

0 commit comments

Comments
 (0)