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-policyI 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?