Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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="https://www.youtube.com/embed/9l1WYPhs0cc?wmode=opaque&amp;enablejsapi=1&amp;origin=https%3A%2F%2Fxxx.com"></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

1 Answer 1

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

 
discard

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.