Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a need to verify content on our site using Selenium IDE; specifically for this question Youtube video served up in an iframe:

{<iframe width="506" height="315" frameborder="0" class="player" id="player" allowfullscreen="1" title="YouTube video player" src=";enablejsapi=1&amp;"></iframe>}

(origin xed out...)

I have tried to use Selenium to click on the video - no result, and running through a list I knew a video was not available - it went right through it, so that doesn't work for verification. I settled down to a storeEval statement and attempted to do the getElementById javascript statement, but that really can't find the element that is loaded by the iframe.

Anybody had to verify Youtube content?

share|improve this question

In my browser, the YouTube iframe embeds a Flash player. Ordinarily, Selenium can't talk to embedded components, but this article talks about using the FlashSelenium component to talk to Flash.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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