-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send keys to authentication window doesn't work for chromdriver. #5137
Comments
Drivers will implement this feature not earlier than it is specified in W3C WebDriver standard. |
workaround that worked for me: OS: Linux Mint 17.3 |
Thanks, the workaround works for me as well. |
If even this doesn't work, then one change that you can try is alert.send_keys("username" + Keys.TAB.toString() + "password") |
I am not able to login to the site using Alert.send_keys() Code tried:1 alert = Alert(browser) Alert.send_keys("apc") __Firefox is working fine. Please help me to solve this issue. |
Meta -
OS: Windows 10
Selenium Version: 3.7.0
Browser: Chrome 62, chromediver 2.33
python 2.7
here is the code sample
1 wait(driver, 5).until(EC.alert_is_present())
2 alert = driver.switch_to_alert()
3 alert.send_keys("username" + Keys.TAB + "password")
4 alert.accept()
Expected Behavior - send username and password to popup and apply. This works as expected with firefox.
Actual Behavior -
I'm getting timeout exception on line 1 - selenium.common.exceptions.TimeoutException: Message:

but actually the alert is present.
when removing line 1, I'm getting exception on line 2
selenium.common.exceptions.NoAlertPresentException: Message: no alert open
The text was updated successfully, but these errors were encountered: