leeleoo / flash-selenium

Automatically exported from code.google.com/p/flash-selenium
0 stars 0 forks source link

Not able to call ExternalInterface functions within local swf file #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Please refer to attached files. All files are lying on my box and I'm 
trying to call ExternalInterface function and default flash functions as 
well but without any success. 
2.
3.

What is the expected output? What do you see instead?
default flash methods and ExternalInterface methods should get called. I'm 
seeing error message as ERROR: Threw an exception: 
selenium.browserbot.getCurrentWindow().frames['test-
iframe'].document.getElementById("ColoredSquare").IsPlaying is not a 
function

What version of the product are you using? On what operating system?
FF 3.0, Windows 7

Please provide any additional information below.

command used to call function is 

ffbrowser.getEval("selenium.browserbot.getCurrentWindow().frames['test-
iframe'].document.getElementById('ColoredSquare').IsPlaying();")

Is this issue happening because swf locally situated?

Original issue reported on code.google.com by vikram.s...@gmail.com on 18 Feb 2010 at 10:44

Attachments:

GoogleCodeExporter commented 8 years ago
I had this problem.  It was because the security settings of flash player. 
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_man
ager06.
html
Setting the Global security settings and the Website privacy settings to Always 
allow 
solves the problem.

Original comment by jeppa.re...@gmail.com on 7 Apr 2010 at 11:42