Skip to content

[🐛 Bug]: DevTools doesn't switch to another tab/window #16645

@asolntsev

Description

@asolntsev

Description

When DevTools opens CDP session with one window/tab, it never switches to other windows/tabs - even if user explicitly asked for it.

the problem:

Image

Reproducible Code

ChromeDriver driver = new ChromeDriver();
String windowHandle1 = driver.getWindowHandle();
DevTools devToolsTab1 = driver.getDevTools();
devToolsTab1.createSessionIfThereIsNotOne(windowHandle1); // Operates with the first tab

driver.switchTo().newWindow(WindowType.TAB);

String windowHandle2 = driver.getWindowHandle();
DevTools devToolsTab2 = driver.getDevTools();
devToolsTab2.createSessionIfThereIsNotOne(windowHandle2); // Still operates with the FIRST TAB

ℹ️ Last known working version: -

Metadata

Metadata

Assignees

Labels

A-needs-triagingA Selenium member will evaluate this soon!C-javaJava BindingsD-chromeI-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