Selenium Java - Handling Windows, Frames, and Alerts
What will be the output of the following code snippet?
Assuming the element with id
driver.switchTo().frame("frame1");
String text = driver.findElement(By.id("msg")).getText();
driver.switchTo().defaultContent();
System.out.println(text);Assuming the element with id
msg inside frame1 contains text "Hello Frame".