Coder Social home page Coder Social logo

flash-selenium's People

Contributors

paulocaroli avatar sachinsudheendra avatar

Watchers

 avatar

flash-selenium's Issues

Cannot use selenium rc 1.0 with flash-selenium

The example ColorsTest example will not work unless you use selenium rc
0.9.2 with the equivalent version of the flash-selenium.jar

The home page of this site encourages potential users of this extension to
go to version 1.0 but it should not be doing so.

David

Original issue reported on code.google.com by [email protected] on 9 Sep 2009 at 11:34

ERROR: Threw an exception: this.browserbot.findElement("clickcolors").getSquareLabel is not a function on session

What steps will reproduce the problem?
1. On Windows 7, FF 3.5.7 , flashselenium-java-client-extension-1.0,
Selenium RC 1.0.1 
2. Trying to run test cases using junit and got the error as below
12:07:46.875 INFO - Command request:
getEval[this.browserbot.findElement("clickcolors").getSquareLabel();, ] on
session 75093c545a4243b696449faa8386cdba
12:07:46.893 INFO - Got result: ERROR: Threw an exception:
this.browserbot.findElement("clickcolors").getSquareLabel is not a function
on session 75093c545a4243b696449faa8386cdba
3.

What is the expected output? What do you see instead?
http://www.adobe.com/devnet/flash/articles/flash_selenium_04.html#ach-setscr
I was trying to run sample scripts mentioned on this site and start
automation for our browser based flash application.

What version of the product are you using? On what operating system?
Windows 7, FF 3.5.7, flashselenium-java-client-extension-1.0, Selenium RC
1.0.1 

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Jan 2010 at 9:31

Calculate Sum example fails on IE7 and FF2

What steps will reproduce the problem?
1.  Run the sample Calculate Sum example using IE7 or FF2.0 on Win XP
2.
3.

What is the expected output? What do you see instead?
It should perform addition of given numbers (Able to access the text field 
and enter the value automatically). Also it allows to select click button 
and perform given operation.

What version of the product are you using? On what operating system?
IE 7.0, FF 3.0.3, flashselenium-java-client-extension-1.0, flex-ui-
selenium-0.1.1, junit-4.6, selenium-remote-control-1.0.1

Please provide any additional information below.

Exception in JUnit:
com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
Object doesn't support this property or method
    at 
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExcepti
onOrError(HttpCommandProcessor.java:97)
    at 
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcess
or.java:91)
    at 
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcess
or.java:262)
    at 
com.thoughtworks.selenium.DefaultSelenium.getEval(DefaultSelenium.java:435)
    at 
com.thoughtworks.selenium.FlashSelenium.call(FlashSelenium.java:55)
    at 
com.thoughtworks.selenium.FlexUISelenium.at(FlexUISelenium.java:62)
    at 
com.examples.FlexUISeleniumTest.verifyFlexAppSumIsCorrect(FlexUISeleniumTes
t.java:44)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRun
ner.java:99)
    at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner
.java:81)
    at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfter
Runner.java:34)
    at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java
:75)
    at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClas
sMethodsRunner.java:66)
    at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunne
r.java:35)
    at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner
.java:42)
    at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfter
Runner.java:34)
    at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestRe
ference.java:45)
    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 [email protected] on 16 Jul 2009 at 5:30

Attachments:

Demonstration website not available any more

What steps will reproduce the problem?
1. Invited to try out the web application by clicking on supplied link to
go to sample website
2.
3.

What is the expected output? What do you see instead?
Access to website http://www.geocities.com/paulocaroli/flash/colors.html no
longer resolves.

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

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Apr 2010 at 1:01

Geocites has been shutdown

What steps will reproduce the problem?
1. Open Browser
2. Enter "http://www.geocities.com/paulocaroli/flash/colors.html"
3. Click on Go

What is the expected output? What do you see instead?
The Colors.html page should load. When this is done, Yahoo says that
Geocites has been shutdown.

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


Please provide any additional information below.
Could you upload the ColorSquares.swf file to this site, or give a working
link, so that the demo can be tried or recreated?


Original issue reported on code.google.com by [email protected] on 2 Nov 2009 at 1:05

Firefox + big Flash application

Hi everyone,

Have anyone tries to write a tests with SWF with size more than > 4Mb?
I'm using FF 3.6.5 for tests environment. The problem is that when I'm trying 
to launch via selenium SWF page it hangs up for 10-15 seconds, but not only FF 
(swf page and selenium rc) and selenium-server console also.


