How can i do proxy configuration for selenium in Java?
I am connecting to selenium with:
Process p = Runtime.getRuntime().exec("java -jar lib/selenium-server.jar");
selenium = new DefaultSelenium("localhost", 4444, "*safari", "www.example.com");
I want to configure free proxy without username and password credentials for the same which would be running the selenium application in the safari browser.
I have tried the code below to set proxy for the tests
System.setProperty("http:proxyHost","207.229.122.162");
System.setProperty("http:proxyPort","3128");
but the above code is not working fine !! its even accepting null as arguments ,
Please suggest me some way to resolve the issue !!
Thanks in Advance !!