EdgeWebDriver
EdgeWebDriver copied to clipboard
Issue with selenium close method after visiting internal Edge urls
Issue:
I am using Selenium with python to perform actions in Edge browser
After visiting internal edge urls, such as "edge://favorites" or "edge://downloads", calling driver.close() does not work - nothing happens, browser is hanging there indefinitely, without any error message.
Example:
from selenium import webdriver
from selenium.webdriver.edge import service
def test_edge_close():
s = service.Service(driver_path)
edg = webdriver.Edge(service=s)
edg.switch_to.new_window('tab')
edg.get("edge://favorites")
edg.close() # script gets stuck here - no error, nothing happens
EdgeDriver version: 133.0.3065.59 Browser version: 133.0.3065.59 Selenium version: 4.19.0
Last driver version without this issue: 132.0.2957.115
same issue with selenium java
Same issue here, any update?
Seeing this issue as far back as driver version 132.0.2953-pre.
Here's the stacktrace. (C#/dotnet)
Exception occurred in Browser.Close(): The HTTP request to the remote WebDriver server for URL http://localhost:58595/session/e166c725e2a7dbc7fb7b765299e360dc/window timed out after 60 seconds.
at OpenQA.Selenium.Remote.HttpCommandExecutor.<ExecuteAsync>d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.<ExecuteAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at OpenQA.Selenium.WebDriver.<ExecuteAsync>d__63.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.Close()