Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error while opening browser with selenium RC using JUnit

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
like image 287
Arvind Avatar asked Aug 22 '26 21:08

Arvind


1 Answers

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

See also this SO answer.

like image 66
VonC Avatar answered Aug 24 '26 12:08

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!