Selenium Java - Handling Windows, Frames, and Alerts
Identify the error in the following code snippet:
driver.switchTo().frame("outerFrame");
driver.switchTo().defaultContent();
driver.switchTo().frame("innerFrame");