I'm using selenium-rc (v2.0a2), latest flash selenium sources and HTTPS SWF 
site.

Can anyone have the same situation?

Original issue reported on code.google.com by dchrislee on 8 Nov 2010 at 3:55

Selenium RC with Flex/Flash

Hi,

We need to get some information on the usage of Selenium RC using C# (.net) for 
testing the Flash site. These site is a third party web sites.


Please provide some light on this area. 



Original issue reported on code.google.com by [email protected] on 16 Sep 2010 at 11:01

The FlashSelenium.java will always think the browser is IE

What steps will reproduce the problem?
1. Launch a flash-selenium test in a Firefox browser

What is the expected output? What do you see instead?
The createJSPrefix_window_document method is used, 
the createJSPrefix_document should be used

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


Please provide any additional information below.
I believe line 20 of FlashSelenium.java should be changed from:
if (indexOfMicrosoft != "-1"){
to
if (!indexOfMicrosoft.equals("-1")){

Original issue reported on code.google.com by [email protected] on 25 Aug 2008 at 10:23

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

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 [email protected] on 17 Nov 2008 at 9:43

not able to check out code from http://flash-selenium.googlecode.com/svn/trunk/flash-selenium-read-only

Please let me know if this path is correct?
http://flash-selenium.googlecode.com/svn/trunk/flash-selenium-read-only

with this path I'm not able to check out the code.

What steps will reproduce the problem?
1.
2.
3.

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


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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Jan 2010 at 1:24

Calling functions from nested objects

I'm hitting a wall trying call a function in a nested object. In the code 
below, I'm trying to access myflash.player.play.  

    public void setUp() {
        selenium = new DefaultSelenium("localhost", 4444, "*firefoxproxy",Constants.MY_URL);
        selenium.start();
        flashApp = new FlashSelenium(selenium, "myflash");

        selenium.open(Constants.MY_URL);
}
    public void tearDown() {
        selenium.stop();
    }

public void testChannelPlay() {
        assertEquals(100, flashApp.PercentLoaded());
        flashApp.call("player.play");


In the above script, myflash is started successfully and the first assertEquals 
succeeds, but I cannot access play either by the flashApp.call above 
("player.play") or by using ("play").  "player.play" returns an object not 
found exception while "play" returns a function not found.  

Any ideas on how I can make this work?  

Thanks in advance.

What steps will reproduce the problem?
1. Create a test that attempts to call a function in a nested object


What is the expected output? What do you see instead?
expected output: call succeeds
actual output: no object found exception if I include the nested object in the 
flashApp.call(), no function found exception if I exclude it

What version of the product are you using? On what operating system?
1.0 on Win XP

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 8 Sep 2010 at 6:18

Not able to call ExternalInterface functions within local swf file

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 [email protected] on 18 Feb 2010 at 10:44

Attachments:

FlashSelenium.java - createJSPrefix_browserbot fails for iframe embedded swf file

What steps will reproduce the problem?
1. Create a sample html file with iframe which refers to another html with 
swf file
2. Now create flash-seleniu object and tried to call the ExternalInterface 
function but the script fails.
3.

What is the expected output? What do you see instead?
For swf embedded inside iframe doesn't work.
13:44:16.676 INFO - Got result: ERROR: Threw an exception: 
this.browserbot.findElement("clickcolors").PercentLoaded is not a function 
on session 7824dd0bb8ae46d0bd6340d55568d2e1
com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
this.browserbot.findElement("clickcolors").PercentLoaded is not a function

What version of the product are you using? On what operating system?
Windows 7, flash-selenim-java-1.0

Please provide any additional information below.
Please refer to attached files , which I used for the testing.

Original issue reported on code.google.com by [email protected] on 2 Feb 2010 at 10:42

Attachments:

Unable to access flash objects

What steps will reproduce the problem?
1. I am trying to test a flash web application using flash selenium. The app 
has a button named "_addBtn". I want to click this button. However, I am not 
able to access the button at all. Below is the code I am using

string clickobjid = "_addBtn";
flashapp.Call("click", new string[] { clickobjid, "" });

What is the expected output? What do you see instead?
I expect the add button to be clicked. But nothing seems to happen

How can I access tflash object (in my case a button) using flash selenium

Original issue reported on code.google.com by [email protected] on 27 Sep 2010 at 10:04

Jar is Class version 50 (Java 6)

What steps will reproduce the problem?
1. Building and running demo ColorsTest using 
flashselenium-java-client-extension.r25.jar on java 1.5 jdk

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

Success

Bad version number in .class file when building my project

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

flashselenium-java-client-extension.r25.jar

Original issue reported on code.google.com by [email protected] on 6 Mar 2009 at 5:01

No build file to build java project

What steps will reproduce the problem?
1. Check out from subversion
2. Try to build jar for 1.5 jdk
3. Fail as no build.xml

Please consider a build script to enable people to build your project.

Original issue reported on code.google.com by [email protected] on 6 Mar 2009 at 5:02

ERROR: Threw an exception: window.document.clickcolors

Will really appriciate. Can you guys please help to resolve this ? What am
I missing in order to run the sample tests.

What steps will reproduce the problem?
1. Running the ColorTest sample code
2. Does not run with 
flashApp = new FlashSelenium(selenium, "clickcolors");
3. Also, does not run with 
flashApp = new FlashSelenium(selenium, "coloredSquare");
4. Getting similar error on other Sample tests like 'Sum'

What is the expected output? What do you see instead?
1. Test should work fine

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

IE 6.0 and FireFox 3.0.10 on Windows XP Prefessional

Please provide any additional information below.

com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception:
window.document.coloredSquare is undefined
    at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrE
rror(HttpCommandProcessor.java:97)
    at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.ja
va:91)
    at
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.ja
va:262)
    at com.thoughtworks.selenium.DefaultSelenium.getEval(DefaultSelenium.java:435)
    at com.thoughtworks.selenium.FlashSelenium.call(FlashSelenium.java:55)
    at
com.thoughtworks.selenium.FlashSelenium.PercentLoaded(FlashSelenium.java:95)
    at 

Original issue reported on code.google.com by [email protected] on 22 May 2009 at 5:42

not able to try expample given in site

What steps will reproduce the problem?
1. The geo cities link is expired, not able to get how to use this code
2.
3.

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


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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Nov 2009 at 1:12

  • Merged into: #29

Fusion Chart Testing

What steps will reproduce the problem?
1.
2.
3.

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


What version of the product are you using? On what operating system?
Selinium RC with Junit on Eclipse

Please provide any additional information below.
Could anyone help out with information on how to test Fusion charts with 
Seleium RC???


Original issue reported on code.google.com by [email protected] on 9 Jun 2009 at 4:48

flashApp.call("getColor") showing method call is not valid

What steps will reproduce the problem?
1. flashApp.call("getColor")
2. flashApp.call("Click")
3.

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


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


Please provide any additional information below.

 I am using eclipse for the Junit test. In the code, the flashApp.call
("getColor"),flashApp.call("click") etc shows the method call is invalid 
as given below.

:The method call(String, String[]) in the type FlashSelenium is not 
applicable for the arguments 
 (String)

Please let me know, what is wrong in this.

Thanks
Arun.

Original issue reported on code.google.com by [email protected] on 9 Jun 2009 at 5:01

niether of coloredSquare or clickColor worked.

What steps will reproduce the problem?
1. I followed as per instructions in http://code.google.com/p/flash-
selenium/ --> gor error
2. Changed to "coloredSquare" from "clickcolors" both gives same error.


What is the expected output? What do you see instead?
>>Clicking on colored square

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

Selenium Rc Version : v1.0-beta-2 [2571],
Selenium  Core v1.0-beta-2 [2330]
flashselenium-java-client-extension-1.0.jar (featured release, compatible 
with SRC 1.0)

IE:7,
FireFox:3.0


Please provide any additional information below.
I get this error with coloredSquare and clickcolors:
"com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
this.browserbot.findElement("coloredSquare").getColor is not a function"


If you can share the environment, version of IE/Firefox, Selenium RC, 
Core, flashselenium-java-client used to get expected result that would 
bring this to life.
Also let us know where to place the ColoredSquare.as file.

Thanks and Regards,

Original issue reported on code.google.com by [email protected] on 16 Jul 2009 at 7:11

Is it Bug: Creating flashApp with id="clickcolors" doesnt work but instead with name="coloredSquare" it works.


What steps will reproduce the problem?
Original sample selenium code available here fails to execute flashApp. Its
created using this statement:
flashApp = new FlashSelenium(selenium, "clickcolors"); 
"clickcolors" is the id of object in colors.html

What is the expected output? What do you see instead?
But if I create flashApp instance using name of embed object in colors.html
page, it works. 
flashApp = new FlashSelenium(selenium, "coloredSquare");

Please let me know if I am not doing it correctly, or I missed out anything. 


Original issue reported on code.google.com by [email protected] on 4 May 2009 at 6:11

C# Element not found for flash

I would like to have a test that would verify a flash game loads when coming to 
a website.  When i run my code, it gives me an error saying the element of the 
flash game ID is not found.  I found the ID be using xpath.
But there is an ad before the flash game that lasts 20 seconds and it is giving 
me this error before the 20 seconds is up.  So i think i need a way to wait.  

Code i am using:

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;
using FlashSelenium;

namespace SeleniumTests
{
    [TestFixture]
    public class Untitled
    {
        private FlashSelenium.FlashSelenium flashApp;
        private ISelenium selenium;
        private StringBuilder verificationErrors;
        private static String URL = "http://www.greatdaygames.com/";


        [SetUp]
        public void SetupTest()
        {

            selenium = new DefaultSelenium("localhost", 4444, "*chrome", URL);
            selenium.Start();
            verificationErrors = new StringBuilder();
        }

        [TearDown]
        public void TeardownTest()
        {
            try
            {
                selenium.Stop();
            }
            catch (Exception)
            {
                // Ignore errors if unable to close the browser
            }
            Assert.AreEqual("", verificationErrors.ToString());
        }

        [Test]
        public void FlashLoad()
        {
            selenium.Open("/");
            selenium.Click("//form[@id='aspnetForm']/center/div/div/div[3]/div[2]/div[2]/div[1]/div[1]/div[2]/div/a/span");
            selenium.WaitForPageToLoad("30000");
            selenium.Click("//form[@id='aspnetForm']/center/div/div/div[2]/div[2]/div[1]/div[3]/div/a[1]");
            selenium.WaitForPopUp("", "30000");
            flashApp = new FlashSelenium.FlashSelenium(selenium, "flashGameID");
            Assert.Equals(100, flashApp.PercentLoaded());
            }

        }
    }
}

