Use Selenium to test sites behind a proxy
Twist allows testing of sites behind an internet/web proxy using Selenium. Given below are certain guidelines you may follow to achieve this effectively.
When the application under test is behind an internet/web proxy
Non-proxy Injection mode
It is required to use *firefox or *iexplore as the browser launcher with relevant additional configuration options in twist.properties. Using any other browser launcher is an invalid combination and will not work. Here is a sample configuration:
selenium.server.options = -port 4545 -avoidProxy -Dhttp.proxyHost=<proxyHost> -Dhttp.proxyPort=<port>
(additional options could be -Dhttp.proxyUser=userName -Dhttp.proxyPassword=password -Dhttp.nonProxyHosts=localhost|127.0.0.1)
selenium.browserLauncher = *firefox OR *iexplore (as required)
selenium.browserURL = https://www.<your_application_domain>.com/<context_path>
twist.selenium.enableImplicitWait = false
Proxy Injection mode
Selenium does not support testing in the Proxy Injection mode when the application to be tested is behind a internet/web proxy.