public static void startServerInProxymode(){
// Precondition for the entire test class is Login
ServerSocket serverSocket;
try {
serverSocket = new ServerSocket(RemoteControlConfiguration.DEFAULT_PORT);
serverSocket.close();
} catch (IOException e) {
// TODO Auto-generated catch block
System.out.println("Failed to create socket connection on Default PORT");
e.printStackTrace();
}
RemoteControlConfiguration rcc = new RemoteControlConfiguration();
rcc.setTrustAllSSLCertificates(true);
rcc.setPort(RemoteControlConfiguration.DEFAULT_PORT);
try {
server = new SeleniumServer(false,rcc);
server.start();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Hi Kiran,
ReplyDeleteI like ur selenium solution which u have mentioned in your blog. I have searched something about SSL Cert. in selenium for https and then i found ur blog.
Will u plz elaborate this solution to me.
Regards,
Shubham
Hi Kiran,
ReplyDeleteUr blog is very nice,,Could you please elaborate this how can i use this program, for me i set cybervillan certificate and *firefoxproxy/iexploreproxy, but getting error, not able to execute can u plz explain me step by step to get succeed...
thanks,
Ramesh