3 Replies Last post: Jul 22, 2008 6:38 PM by Eric Nguyen  
Beginner 48 posts since
Mar 1, 2006
Currently Being Moderated

May 6, 2008 11:38 AM

Prototype 1.6

 

Hi,

 

 

I've recently migrated  my application to Prototype 1.6.  Unfortunately, I think I'm encountering a conflict with prototype since I noticed that Selenium still uses Prototype 1.5.

 

 

The error I get is the following:

 

 

[Exception...

"'Permission denied to get property Location.hash' when calling method:

nsIDOMEventListener::handleEvent" nsresult: "0x8057001e

(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::

http://localhost:8080/totaltest/static/js/prototype/prototype.js ::

anonymous :: line 3974" data: no]

 

 

By debugging a bit, I think that this is due to the fact that selenium uses prototype 1.5 and my application uses prototype 1.6.  Therefore, since my protoype.js is imported last, it has precedence on the one selenium uses...and obviously when selenium tries to use it, it fails.

 

 

Is my assumption correct?  Is there a way to workaround this problem?   If my diagnosis is correct, are there any plans to move to prototype 1.6?  If so do you have an approximate ETA?

 

 

Thanks,

 

 

François

 

 

Paul Hammant Pro 173 posts since
Nov 25, 2005
Currently Being Moderated
1. May 6, 2008 11:56 AM in response to: François Eric
Re: Prototype 1.6

Could you try replacing the Prototype source file in the RC jar that you have and trying that?

 

  jar -xvf selenium-server.jar

  cd selenium-server

  ( replace the file )

  jar -cvf ../selenium-server.jar .

 

We'd be interested to hear if it works for you.

 

- Paul

Eric Nguyen Beginner 3 posts since
Jul 22, 2008
Currently Being Moderated
3. Jul 22, 2008 6:38 PM in response to: François Eric
Re: Prototype 1.6

Hello, everyone. I am also having problems with Prototype 1.6, but with Internet Explorer 6. I have a selenium test script set up, currently, that does nothing except load prototype.js. If it's version 1.5.1.2, then everything is fine. If it's version 1.6.0.2, however, I get an "Object expected" error. I'm running the test using the Selenium Remote Control on a Windows XP machine. The error does not appear when loading the page outside selenium.

 

For more clues, here is the stack trace of where error is ocurring in prototype 1.6.0.2. It looks like prototype's new built-in dom:loaded event is causing the problem:

 

- line 3795, at the end of pointer()

- line 3828, at the var pointer assignment

- line 3979, at the end fire()

- lin 246, at the end of methodize()

- line 4009, at the end of fireContentLoadedEvent()

- line 4043, at the end of init()

- line 4056, at the call to init()

 

Does anyone know if a newer version of Selenium will fix the problem, or if there's a workaround?

 

Thanks,
Eric

 

P.S. My Selenium RC version is as follows:

INFO - Java: Sun Microsystems Inc. 1.5.0_08-b03
INFO - OS: Windows XP 5.1 x86
INFO - v0.9.2 [2006], with Core v0.8.3 [1879]

More Like This

  • Retrieving data ...