Skip to content

Commit

Permalink
[py] Remove the beta authenticate methods from Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Apr 28, 2018
1 parent a189033 commit 95fdcb0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions py/selenium/webdriver/common/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,3 @@ def send_keys(self, keysToSend):
'text': keysToSend})
else:
self.driver.execute(Command.SET_ALERT_VALUE, {'text': keysToSend})

def authenticate(self, username, password):
"""
Send the username / password to an Authenticated dialog (like with Basic HTTP Auth).
Implicitly 'clicks ok'
Usage::
driver.switch_to.alert.authenticate('cheese', 'secretGouda')
:Args:
-username: string to be set in the username section of the dialog
-password: string to be set in the password section of the dialog
"""
self.driver.execute(
Command.SET_ALERT_CREDENTIALS,
{'username': username, 'password': password})
self.accept()

0 comments on commit 95fdcb0

Please sign in to comment.