3

I am getting following error while opening browser with selenium RC using JUnit. Plz help.

com.thoughtworks.selenium.SeleniumException: XHR ERROR: URL = http://www.google.com/ Response_Code = 403 Error_Message = Forbidden
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand

1 Answer 1

1

I would recommend setting as startURL the Ip address of the site you want to test.

See also this SO answer.

2
  • Even that is not working. I guess it has to do something with the proxy setting of browsers because I am accessing internet throgh proxy server. Do I need to mention that proxy server setting somewhere in Selenium RC.
    – Arvind
    Apr 12, 2010 at 11:49
  • @Arvind: maybe like java -jar selenium-server.jar -Dhttp.proxyHost=my.proxy.com -Dhttp.proxyPort=8080 -Dhttp.proxyUser=my_username -Dhttp.proxyPassword=my_password as in wiki.openqa.org/display or seleniumhq.org/docs/05_selenium_rc.html#server-options/SRC/…
    – VonC
    Apr 12, 2010 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.