This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Oct 9, 2008 11:19 PM by David Schulberg  
David Schulberg Beginner 2 posts since
Oct 7, 2008
Currently Being Moderated

Oct 7, 2008 6:54 PM

Errors trying to open browser window

Hi All,

 

I want to get up and running using Selenium-RC but cannot get it running from work - no problems at home.

 

At the organisation where they use a proxy configuration file I  have doctored it to look like this:

 

function FindProxyForURL(url, host)
{
    if(shExpMatch(url, '/selenium-server/')) {
        return 'PROXY localhost:4444; DIRECT';
    }
    else ...  (all the org's stuff)

 

I replaced the proxy configuration to point to my doctored file by file:///D:/Testing/proxy.pac.

When I get to the step where I expect to get google page to appear using these commands:

 

cmd=getNewBrowserSession&1=*custom D:\Program Files\Mozilla Firefox ver2.0\firefox.exe&2=http://www.google.com

cmd=open&1=http://www.google.com/webhp&sessionId=mysessionId

 

I get HTTP 404 error like:

 

The page - www.google.com/selenium-server/core/RemoteRunner.html?sessionId=b7c77ea3d732495f8e8ecc0df0ee46ef&multiWindow=false&baseUrl=http%3A%2F%2Fwww.google.com&debugMode=false - does not exist.  

 

I have also tried both Firefox 2.0 and IE 8.0 Beta without a proxy (direct connection to Internet) but get this error:

 

HTTP ERROR: 400

Could not proxy http://www.google.com/webhp
java.net.UnknownHostException: www.google.com

RequestURI=/webhp

Powered by Jetty://

 

Any assistance to get me past this blocker would be great.

 

Regards,

David

More Like This

  • Retrieving data ...