leeleoo / flash-selenium

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

impossible to call function from the flash file. #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch the ColorsTest
2.
3.

What is the expected output? What do you see instead?
Success

"1) testColorTransition
(ColorsTest)com.thoughtworks.selenium.SeleniumException: ERROR: Threw an 
exception: window.document.clickcolors.getColor is not a function".

What version of the product are you using? On what operating system?
using the version available on this address : http://flash-
selenium.googlecode.com/svn/trunk/java/flashselenium/dist/flashselenium-
java-client-extension.jar

On windows XP.

Please provide any additional information below.

I tried both on my local computer with a html page containing the 
ColoredSquare.swf and with the provided URL in the original test

Original issue reported on code.google.com by gigogigo...@mailinator.com on 8 Apr 2009 at 3:04

GoogleCodeExporter commented 8 years ago
Ok guys, I solved my problem by myself yesterday, right after posting here. Bu 
the 
reason of my issue makes me wonder how the test can work properly on your side.

The cause of my problem is that the flash object is specified by the 
"clickcolors" 
id in the java test code. Yesterday, I replaced this parameter by 
"ColoredSquare"

flashApp = new FlashSelenium(selenium, "clickcolors");
replaced by: flashApp = new FlashSelenium(selenium, "coloredSquare");

so my new question is: How the test code could work properly for you guys with 
a 
wrong parameter? There's maybe something that I don't understand here.

Original comment by gigogigo...@mailinator.com on 8 Apr 2009 at 11:39

GoogleCodeExporter commented 8 years ago
Actually, the parameter isn't wrong.. The problem is that on some browsers the 
id of
the object tag works, and on others, the id of the embed works.

Original comment by s0c...@gmail.com on 28 Jun 2009 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by sachin.s...@gmail.com on 23 Nov 2009 at 5:31