Thursday, November 13, 2008

Flash Selenium: zZzZZzz, drool....

When we kicked off Flash Selenium, Firefox 2 and IE7 were the only browser(s) that we intended to support. But, the world moved on and most likely we did not. The scene was something of this sort:

Then-
Microsoft: IE 7 is awesome. We rule your world!
Mozilla: Firefox 2 is kick-ass. We'll take over the world with FF2.
Selenium: Oh yeah, these two are here to stay. I'm cool with both of them.
Flash Selenium: Thank god Selenium's got my back.

Now-
Microsoft: IE 8 is better than ever. Lotta ppl agree to this.
Mozilla: To hell with Firefox 2. We'll give out Firefox 3. A better, improved, cutting-edge browser full of c**p! We'll make hell lotta changes to the way things used to work with FF2 and how it'll work with FF3. You damn right we will, coz WE CAN!
Selenium: I'll patch myself to make things work for now. Man these two guys are driving me nuts!
Flash Selenium: zZzZZzz, drool....

So now you see, we thought that we had the most generic solution that was transparent to the outside world and could be used to test even Einstein's Theory Of Relativity, but boy were we wrong! Firefox 3 made some changes to the way Javascript functions were invoked as compared to Firefox 2 and it's only when the issue was logged that we snapped out of our dream and came crashing down to reality.

FF2 used the document. notation while FF3 will use window.document. notation to refer to a document object. I still don't know why Mozilla ended up making this change but Flash Selenium went in for a toss.

The good news is that Revision 25 has the fix for Java and .NET Client of Flash Selenium and we'll fix the rest in few days.

PS: We appreciate the issues that have been logged by our users. Thanks a lot.

9 comments:

DenZie said...

Just want to have the fixed version of the java client . Could you please send me the link. I think the 'java client' on the download tab is the old one.

Thanks

DenZie

Sachin said...

Hey,

The new version has been uploaded. Download it from http://code.google.com/p/flash-selenium/downloads/list

DenZie said...

Thanks Sachin.
You are doing a wonderful job. Keep up the good work.

Yogesh said...

Flash Selenium used to work with IE7 and not with FF2 before. Now it works for FF3 but does not work with IE. I cant use FlashSelenium.Call() method when testing webpage with flash object in IE. Selenium throws exception saying Object doesn't support this property..Same syntax, eveything same but just FF3 works like a charm

Billy said...

Any plans to update the Python Flash Selenium? Would make my day!

Sachin said...

Hey Billy,

I've just uploaded the updated Python client for Flash-Selenium.

Hope it helps. Good luck.

Suresh Perumal said...

Hi,

This is vijay here. I have download Revision 25 of flex selenium from the web "flashselenium-java-client-extension[1].r25".
Still I am getting the issue.
Class path Order as follows.
1. src
2 .jre - 1.6.0_06
3. selenium-java-client-driver.jar
4. flex-ui-selenium-0[1].1.1.jar
5. flashselenium-java-client-extension[1].r25.jar
6. junit-4.6.jar

I am still facing the exception "throws exception saying Object doesn't support this property" issue.

Thanks
Vijay.P

Suresh Perumal said...

Hi Sachin,

Kindly help me in fixing the issue.

Thanks
Vijay.P

Suresh Perumal said...

DenZie,

Is the latest code change which you have downloaded from "http://code.google.com/p/flash-selenium/downloads/list" is working fine.

Kindly provide some details. Still I am getting Object doesn't support this property or method issue.