Original issue reported on code.google.com by [email protected] on 2 Sep 2010 at 5:16

Unable to call a ActionScript Method from Python Client Driver using Flash Selenium

What steps will reproduce the problem?
1. Created a simple Flex 3 application with just one button Object
2. Created an ActionScript Function and added it to 
ExternalInterface.addCallback() to be able to call it from PythonClient 
Driver.
3. Created a Python Selenium Client Driver

What is the expected output? 
The  ActionScript Function Gets called from Python Client Driver

What do you see instead?
An Error in Selenium RC Server side - Object Doesn't support this property 
or method. 
Error on the Client Side is  while executing 
self.seleniumObj.get_eval(self.jsForFunction(functionName, list
(parameter))). 
The get_eval fails for window.document['Trial']. 



What version of the product are you using? On what operating system?
Flash Selenium Client Driver  - Flash-Selenium_python_client_r37.zip 
Operating System - Windows 

Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 12 Feb 2009 at 5:28

Attachments:

Cant capture the text in flexalert object.



flashApp.call("getFlexText", "automationName=index:4","text").

Getting an error element not found.Pls suggest any alternative to capture 
text in flexalert using flashselenium.

Regards,
shivaji


Original issue reported on code.google.com by [email protected] on 2 Dec 2009 at 7:12

