Take the 2-minute tour ×

I am working on a site, which airs ads before the real video plays.

The business requirement is that the ads should play before the video plays.

I am Using watir for testing. can you help me in this regard.


share|improve this question
Can you call a friend to check? –  Coffee Sep 27 '11 at 5:45
I am afraid, I cannot. Any suggestions on how I can test that the ads are playing. Also the ads are included in the flash player. –  user966220 Sep 27 '11 at 6:28
Is the page public? In that case please provide a link. If not, please provide sample HTML. –  Željko Filipin Sep 27 '11 at 8:09
dailymotion.com/video/xl4oqc_the-killing-joke_shortfilms In the above url, there is an advertisement which plays for 24 seconds odd and then the real video plays. So, using watir how can we check that the ad is playing? Thanks a lot. I have someone to help. –  user966220 Sep 27 '11 at 8:22
I do not see the ad at the beginning. As far as I can see, it is flash movie, and Watir does not work with flash. –  Željko Filipin Sep 27 '11 at 9:29
show 1 more comment

1 Answer

You may want to investigate Sikuli I've seen other threads where people were using it in combination with watir to work with things like flash. However, since it works based on visual recognition, I expect it would not work at all with video (a changing image that might only be 'right' for a fraction of a second) while it is playing unless there is some aspect of the screen that is relatively static that could be used to know the video play is in progress. See this blog posting for more info

share|improve this answer
add comment

Your Answer


