leeleoo / flash-selenium

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

Not able to exercise the calls like flashApp.call('@menu.showScreen','test') #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. make a flash object.
2. exercise a call like flashApp.call('@menu.showScreen','test');

What is the expected output? What do you see instead?
Should be able to call the method. Able to exercise the common methods like 
flashApp.PercentLoaded().

What version of the product are you using? On what operating system?

Windows XP, 
Firefox 2
Eclipse GANYMED 
Please provide any additional information below.

I was able to do it using the javascript.

The trace is given below

com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
window.document.W48f466331bd53a6548f467e870bb60ab.@menu has no properties
    at 
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcess
or.java:73
)
    at 
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcess
or.java:15
4)
    at 
com.thoughtworks.selenium.DefaultSelenium.getEval(DefaultSelenium.java:334)
    at 
com.thoughtworks.selenium.FlashSelenium.call(FlashSelenium.java:54)
    at ColorsTest.testlogin(ColorsTest.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3
TestRefere
nce.java:130)
    at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR
unner.java
:460)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR
unner.java
:673)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner
.java:386)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunne
r.java:196
)

Original issue reported on code.google.com by Densilde...@gmail.com on 17 Nov 2008 at 9:43