Handling Frames/IFrames In Selenium WebDriver : Part 1

Hello Folks,

In this post, we will learn :Handling Frames/IFrames in Selenium webdriver”.

What is Frame in HTML?

  • HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document.
  • A frame can be created using tag in html. The tag is not supported in HTML5 because of usability and accessibility challenges. 
  • When you use  you split the visual real estate of a browser window into multiple frames. Each  has it’s own contents and the content in one don’t spill into the next.

Example: MainWindow.htm: top_frame.htm: main_frame.htm: bottom_frame.html: