java -version
You should see a brief message telling you what version of Java is installed, like this:
If you see a lower version number instead, you may need to install a newer version of the JRE, or you may need to add it to your PATH environment variable.java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)
First, finish reading the tutorial. Make sure you read the section about the "Same Origin Policy" carefully.
If you're getting a 404 error while attempting to open a page on "http://www.google.com/selenium-server/", then it must be because the Selenium Server was not correctly configured as a proxy. Remember, that directory doesn't really exist on google.com; it only appears to exist when the proxy is properly configured.
Now the question to ask is: why isn't my proxy properly configured? There are a number of possible reasons, depending on which way you launched your browser: with *firefox, *iexplore, *opera, or *custom.
Selenium Server attempts to configure the global proxy settings in your Internet Options control panel; we need to make sure that those are correctly configured when Selenium Server launches the browser. Try looking at your Internet Options control panel. Click on the "Connections" tab and click on "LAN Settings".
If you need to use a proxy to access the application you want to test, you'll need to start Selenium Server with "-Dhttp.proxyHost"; see the command line options for more details.
As a last resort, you may try configuring your proxy manually and then launching your browser with *custom, or with our experimental *iehta browser launcher.
One way to tell whether you've configured your proxy correctly is to attempt to intentionally configure your browser incorrectly. Try configuring your browser to use the wrong proxy server hostname, or the wrong port. If you've successfully configured your browser's proxy settings incorrectly, your browser will be unable to connect to the Internet, which is one way to make sure you're adjusting the relevant settings.
For example, you might try configuring your browser to use the proxy server "asdflkjdasf" on port "1234". Then try connecting to google.com in the ordinary way, and doing a search. If you connect successfully to google.com, then you must not have really changed your proxy settings at all! You might also try turning your Selenium Server off while using the correct settings (localhost on port 4444). You should not be able to connect to Google if your proxy is disabled. If it seems like you can, then you know you've almost certainly made a mistake.
Note that this problem can be especially troublesome on Internet Explorer, which can sometimes ignore whatever proxy settings are configured, even manually! (This normally happens when you're using a dial-up Internet connection, or if you're using a VPN.) In that case, you may not be able to configure your proxy at all. As a workaround, you may be able to use the experimental *iehta browser launcher instead.
First, finish reading the tutorial. Make sure you read the section about the "Same Origin Policy" carefully.
There's a couple of possible reasons this might be happening:
If you need to use a proxy to access the application you want to test, you'll need to start Selenium Server with "-Dhttp.proxyHost"; see the command line options for more details.
.This usually happens because you have run afoul of the Same Origin Policy. If your browser session starts on one origin, but then you attempt to load up a page from another origin (with a different domain, protocol or port), you'll run into these Permission Denied errors.
In most cases, you can remedy this just by making sure that your browser session starts on the right origin. You can't test www.google.com from a browser session starting at google.com, so you'll just need to start your browser session differently.
If for some reason you absolutely need to be able to access websites on multiple domains, then right now the only way to do that is to use one of our experimental browser launchers.
Note that this problem can be especially troublesome on Internet Explorer, which can sometimes ignore whatever proxy settings are configured, even manually! (This normally happens when you're using a dial-up Internet connection, or if you're using a VPN). In that case, you may not be able to configure your proxy at all. As a workaround, you may be able to use the experimental *iehta browser launcher instead.
If necessary, you can specify the path to firefox-bin directly, like this:
cmd=getNewBrowserSession&1=*firefox /usr/local/firefox/firefox-bin&2=http://www.google.com