How can I configure proxies for selenium in Java?
I connect to selenium:
Process p = Runtime.getRuntime().exec("java -jar lib/selenium-server.jar"); selenium = new DefaultSelenium("localhost", 4444, "*safari", "www.example.com");
I want to configure a free proxy without username and password credentials for the same one that will run the selenium application in the Safari browser.
I tried the code below to set proxies for tests
System.setProperty("http:proxyHost","207.229.122.162"); System.setProperty("http:proxyPort","3128");
but the above code is not working fine !! its even taking null as arguments,
Please suggest me some way to solve the problem.
Thanks at Advance !!
source share