Print

Using Proxy in Selenium RC

When your application under test is behind an HTTP proxy that requires authentication during the test, you should configure http.proxyHost, http.proxyPort, http.proxyUser and http.proxyPassword using the following command.

java -jar selenium-server-standalone-<version-number>.jar -Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password

For example, if you have a proxy like this below:

 

Host=proxy.seleniummaster.com

Port=8181

Username=test

Password=test

Then you can use the following command

java -jar selenium-server-standalone-2.39.0.jar -Dhttp.proxyHost=proxy.seleniummaster.com -Dhttp.proxyPort=8181 -Dhttp.proxyUser=test -Dhttp.proxyPassword=test