I\'m using Selenium and Firefox.
I have a link on a page (say linkA) that opens a new page in a new tab. The new tab is displayed when linkA is clicked. I then w
Iterator windowIterator = driver.getWindowHandles().iterator();while (windowIterator.hasNext()) { String windowHandle = windowIterator.next(); driverwindow = driver.switchTo().window(windowHandle); if (_driverwindow.getTitle().equals("Title of the window to switch")) { } }