Selenium Java - Handling Windows, Frames, and Alerts
What will happen if you try to switch to a frame using an invalid index like
driver.switchTo().frame(10); when only 3 frames exist on the page?