Skip to content
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

Issue with selenium close method after visiting internal Edge urls #188

Open
petrefort opened this issue Feb 14, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@petrefort
Copy link

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

@petrefort petrefort added the bug Something isn't working label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant