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

Alert is not displayed while leaving site during test execution on EdgeDriver 127 version #155

Open
jogernaut opened this issue Jul 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jogernaut
Copy link

The "Leave site?" alert is not displayed in the Edge Beta when using EdgeDriver 127 version.
The bug is reproduced only if the Edge Beta was opened by EdgeDriver.
If the steps that trigger the alert are performed in a manually opened Edge Beta browser, the alert appears as expected.

Steps to reproduce:

  1. Prepare html which will generate alert if form is dirty and user wants to leave the site (example of html in attachments leave_site_test.zip)
  2. Write C# Selenium based code, where user navigate to the page 'leave_site_test.html'
  3. Fill in the Name field
  4. Try to close the page

Actual result: Alert is not presented (see
https://github.com/user-attachments/assets/bb5ce985-5095-442f-84b8-e3a8a14281b3
)
Expected result: Alert is displayed after leaving the site (see
https://github.com/user-attachments/assets/620092c7-d315-4163-bc74-6d3e3400f0df
)

Edge Beta version: 127.0.2651.49 (Official build) beta (64-bit)
Selenium.WebDriver.MSEdgeDriver: 127.0.2651.31-pre

Starting from EdgeDriver 127 alert are not displayed when leaving site with unsaved data during Selenium Test execution.
Also bug is reproduced on stable versions of EdgeDrivers (127.0.2651.2 and 127.0.2651.45)

If run test on Edge Beta 127 but with old version of EdgeDriver (126.0.2592.102) there is no issue - alert appears.
If run Selenium tests on Edge 126 and EdgeDriver (126.0.2592.102) - no issues as well.

@jogernaut jogernaut added the bug Something isn't working label Jul 18, 2024
@MrAtkinson
Copy link

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

2 participants