Package net.sf.sahi.test

Examples of net.sf.sahi.test.BrowserLauncher


      public void actionPerformed(ActionEvent e) {
          new Thread() {
 
              @Override
              public void run() {
                final BrowserLauncher launcher = new BrowserLauncher(browserType);
                launcher.setMaxTimeToWaitForPIDs(Configuration.getMaxTimeForPIDGatherFromDashboard());
              String url = "http://" + Configuration.getCommonDomain() + "/_s_/dyn/Driver_initialized?browserType=" + browserType.name();    
                try {
              launcher.openURL(url);
              launcher.waitTillAlive();
              launcher.kill();
            } catch (Exception e) {
              e.printStackTrace();
            }
              }
View Full Code Here


//    if (useProxy) {
//      this.useSystemProxy = true;
//      enableIEProxy(request);
//    }
//   
        final BrowserLauncher launcher = new BrowserLauncher(browser, browserProcessName, browserOption, useProxy);
    String url = "http://" + Configuration.getCommonDomain() + "/_s_/dyn/Driver_start?sahisid="
      + session.id()
      + "&startUrl="
      + Utils.encode("http://" + Configuration.getCommonDomain() + "/_s_/dyn/Driver_initialized?startUrl="+Utils.encode(startUrl));     
      launcher.openURL(url);       
        session.setLauncher(launcher);
  }  
View Full Code Here

        session.setLauncher(launcher);
  }  
 
    public void kill(final HttpRequest request) {
      Session session = request.session();
      BrowserLauncher launcher = session.getLauncher();
      if (launcher != null) {
        launcher.kill();
//        if (useSystemProxy){
//          disableIEProxy(request);
//        }
      }
    }   
View Full Code Here

TOP

Related Classes of net.sf.sahi.test.BrowserLauncher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.