org.openqa.selenium.server.browserlaunchers
Class CustomBrowserLauncher

java.lang.Object
  extended by org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
      extended by org.openqa.selenium.server.browserlaunchers.CustomBrowserLauncher
All Implemented Interfaces:
BrowserLauncher

public class CustomBrowserLauncher
extends AbstractBrowserLauncher

Runs the specified command path to start the browser, and kills the process to quit.

Version:
$Revision: 189 $
Author:
Paul Hammant

Field Summary
protected  java.lang.String commandPath
           
protected  CommandLine process
           
 
Fields inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
browserConfigurationOptions, sessionId
 
Constructor Summary
CustomBrowserLauncher(java.lang.String commandPath, java.lang.String sessionId, RemoteControlConfiguration configuration, Capabilities browserOptions)
          Specifies a command path to run
 
Method Summary
 void close()
          Kills the process
protected  void exec(java.lang.String command)
           
 java.lang.Process getProcess()
           
protected  void launch(java.lang.String url)
           
 
Methods inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
getCommandLineFlags, getConfiguration, getPort, getTimeout, launchHTMLSuite, launchRemoteSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

process

protected CommandLine process

commandPath

protected java.lang.String commandPath
Constructor Detail

CustomBrowserLauncher

public CustomBrowserLauncher(java.lang.String commandPath,
                             java.lang.String sessionId,
                             RemoteControlConfiguration configuration,
                             Capabilities browserOptions)
Specifies a command path to run

Method Detail

close

public void close()
Kills the process


getProcess

public java.lang.Process getProcess()

launch

protected void launch(java.lang.String url)
Specified by:
launch in class AbstractBrowserLauncher

exec

protected void exec(java.lang.String command)


Copyright © 2011. All Rights Reserved.