Selenium Java - Handling Windows, Frames, and Alerts
Given the code snippet:
What will
driver.switchTo().frame(0);
String text = driver.findElement(By.id("insideFrame")).getText();
driver.switchTo().defaultContent();
String mainText = driver.findElement(By.id("outsideFrame")).getText();What will
text and mainText contain?