Comments (3)
In order to call the doLogin Flex function from a test using Selenium RC and
flash-selenium.
First you have to externalize the Flex function. In your example:
ExternalInterface.addCallback("doLogin", doLogin);
Then you can call it from your test code with the following syntax:
status = flashApp.call(“doLogi”,"userName", "password");
Original comment by [email protected]
on 30 Oct 2008 at 4:31
- Changed state: Invalid
from flash-selenium.
status = flashApp.call(“doLogin”,"userName", "password");
Original comment by [email protected]
on 30 Oct 2008 at 5:27
from flash-selenium.
How about the call like flashApp.call('@menu.showScreen','test');
I was able to execute the command from the javascript. But when tried to
execute the
same from the java client I am getting the error. However the standard method
like flashApp.PercentLoaded() and flashApp.TotalFrames() works perfectly.
Please help me.
Trace is attached.
com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception:
window.document.W48f466331bd53a6548f467e870bb60ab.@menu has no properties
at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.ja
va:73
)
at
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.ja
va: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(JUnit3TestR
efere
nce.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner
.java
:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner
.java
:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java
:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.jav
a:196
)
Original comment by [email protected]
on 12 Nov 2008 at 4:48
from flash-selenium.
Related Issues (20)
- Unable to access flash objects HOT 1
- Firefox + big Flash application
- Firefox + big Flash application
- Firefox + big Flash application
- Firefox + big Flash application
- Update projects Home page to point working application. Geocites colors test example is no more hosted by yahoo.
- How to use Dynamic ID when instantiating FlashSelenium object
- How to run selenium function for PHP Flex test
- example Flash colors.html doesnt exists HOT 4
- How to validate Flash content correction?
- Patch for /trunk/bin/blah HOT 1
- flash Selenium documentation HOT 1
- I have made a ruby version FlashSelenium based on Selenium 2.0 WebDriver HOT 4
- Need help automating a flex app with selenium using ruby.
- Maven pom.xml info?
- Do you supports test flex PieChart and BarChart graphics? HOT 2
- Selenium Ruby with Flash
- Which Player versions and Browser versins are supported
- I am not able to click on flash button in ruby
- FlashobjectId of iframe embedded Flash players
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flash-selenium.