I have an iFrame in another iFrame, I´am able to switch to the parent iFrame and then to the child iFrame, but I´am just not able to switch back to the parent one. Is it even possible to switch up top to the parent one, as the driver is in the child iFrame?

  • Show your (java?) code in your original post, along with any relevant HTML code. – Bill Hileman Jul 9 '19 at 15:12
  • Wouldn’t driver.switchTo().defaultContent() help you out? As per Java Docs, it selects either the first frame on the page, or the main document when a page contains iframes. – Mh_tm92 Apr 5 at 10:13
  • No. Its not possible to directly access out side.
  • As your driver is currently in child iFrame, Then you can access Parent iFrame.
  • But not directly go for Parent iFrame's top element
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.