Permission denied to get property Location.href

View: New views
14 Messages — Rating Filter:   Alert me  

Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I received the "Permission denied to get property Location.href" error message when trying to load my website under test. The website opens in the lower pain of the TestRunner, but the test seems to fail immediately.
Does anyone know how to fix this problem?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5942&messageID=16629#16629

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This sounds a lot like the Permission denied error due to cross site scripting.  See the Selenium Core FAQ for more information.  Available here: http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5942&messageID=16638#16638

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the input, however, I am only accessing pages with an origin of http.  None of the pages that currently exist have the https origin, yet I still receive this error message.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5942&messageID=16829#16829

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We use cookies as part of the authentication process for the site knowing what user profile you are logged in to the website as.  Does anyone know how cookies are handled by Selenium?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5942&messageID=17264#17264

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, me too facing the same Permission denied msg as the application moves inbetween Http & HttpS pages.
What was the solution to over come this issue. (Presently i'm running the test suite on selenium core)
i couldn't understand\get any idea from the Selenium FAQ section. guide me thru this issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.  I could not find a solution to this problem.  I too did not find any helpful forums to resolve this issue, nor did anyone have anything help to contribute.  I have chosen to go with a different automation tool in the meantime.  Please let me know if you do figure it out as I would be interested in using selenium if I could resolve this issue.  Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm not using a secure http either and I receive this error. Initially you enter our application from a main site, log in and are redirected to a subdomain that is relevant to your metro.

Is there any way to allow for this?

"Unexpected exception of type [Testing_Selenium_Exception] with message [The Response of the Selenium RC is invalid: Permission denied to get property Location.href] in [/usr/local/php5/lib/php/Testing/Selenium.php line 2061]
FAILURES!!!"

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You're still running afoul of the same origin policy.  A solution is to use *chrome or *iehta instead: http://www.openqa.org/selenium-rc/experimental.html.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hey cloeb, when i use chrome or proxyInjectionMode, firefox is opened but the server is hung up at "Launching Firefox..." and nothing happens within the browser

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

same issue with me is solved with testrunner.hta running in ie.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


solved

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

put the slash '/' at the end of the URL if you are trying to reach some directory (in order to see the Index)
that's it.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you tell me how you created hta and placed in core.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5942&messageID=39882#39882

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by R-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi ,

How to run HTA in the selenium core. We want place in application server.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5942&messageID=39975#39975

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-dev-unsubscribe@...
For additional commands, e-mail: selenium-dev-help@...


Re: Permission denied to get property Location.href

by ryan_shillington :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I had this problem when trying to get YAHOO.util.History (from the Yahoo UI or YUI project) to work on my site.  

The problem you're having is described here:

    http://seleniumhq.org/docs/05_selenium_rc.html#the-same-origin-policy

I swear, I read that doc ten times, and although it describes exactly this problem, it doesn't contain the details of the two solutions provided.

To use option [1] that they describe, add "-proxyInjectionMode" as a parameter when starting the selenium-core jar.  To use option [2], try using "iehta".  This paragraph in the link above seems really important:

        In Selenium-RC 1.0 beta 2 and later use *firefox or *iexplore for the run mode. In earlier versions, including Selenium-RC 1.0 beta 1, use *chrome or *iehta, for the run mode. Using these run modes, you will not need to install any special security certificates; Selenium-RC will handle it for you.

You'll want to pass that in when you initialize Selenium.  So in Ruby I create Selenium by doing:

        @selenium = Selenium::SeleniumDriver.new("localhost", 4444, "*firefox", "http://www.usedisbetter.com/", 10000);

R-24 wrote:
I received the "Permission denied to get property Location.href" error message when trying to load my website under test. The website opens in the lower pain of the TestRunner, but the test seems to fail immediately.
Does anyone know how to fix this problem?