0
votes

I'm trying to run Selenium RC against my ASP.NET code running on a Cassini webserver.

The web application works when i browse it directly but when running through Selenium I get

HTTP ERROR: 403
Forbidden for Proxy


Running Selenium i interactive mode I start a new session with:

cmd=getNewBrowserSession&1=*iexplore&2=http://localhost:81/  
cmd=open&1=http://localhost:81/default.aspx&sessionId=199578

I get the above error in the Selenium browser, the command window tells me OK.


Any input?

4

4 Answers

1
votes

I think the problem is that both Selenium and the webserver is running on localhost.
It works if I run with the "iehta" instead of "iexplore".

1
votes

Your Selenium server and web server should run of different ports.

1
votes

I am not sure if this is part of the issue but, cassini can not be accessed from another machine. It is meant for local development only. I ran into this problem today and am trying UltiDev (cassini wrapper) to get around it: http://www.ultidev.com/products/Cassini/index.htm

0
votes

Have you tried running RC with the -proxyInjection flag?