Selenium: Can i test if a page loaded a flash app (ie a swf) properly?

Posted by Max Williams on Stack Overflow See other posts from Stack Overflow or by Max Williams
Published on 2010-06-04T16:41:32Z Indexed on 2010/06/07 13:12 UTC
Read the original article Hit count: 272

Filed under:
|

hi all. I'm writing some selenium tests (in rspec for a rails app). One of my pages loads a swf and while i don't want to test the functionality of this flash app i do want to test that it loaded up ok. Is this possible?

In case it helps, the html to load the swf is:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600">
<PARAM NAME=movie VALUE="http://localhost:3000/assets/players/millionaire/millionaire.swf">
<PARAM NAME=quality VALUE="high">
<PARAM NAME=FlashVars VALUE="quizXML=http://localhost:3000/quizzes/371.xml?online=true&myURL=http://localhost:3000/assets/players/millionaire/&online=true">

<param name=width value="800">
<param name=height value="600">
<EMBED src="http://localhost:3000/assets/players/millionaire/millionaire.swf" FlashVars="quizXML=http://localhost:3000/quizzes/371.xml?online=true&myURL=http://localhost:3000/assets/players/millionaire/&online=true" width="800" height="600" quality=high TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>    

thanks - max

© Stack Overflow or respective owner

Related posts about selenium

Related posts about swf