File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
py/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -103,20 +103,3 @@ def send_keys(self, keysToSend):
103
103
'text' : keysToSend })
104
104
else :
105
105
self .driver .execute (Command .SET_ALERT_VALUE , {'text' : keysToSend })
106
-
107
- def authenticate (self , username , password ):
108
- """
109
- Send the username / password to an Authenticated dialog (like with Basic HTTP Auth).
110
- Implicitly 'clicks ok'
111
-
112
- Usage::
113
- driver.switch_to.alert.authenticate('cheese', 'secretGouda')
114
-
115
- :Args:
116
- -username: string to be set in the username section of the dialog
117
- -password: string to be set in the password section of the dialog
118
- """
119
- self .driver .execute (
120
- Command .SET_ALERT_CREDENTIALS ,
121
- {'username' : username , 'password' : password })
122
- self .accept ()
You can’t perform that action at this time.
0 commit comments