-
-
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
ERROR unexpected alert open: Interstitial popups not supported #7834
Comments
@cosminPintea |
I have a similar problem that seems to be related. I started noticing it on December 3rd. Chrome driver throws an unhandled exception trying to dismiss an alert opened by a What's strange is that it doesn't always happen so it can't be reliably reproduced. It seems a socket gets closed sometimes. Here is a stack trace and log that may help.
|
I have 100% reproducibility, basically i can't do the authentication by entering the user/psw. I use a custom profile with saved credential to do the login part. |
Updating to ChromeDriver 79 fixed my problem. I think it was due to this bug with alert messages. Maybe this will help you too @cosminPintea |
I have updated the ChromeDriver to "Starting ChromeDriver 79.0.3945.36" . Now the exception "Interstitial popups not supported" is gone . no such alert This is not a time issue. I just break the code before the "Alert" wait the alert to pop-up and execute the command ""IAlert alertHandler = _testBase.WebDriver.SwitchTo().Alert();". |
If you manually interrupt the running script and wait for the alert so the code works, it means that it is indeed a timing issue. Again, we can only find a way to help if you provide us with a script to reproduce the issue. |
Sorry, probably my description was not clear. I have the same behavior (exception :no alert found) when i break the code wait the pop-pup and after that continue execution. WebDriver.Navigate().GoToUrl(startUrl); WebDriver.FindElement(By.XPath("//input[@type='email']")).SendKeys(email); WebDriver.FindElement(By.XPath("//input[@value='Next']"),Click(); Before this last update of the chromeDriver the exception thrown was the one in the issue title. Right now it throw the classical exception that there is no alert. The app is stored in AWS and it is a internal app. It can be accessed form outside.The app login use "adfs" to do users authentication. |
authentication prompts are not currently supported. This needs to be added to the webdriver spec, see w3c/webdriver#385, and then added to browsers |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Try to login using "https://login.microsoftonline.com/". The chromedriver throw an exception when try to handle the login alert.
To Reproduce
The log:
Expected behavior
To be able to handle the alert generated by the login process.
Test script or set of commands reproducing this issue
WebDriver.Navigate().GoToUrl(startUrl); WebDriver.FindElement(By.XPath("//input[@type='email']")).SendKeys(email); WebDriver.FindElement(By.XPath("//input[@value='Next']"),Click(); Thread.Sleep(2000); //Switch to the alert IAlert alertHandler = WebDriver.SwitchTo().Alert(); alertHandler.SetAuthenticationCredentials("email", "psw"); WebDriver.SwitchTo().DefaultContent();
Environment
OS: Windows 10
Browser: Chrome
Browser version: 78.0.3904.108
Browser Driver version: Selenium.WebDriver.ChromeDriver 78.0.3904.7000
Language Bindings version: c# Selenium.WebDriver.ChromeDriver 78.0.3904.7000
The text was updated successfully, but these errors were encountered: