Selenium Java - Handling Windows, Frames, and Alerts
What will happen when the following code executes?
Assuming the page has two iframes and the second iframe contains an element with id "title" having text "Welcome".
driver.switchTo().frame(1);
String text = driver.findElement(By.id("title")).getText();
System.out.println(text);Assuming the page has two iframes and the second iframe contains an element with id "title" having text "Welcome".
