My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 1: The FlashSelenium.java will always think the browser is IE
3 people starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  sachin.sudheendra
Cc:  sachin.sudheendra, paulocaroli, mentorn
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by tomeast, Aug 25, 2008
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")){
Comment 1 by ybhole, Sep 22, 2008
I face problem while running flash selenium for Firefox browser. I load flash movie 
and use call method with function name as paramater. But FlashSelenium throws the 
exception saying Object dont have properties.

I am not sure but may be when using firefox flash movie can be accessed using 
ExternalInterface API. 
Comment 2 by Densildesilva, Oct 15, 2008
Me too have the same problem with firefox. But it works with IE-6 through.
Comment 3 by paulocaroli, Oct 29, 2008
(No comment was entered for this change.)
Status: Started
Cc: sachin.sudheendra
Comment 4 by paulocaroli, Oct 30, 2008
Sachin Sachin is looking in this issue.
It seems to be a new issue as flash-selenium was working fine for Firefox and IE in
the beginning of 2008.

Owner: sachin.sudheendra
Comment 5 by ybhole, Oct 31, 2008
Hello FlashSelenium Team,

I used Firefox 2.0.0.16 and Flash Selenium from SVN respository revison 22 and when 
I call methods which are exposed to ExternalInterface (using addCallback method)all 
the time I get exception message "Flash Movie do not have properties". The same 
exception is not seen in IE 7. Even the native methods like PercentLoaded(), 
IsPlaying() throws the same exception for Firfox.

Eagerly waiting for this issue to fix. Thank you for the great work..

Best Regards !

/ Yogesh
Comment 6 by sachin.sudheendra, Nov 04, 2008
The Java and .NET Client has been fixed. Now it supports both Firefox 2 and Firefox 
3.
Status: Fixed
Cc: paulocaroli mentorn
Comment 8 by karthik.bachu, Nov 24, 2008
Hello FlashSelenium Team,

  I am using the latest FlashSelenium.dll (revision 25 build) and i am trying to 
click on a "flashobject" of our project. Still i am seeing "flashobjectid do not 
have properties" error on firefox3 and firefox2.I just included the new dll in my 
project. Do i need to do any thing more to overcome this issue?
Comment 9 by sachin.sudheendra, Nov 24, 2008
Hey Karthik,

Have you externalized the action associated with the click? Just to be sure, does the
same work when IE is used by Selenium?
Comment 10 by karthik.bachu, Nov 26, 2008
It's not working in IE too, I am getting 
A first chance exception of type 'Selenium.SeleniumException' occurred in
ThoughtWorks.Selenium.Core.dll
'flashApp.Call("clickHandler")' threw an exception of type 'Selenium.SeleniumException'
    base {System.Exception}: {"ERROR: Threw an exception:
'window.document.flashObjectId' is null or not an object"}

I have externalized the action using ExternalInterface.call method
Comment 11 by ybhole, Nov 30, 2008
I am using r25 flashselenium.dll  and it fixed the problem of firefox. I can call 
externalized function of flash movies.. But now it stopped working with IE7... 
flashApp.PercentLoaded() works in IE7 but flashApp.Call("functionname","Paramater") 
do not work in IE7.

In FF3, flashApp.PercentLoaded()  and flashApp.Call("functionname","Paramater")   
both works fine.
Comment 12 by ybhole, Feb 23, 2009
Any plans to fix for IE7? flashApp.Call("functionname","Paramater") is not working 
with R25 .NET client.
Comment 13 by sachin.sudheendra, Feb 24, 2009
Hey,

I'm currently looking into the issue. I use IE8 (RC1) but let me see if I can
reproduce the same on this browser.
Status: Started
Comment 14 by fsong215, Apr 14, 2009
Hello FlashSelenium Team,

My question seems very....but i'm really find no way to solve it.


I'm using r25 FlashSelenium.dll to try to test the flash movie on the 
page:http://www.geocities.com/paulocaroli/flash/colors.html

But it always stoped at the very beginning: 
flashApp = new FlashSelenium.FlashSelenium(selenium, "clickcolors");

and the exception message is:
Selenium.SeleniumException: ERROR: Threw an exception: window.document.clickcolors 
is undefined.





Comment 15 by martin.tagger, Apr 16, 2009
Hi,
I also have problems getting FlashSelenium to work with this 'clickcolors' sample.
With FF3 it stops at the flashApp.PercentLoaded() line and shows error:
'document.clickcolors has no properties'.
When I try it with IE7 it passes that, also works with getColor, but doesn't make the
click on the box.
Comment 16 by s0ckzz, Jun 27, 2009
I think the problem is about the embed tag and the object tag. You guys should try to
change the id from the object tag and use the embed's tag... It works differently on
each browser (that explains why it doesn't work on FF3 and works a little on IE7)...
Comment 18 by hatami.nader, Oct 22, 2009
Hi,
I have the same problem. I use FF3.5.3. Whenever I want to call:

FlashSelenium flashApp = new FlashSelenium(seleniumBrowser, "NavTabs");
flashApp.PercentLoaded();

the error is:

com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception:
this.browserbot.findElement("NavTabs").PercentLoaded is not a function

Any help is appreciated.

Nader
Comment 19 by error.issue2, Oct 22, 2009
I got rid of "this.browserbot.findElement("")" error by adding Thread.sleep(1000) 
before calling the method. However now I get this 
error "com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
NPMethod called on non-NPObject wrapped JSObject!" on Firefox 3.0 and above and 
don't know what the solution is.
Comment 20 by sachin.sudheendra, Dec 26, 2009
@error. issue2 
http://code.google.com/p/flash-selenium/issues/detail?id=31&can=1
Sign in to add a comment

Hosted by Google Code