niether of coloredSquare or clickColor worked.

What steps will reproduce the problem?
1. I followed as per instructions in http://code.google.com/p/flash-
selenium/ --> gor error
2. Changed to "coloredSquare" from "clickcolors" both gives same error.


What is the expected output? What do you see instead?
>>Clicking on colored square

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

Selenium Rc Version : v1.0-beta-2 [2571],
Selenium  Core v1.0-beta-2 [2330]
flashselenium-java-client-extension-1.0.jar (featured release, compatible 
with SRC 1.0)

IE:7,
FireFox:3.0


Please provide any additional information below.
I get this error with coloredSquare and clickcolors:
"com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
this.browserbot.findElement("coloredSquare").getColor is not a function"


If you can share the environment, version of IE/Firefox, Selenium RC, 
Core, flashselenium-java-client used to get expected result that would 
bring this to life.
Also let us know where to place the ColoredSquare.as file.

Thanks and Regards,

Original issue reported on code.google.com by [email protected] on 16 Jul 2009 at 7:11

  • Merged into: #23

ERROR: Threw an exception: window.document.clickcolors.PercentLoaded is not a function on session

What steps will reproduce the problem?
1. compile sample code from http://code.google.com/p/flash-selenium/
2. run test

What is the expected output? What do you see instead?
expected: during test, should click and different colors should display.
instead: did not see different colors display and test failed.

