Skip to content

[πŸ› Bug]: Switch to window is not working after Chrome/Edge browser update version to 133Β #15318

@AlokB1993

Description

@AlokB1993

What happened?

Steps:

  1. User is in page 1
  2. user stores the window handle : var parentHandle= driver.windowHandle();
  3. Perform some event on the page new window opens
  4. Get all window handles: var allHandles= driver.windowHandles;
  5. Switch to the new window driver.switchTo().window(allHandles[1]);
  6. Perform save/close on the new window(New window closed)
  7. Try to switch back to parent window driver.switchTo().window(parentHandle);

Expected: Driver focus should go to parent window.
Actual: Its opening a new blank window and throwing the exception "No such window"

How can we reproduce the issue?

Steps:
1. User is in page 1
2. user stores the window handle : var parentHandle= driver.windowHandle();
3. Perform some event on the page new window opens
4. Get all window handles: var allHandles= driver.windowHandles;
5. Switch to the new window driver.switchTo().window(allHandles[1]);
6. Perform save/close on the new window(New window closed)
7. Try to switch back to parent window driver.switchTo().window(parentHandle);

Expected: Driver focus should go to parent window.
Actual: Its opening a new blank window and throwing the exception "No such window"

Relevant log output

Its opening a new blank window and throwing the exception "No such window"

Operating System

win10

Selenium version

c#, selenium 4.23

What are the browser(s) and version(s) where you see this issue?

Chrome 133 and Edge 133

What are the browser driver(s) and version(s) where you see this issue?

Selenium manager

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-chromeG-chromedriverRequires fixes in ChromeDriverI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions