-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Labels
I-defectSomething is not working as intendedSomething is not working as intendedJ-issue-templateApplied to issues not following the template, or missing information.Applied to issues not following the template, or missing information.
Description
What happened?
tried triggering an alert, then dismissing it, but Selenium never detects the alert. it's just that.

How can we reproduce the issue?
vSPDescendants.ElementAt(0).Click(); //trigger alert
var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
wait.Until(ExpectedConditions.AlertIsPresent()); //errors here. if i remove this, it will error on the next line
IAlert alert = driver.SwitchTo().Alert(); //errors here if the wait stuff is removed
alert.Dismiss(); //this code is copied straight from selenium docs, by the wayRelevant log output
Unhandled exception. OpenQA.Selenium.WebDriverTimeoutException: Timed out after 10 seconds
at OpenQA.Selenium.Support.UI.DefaultWait`1.ThrowTimeoutException(String exceptionMessage, Exception lastException)
at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition, CancellationToken token)
at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)
at thingyy.Program.Main(String[] args) in C:\Users\alexa\source\repos\thingyy\thingyy\Program.cs:line 36
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#58 is a dynamic-sized tensor).Operating System
windows 11
Selenium version
C# 4.27.0
What are the browser(s) and version(s) where you see this issue?
chrome 131.0.6778.265
What are the browser driver(s) and version(s) where you see this issue?
i honestly have no clue atp
Are you using Selenium Grid?
No response
Metadata
Metadata
Assignees
Labels
I-defectSomething is not working as intendedSomething is not working as intendedJ-issue-templateApplied to issues not following the template, or missing information.Applied to issues not following the template, or missing information.