What version of the product are you using? On what operating system?
-windows xp
-selenium-server.jar version: v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
-firefox 3.0.7

Please provide any additional information below.
selenium-server console output
15:46:26.343 INFO - Launching Firefox...
15:46:30.250 INFO - Got result: OK,74da73a986564a79975233f50d5fc310 on
session 74da73a986564a79975233f50d5fc310
15:46:30.250 INFO - Command request: getEval[navigator.userAgent, ] on
session 74da73a986564a79975233f50d5fc310
15:46:30.281 INFO - Got result: OK,Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729) on
session 74da73a986564a79975233f50d5fc310
15:46:30.281 INFO - Command request:
open[http://www.geocities.com/paulocaroli/flash/colors.html, ] on session
74da73a986564a79975233f50d5fc310
15:46:31.406 INFO - Got result: OK on session 74da73a986564a79975233f50d5fc310
15:46:31.406 INFO - Command request:
getEval[window.document['clickcolors'].PercentLoaded();, ] on session
74da73a986564a79975233f50d5fc310
15:46:31.437 INFO - Got result: ERROR: Threw an exception:
window.document.clickcolors.PercentLoaded is not a function on session
74da73a986564a79975233f50d5fc310


Original issue reported on code.google.com by [email protected] on 26 Jun 2009 at 11:40

Unable to create object for FlashSelenium.FlashSelenium

What steps will reproduce the problem?
1. Add new FlashSelenium.dll in to the project
2. declare private FlashSelenium.FlashSelenium flashApp
3. create an oblect of  ISelenium 
4. Intialize selenium
5. start selenium
6. flashApp = new FlashSelenium.FlashSelenium(selenium,"flashObjectId");

What is the expected output? What do you see instead?
flashApp object should be intialized or created.
but i see 
Error   14 The type 'Selenium.ISelenium' is defined in an assembly that is 
not referenced. You must add a reference to 
assembly 'ThoughtWorks.Selenium.Core, Version=0.0.0.0, Culture=neutral, 
PublicKeyToken=null'.   

Error   15  The best overloaded method match 
for 'FlashSelenium.FlashSelenium.FlashSelenium(Selenium.ISelenium, 
string)' has some invalid arguments

Error   16  Argument '1': cannot convert from 'Selenium.ISelenium 
[c:\TestSolution\Referenced Assemblies\ThoughtWorks.Selenium.Core.dll]' 
to 'Selenium.ISelenium []'
What version of the product are you using? On what operating system?
Selenium nightly build and flashselenium revision 25
Windows XP
Visual Studio Test Team 2008
Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Nov 2008 at 9:33

issue with getflexexists


when we use the following statement
flashApp.call("getFlexExists","automationName=OK","")
if object exists it resturns true.
if object doesnt exist flex application got hanged for awhile.

because of the hanging it is taking lot of time.

please suggest alterative method.






Original issue reported on code.google.com by [email protected] on 7 Dec 2009 at 1:35

window.document.clickcolors is undefined

What steps will reproduce the problem?
1. Run the sample Colors test.


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

I expect the test to pass.  Instead, I see this error.

com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception:
window.document.clickcolors is undefined
http://code.google.com/hosting/settings
What version of the product are you using? On what operating system?

flashselenium.jar....latest.
Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 17 Dec 2008 at 6:29

impossible to call function from the flash file.

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 [email protected] on 8 Apr 2009 at 3:04

ERROR: Threw an exception: window.document.LoginApp has no properties on session 566935

What steps will reproduce the problem?

    private Selenium selenium;
    private FlashSelenium flashApp;
    private final static String URL =
