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
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
Hi Paul,
Thanks for your quick reply.
Unfortunately it doesn't work. I forgot to mention that I did try that before posting here. The error message is exactly the same and the reason is that it is Prototype1.6 that is being used since it is the last one imported (from my application). I could put an empty file in the selenium-rc and it wouldn't matter since my application overrides it.
Therefore, it is probably some selenium code that accesses that prototype library that is at fault.
Any other ideas would be welcome
François
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]
