iFrames - Instructions

iFrames are sometimes used on web pages to embed content from external sites.

Example

The example page has a iFrames pulling in authorized content from external sites.

The iframe elements are added to a page like any other element.

They are often used to embed content from another site e.g.

  • Youtube Video Players
  • Podcast Audio Players

They can also be used to pull in content from the same domain.

How much should you test?

The iframes embed code used, is usually provided by the external site.

In this case from Youtube and the Podcast site.

  • How mush should you test this?
  • Is there a risk if the external site changes how you embed content? If so how would you detect this?

Automated Tools

Most automated tools have commands dedicated to working with iframes.

In WebDriver you would switchTo().frame(...) the iframe to work with it.

But since the embed code is provided from another site, how much of this should you automate?