Re: Selenium : Permission denied <url> to get property Location.href

Posted by Ganesh on
URL: http://manual-and-automated-testing.232.s1.nabble.com/Selenium-Permission-denied-url-to-get-property-Location-href-tp4378328p4378551.html

Hi Tarun

First of all i would like to thank u v much 4 u r immediate reply.

I have tired using *chrome
but still it produces the  error Permission denied to access property 'document'

Here is my code

        selenium = new DefaultSelenium("localhost",4444,"*chrome","http://www.abc.com");
        selenium.start();  
        selenium.setSpeed("5000");
        selenium.open("/");
        selenium.click("xpath=(//a[contains(text(),'See All Languages')])[3]");
        selenium.waitForPageToLoad("30000");
        selenium.click("xpath=(//a[contains(text(),'English (American)')])[2]");
        selenium.click("link=cart"); ->  it produces the error while executing this stmt,  actually this link ll take us from http://www.abc.com to http://secure.abc.com