I\'m working on a page with nested frames, and am unable to access a child frame. Brief outline of HTML source:
Try this:
driver.switch_to_frame("name") driver.switch_to_frame("mid2")
The issue you're running into is that javascript can only work with the current frame it sees. mid2 is in a child frame it cannot see if you're at the top of the document.
mid2