-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Open
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-javaJava BindingsJava BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intended
Description
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:
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: -
iampopovich
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-javaJava BindingsJava BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intended