Selenium Java - Handling Windows, Frames, and Alerts
What will be the result of the following code snippet?
driver.switchTo().frame(0);
WebElement button = driver.findElement(By.id("submitBtn"));
button.click();
driver.switchTo().defaultContent();
WebElement link = driver.findElement(By.id("homeLink"));
link.click();