Selenium Java - Handling Windows, Frames, and Alerts
Consider this code:
What will happen when this code runs?
driver.switchTo().window("popupWindow");
WebElement closeBtn = driver.findElement(By.id("close"));
closeBtn.click();
driver.switchTo().defaultContent();What will happen when this code runs?
