skaliber / flash-selenium

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

The FlashSelenium.java will always think the browser is IE #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 tome...@gmail.com on 25 Aug 2008 at 10:23

GoogleCodeExporter commented 8 years ago
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. 

Original comment by ybh...@gmail.com on 22 Sep 2008 at 1:16

GoogleCodeExporter commented 8 years ago
Me too have the same problem with firefox. But it works with IE-6 through.

Original comment by Densilde...@gmail.com on 15 Oct 2008 at 10:22

GoogleCodeExporter commented 8 years ago

Original comment by paulocar...@gmail.com on 30 Oct 2008 at 4:35

GoogleCodeExporter commented 8 years ago
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.

Original comment by paulocar...@gmail.com on 31 Oct 2008 at 5:17

GoogleCodeExporter commented 8 years ago
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

Original comment by ybh...@gmail.com on 31 Oct 2008 at 10:20

GoogleCodeExporter commented 8 years ago
The Java and .NET Client has been fixed. Now it supports both Firefox 2 and 
Firefox 
3.

Original comment by sachin.s...@gmail.com on 4 Nov 2008 at 1:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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?

Original comment by karthik....@gmail.com on 24 Nov 2008 at 3:59

GoogleCodeExporter commented 8 years ago
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?

Original comment by sachin.s...@gmail.com on 25 Nov 2008 at 5:33

GoogleCodeExporter commented 8 years ago
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

Original comment by karthik....@gmail.com on 26 Nov 2008 at 4:34

GoogleCodeExporter commented 8 years ago
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.

Original comment by ybh...@gmail.com on 30 Nov 2008 at 5:19

GoogleCodeExporter commented 8 years ago
Any plans to fix for IE7? flashApp.Call("functionname","Paramater") is not 
working 
with R25 .NET client.

Original comment by ybh...@gmail.com on 23 Feb 2009 at 9:39

GoogleCodeExporter commented 8 years ago
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.

Original comment by sachin.s...@gmail.com on 24 Feb 2009 at 10:00

GoogleCodeExporter commented 8 years ago
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.

Original comment by fsong...@gmail.com on 14 Apr 2009 at 7:24

GoogleCodeExporter commented 8 years ago
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.

Original comment by martin.t...@gmail.com on 16 Apr 2009 at 12:13

GoogleCodeExporter commented 8 years ago
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)...

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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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

Original comment by hatami.n...@gmail.com on 22 Oct 2009 at 6:35

GoogleCodeExporter commented 8 years ago
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.

Original comment by error.is...@gmail.com on 22 Oct 2009 at 7:49

GoogleCodeExporter commented 8 years ago
@error.issue2
http://code.google.com/p/flash-selenium/issues/detail?id=31&can=1

Original comment by sachin.s...@gmail.com on 26 Dec 2009 at 1:53

GoogleCodeExporter commented 8 years ago
i am using Internet Explorer version 8.0.6001.18702 & Chiper Strength 128 bits.

But my Flash application is not showing in explorer. I am trying to run this 
from 

Tomcat server. 

So can any one tell me that Flash-Selenium support which version of Internet 
explorer with all the listing. plz

Original comment by amit.min...@gmail.com on 22 Jun 2011 at 5:58