12. Switching Context: iFrames & Windows

Frame Switching

driver.switchTo().frame("editor-frame");
// Perform actions inside frame
driver.switchTo().defaultContent(); // Back to main window

Task

  • Switch into `"editor-frame"` and then switch back to `defaultContent()`.
💡Common doubts
Did you like the problem?
Lesson 12 of 18
Java
Loading code editor…
Next