Starting Selenium Server through Code

// RemoteControlConfiguration class is used to set configuration
  // of server like, setting port or single window etc
  RemoteControlConfiguration rc = new RemoteControlConfiguration();
  rc.setPort(4445);
  rc.setSingleWindow(true);
 
  // Selenium Server class is used to start server
  // pass RemoteControlConfiguration object while creating object
  SeleniumServer ss = new SeleniumServer(rc);
 
  // boot method is to apply setting to server
  ss.boot();
 
  // start method is to start server
  ss.start();
  
No comments :

No comments :

Post a Comment