"http://localhost/LoginApp/LoginApp.html";

    @Override
    public void setUp() throws Exception {
    super.setUp();
        selenium = new DefaultSelenium("localhost",4444, "*firefox 
C:\\Program Files\\Mozilla Firefox\\firefox.exe", URL);
        selenium.start();
        flashApp = new FlashSelenium(selenium,"LoginApp");
        selenium.open(URL);
        assertEquals(100, flashApp.PercentLoaded());

    } 

What is the expected output? What do you see instead?
I was expecting to see mouse click event on the browser. Instead i am
seeing only the browser but no actions

What version of the product are you using? On what operating system?
I am using flashselenium-java-client-extension.jar in Windows XP. Browser
is FireFox2

Please provide any additional information below.
I am setting the object id in the html to be my id in the flashApp = new
FlashSelenium(selenium,"objectid_in_the_html");

Pls find the attached snapshot for reference

Original issue reported on code.google.com by [email protected] on 12 Feb 2009 at 1:34

Attachments:

How to pas parameters to the Extrenalized API call and get the output?

What steps will reproduce the problem?
1. Lets say am attempting to test Login functionality. Since I don't have
controls to get the Flex App UI components values, How do I pass the
Username & Password for the Login test from my test code?
 assertEquals("LoginPage", seleniumIns.getTitle()); 
 flashApp.call("successLogin");             assertEquals(LOGIN_STATUS_SUCCEES,
  flashApp.call("getLoginStatus"));

What I wanted is status = flashApp.call(doLogin("userName", "password"))
assertEquals("true", status)
or if the function returns object, then we need to have a way to verify
objects.

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

What version of the product are you using? On what operating system?
recent flash-selenium-java-client extn on Windows XP SP3 machine

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Oct 2008 at 9:17

Flash-Selenium Java Client doesnt work with Firefox 3.0.12

Affected sw:
  Flash-Selenium Java client 0.9.2
  or
  Flash-Selenium Java client 1.0
with FireFox 3.0.12

Try to use a FlashSelenium api:

selenium = new DefaultSelenium("localhost", 4444, "*firefox", URL);
selenium.start();
flashApp = new FlashSelenium(selenium, "MyFlashApp");
while (flashApp.PercentLoaded() != 100) {
   Thread.sleep(1000);
}

When trying to execute the PercentLoaded() function, an exception is thrown

NPMethod called on non-NPObject wrapped JSObject!

Workaround:
install FireFox 3.0.11

Original issue reported on code.google.com by [email protected] on 27 Jul 2009 at 10:07

  • Merged into: #31

Flash selenium does not work with Firefox 3.5

When trying to access methods which are externalized using Flash
ExternalInterface and using Firefox 3.5, following error message is thrown.
Calling methods in flash movies using Firefox 3.0 just works perfect !

-============================================-
Failure:
Selenium.SeleniumException : ERROR: Threw an exception: NPMethod called on
non-NPObject wrapped JSObject!
at Selenium.HttpCommandProcessor.DoCommand(String command, String[] args)
at Selenium.HttpCommandProcessor.GetString(String commandName, String[] args)
at Selenium.DefaultSelenium.GetEval(String script)
at TestFlash.FlashTest.Call(String functionName, String[] parameters)
at TestFlash.FlashTest.PercentLoaded()
-============================================-

Original issue reported on code.google.com by [email protected] on 11 Sep 2009 at 10:28

Continuing issues with NPMethod


After discussion with Sachin Sudheendra about continuing issues with
Firefox (FF) 3.5 and NPMethod, this issue is being created.  It is related
to closed issues 17, 27, 31 and perhaps others.

The NPMethod error has also plagued my group. Below is what is currently
working for us.  It uses code from the closed issues.

Note that we are not javascript experts in any sense of the word.  Any
mistakes or uninformed uses of javascript in the attachments are purely our
own.  In particular, we're unaware of the (in)efficiencies of javascript
string methods.


Information on our environment:
  We use Java.
  Our product code is unavailable for direct linking with test libraries
(maybe irrelevant).
  The target node is different than the "test head" node that runs the
browser, Selenium server, Flash Selenium...
  The target node is often in a different domain than the test head.
  The "test head" OS is Windows (many flavors), or Linux (RHEL); however,
we haven't yet tried this on our Linux test heads.


What we are using, in no particular order:
  selenium-remote-control-1.0.1:
      selenium-java-client-driver.jar
      selenium-server.jar
  Selenium's RemoteControlConfiguration class; our automated tests start
the server as needed
  A modified version of user-extensions_20100113.js, which we found in
      Comment 21 of http://code.google.com/p/flash-selenium/issues/detail?id=27
  A modified (com.thoughtworks.selenium.Selenium) FlashSelenium.java file
  Before calling selenium.start(), we call
      selenium.setExtensionJs("our mods of user-extensions_20100113.js");
  FF 3.5.5   [ our initial attempts with FF 3.6 were unsuccessful ]
  A new profile for FF 3.5.5; our older profile for FF 3.0.9 did not work 
  *chrome, NOT *firefoxproxy (which does not work for us):
      e.g., new DefaultSelenium(<host>, <port>, "*chrome", <url>)


Our modifications to user-extensions_20100113.js:
  We reduced it to 3 methods, solely to simplify our work
  The removed methods seem to be convenience methods, easily re-added if
needed.
  The workhorse method, Selenium.prototype.callFlexMethod, was modified
only for FF:
      Fixing it for Internet Explorer is hopefully straightforward.
      It now looks for more arguments (uses 'arguments' instead of just
"args");
          without this change, some of our tests (which used to work) were
failing.
      Apologies for any misinterpretation of the code used for
input.setAttribute().


Our modifications to FlashSelenium.java:
  It references our modified version of user-extensions_20100113.js.
  The PercentLoaded() method returns 0 instead of throwing an exception on
"false,"
      giving containing code a bit more control.  For example:
          while (PercentLoaded() != 100 && !timedOut) {...}


What we'd like to get to, with this posting:
  Something as simple as that listed by bjdelamare in Comment 5 of
      http://code.google.com/p/flash-selenium/issues/detail?id=31.
      [ We're not ASP.NET experts either ]
  Something simpler than having to create a hidden button?
  An open-source supported fix for the NPMethod problem.


From an earlier posting: There is information on
http://www.mozilla.com/en-US/firefox/releases/ about FF releases
3.0.10/11/12.  Kudos to whoever can figure out which security statement
relates to the NPMethod problem.


Original issue reported on code.google.com by [email protected] on 8 Feb 2010 at 10:41

Attachments:

Flash selenium is not working with safari on Mac OS

What steps will reproduce the problem?

flashApp = new FlashSelenium(selenium,"app");
flashApp.PercentLoaded()

The above statement throws an error as
Got result: ERROR: Threw an exception: Result of expression 'document['app']' 
[undefined] is not 
an object. on session abb834c7e1e14273ae2c56759c26128a

What is the expected output? What do you see instead?
I expected it to work as it is worinking properly in win xp on IE6. its not 
working with safari on 
Mac os

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

Mac os 10.6 snow leopard, safari 4.0.3
Please provide any additional information below.

my scripts are running fine in windows xp  with IE6 properly very well and good 
knowledge in 
selenium flash.

Please help on theis


Original issue reported on code.google.com by [email protected] on 25 Feb 2010 at 11:06

Firefox + big Flash application

Hi everyone,

Have anyone tries to write a tests with SWF with size more than > 4Mb?
I'm using FF 3.6.5 for tests environment. The problem is that when I'm trying 
to launch via selenium SWF page it hangs up for 10-15 seconds, but not only FF 
(swf page and selenium rc) and selenium-server console also.


I'm using selenium-rc (v2.0a2), latest flash selenium sources and HTTPS SWF 
site.

Can anyone have the same situation?

Original issue reported on code.google.com by dchrislee on 8 Nov 2010 at 3:55

Documentation for flash-selenium required

Do we have documentation for flash-selenium? if yes please share the same

What steps will reproduce the problem?
1.
2.
3.

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


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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Jan 2010 at 11:29

Firefox + big Flash application

Hi everyone,

Have anyone tries to write a tests with SWF with size more than > 4Mb?
I'm using FF 3.6.5 for tests environment. The problem is that when I'm trying 
to launch via selenium SWF page it hangs up for 10-15 seconds, but not only FF 
(swf page and selenium rc) and selenium-server console also.


I'm using selenium-rc (v2.0a2), latest flash selenium sources and HTTPS SWF 
site.

Can anyone have the same situation?

Original issue reported on code.google.com by dchrislee on 8 Nov 2010 at 3:55

python: window.document.clickcolors is undefined

What steps will reproduce the problem?
1. start selenium-remote-control-1.0-beta-2 
2. run the python test script below

from ammado.common.flashselenium.FlashSelenium import FlashSelenium
from ammado.common.flashselenium.selenium import selenium

uat = "http://www.geocities.com/paulocaroli/flash/colors.html"
browserType = "*firefox"
selenium = selenium("localhost", 4444, browserType, uat)
selenium.start()
selenium.open(uat)
flashApp = FlashSelenium(selenium, "clickcolors")
print flashApp
flashApp.percent_loaded()

What is the expected output? 
The percent loaded method should be sucessfully called.

What do you see instead?
Exception: ERROR: Threw an exception: window.document.clickcolors is 
undefined

What version of the product are you using? On what operating system?
Windows Server 2003
selenium-remote-control-1.0-beta-2
Flash-Selenium_python_client_r37


Please provide any additional information below.

Has anyone managed to get this working with python?

Original issue reported on code.google.com by [email protected] on 15 May 2009 at 9:47

Getting object doesn't support

What steps will reproduce the problem?
public void testSetUp(){
        flashApp = new FlashSelenium(selenium, "clickcolors");
        selenium.open("Flex3StyleExplorerTest/colors.html");
        assertEquals(GREEN, flashApp.call("getColor"));
        assertEquals("(Click here)", flashApp.call
("getSquareLabel"));
        flashApp.call("click");
}
What is the expected output? What do you see instead?
color should change in webpage, butcolor s not changed and getting web 
page error.
 Webpage error details


Message: Object doesn't support this action
Line: 48
Char: 3
Code: 0
URI: http://localhost:8080/Flex3StyleExplorerTest/colors.html

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

flashselenium-java-client-extension-1.0 
Windows XP, IE 8


Please provide any additional information below.
Junit test is passed but getting web page error

Original issue reported on code.google.com by [email protected] on 9 Apr 2010 at 10:19

window.document.clickcolors has no properties

 am using firefox with the url 
http://www.geocities.com/paulocaroli/flash/colors.html 
to test flash 
But i am getting the follwing error 

SeleniumCommandError: ERROR: Threw an exception: 
window.document.clickcolors has no properties 
    D:/ruby/lib/ruby/site_ruby/1.8/selenium.rb:164:in `do_command' 
    D:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' 
    D:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' 
    D:/ruby/lib/ruby/site_ruby/1.8/selenium.rb:148:in `do_command' 
    D:/ruby/lib/ruby/site_ruby/1.8/selenium.rb:172:in `get_string' 
    D:/ruby/lib/ruby/site_ruby/1.8/selenium.rb:936:in `get_eval' 
    D:/ruby/lib/ruby/site_ruby/1.8/FlashSelenium.rb:43:in `call' 
    D:/ruby/lib/ruby/site_ruby/1.8/FlashSelenium.rb:54:in 
`percent_loaded' 
    Colors.rb:34:in `test_new' 
please help me in this regard. 



Original issue reported on code.google.com by [email protected] on 7 Jan 2009 at 10:39

Window.Document.clickcolors or Window.Document.coloredSquare is null or undefined in IE 7 and Firefox 3.0

What steps will reproduce the problem?
1. Copy the code given
2. run it thru JUnit from eclipse
3.

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

-:Expecting selenium will call all the flash functions through the test by 
invoking external interfaces functions instead i am getting errors below:
 ----15:20:27.609 INFO - Command request: getEval
[this.browserbot.findElement("colore
dSquare").getSquareLabel('','');, ] on session 
f1c45df136464a0fbc7e0b3e611dc4de
15:20:27.640 INFO - Got result: ERROR: Threw an exception: Error calling 
method
on NPObject! [plugin exception: Error in Actionscript. Use a try/catch 
block to
find error.]. on session f1c45df136464a0fbc7e0b3e611dc4de

---------and the command history shows like this:
getTitle()
setContext(f1c45df136464a0fbc7e0b3e611dc4de)
open(http://www.geocities.com/paulocaroli/flash/colors.html)
getEval(this.browserbot.findElement("coloredSquare") == null)
getEval(this.browserbot.findElement("coloredSquare").getSquareLabel(''...


What version of the product are you using? On what operating system?
-: Selenium RC v1.0 beta-2[2571] with Core v1.0-beta-2 on Windows XP

Please provide any additional information below.

 I first tried and declared the flash object as: 
 flashApp = new FlashSelenium(selenium, "clickcolors");

then again with coloredSquare as i saw somewhere they asked to change:
  flashApp = new FlashSelenium(selenium, "coloredSquare");

 But both gave me the same error.


Original issue reported on code.google.com by [email protected] on 6 Jun 2009 at 9:56

  • Merged into: #31

How to record swfUpload button for clicking and assigning files need to upload?

What steps will reproduce the problem?
1. Open http://demo.swfupload.org/v220/multiinstancedemo/index.php
2. How to record selenium script in this scenario?

What is the expected output? What do you see instead?
- Please give me the sample script on this scenario.

What version of the product are you using? On what operating system?
Windows XP, Fire Fox

Please provide any additional information below.
Need to record the following action.
1. Click on Upload button.
2. Select file from the browse window.
http://demo.swfupload.org/v220/multiinstancedemo/index.php

Original issue reported on code.google.com by [email protected] on 9 Sep 2009 at 11:19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.