org.openqa.selenium.server.browserlaunchers
Class AbstractBrowserLauncher

java.lang.Object
  extended by org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
All Implemented Interfaces:
org.openqa.selenium.browserlaunchers.BrowserLauncher
Direct Known Subclasses:
CustomBrowserLauncher, FirefoxChromeLauncher, FirefoxCustomProfileLauncher, GoogleChromeLauncher, InternetExplorerCustomProxyLauncher, KonquerorLauncher, OperaCustomProfileLauncher, SafariCustomProfileLauncher

public abstract class AbstractBrowserLauncher
extends Object
implements org.openqa.selenium.browserlaunchers.BrowserLauncher

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

Version:
$Revision: 189 $
Author:
Paul Hammant

Field Summary
protected  Capabilities browserConfigurationOptions
           
protected  String sessionId
           
 
Constructor Summary
AbstractBrowserLauncher(String sessionId, RemoteControlConfiguration configuration, Capabilities browserOptions)
           
 
Method Summary
protected  String getCommandLineFlags()
          Deprecated. 
protected  String[] getCommandLineFlagsAsArray()
           
 RemoteControlConfiguration getConfiguration()
           
 int getPort()
           
protected  long getTimeout()
           
protected abstract  void launch(String url)
           
 void launchHTMLSuite(String suiteUrl, String browserURL)
           
 void launchRemoteSession(String browserURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openqa.selenium.browserlaunchers.BrowserLauncher
close
 

Field Detail

sessionId

protected String sessionId

browserConfigurationOptions

protected Capabilities browserConfigurationOptions
Constructor Detail

AbstractBrowserLauncher

public AbstractBrowserLauncher(String sessionId,
                               RemoteControlConfiguration configuration,
                               Capabilities browserOptions)
Method Detail

launchHTMLSuite

public void launchHTMLSuite(String suiteUrl,
                            String browserURL)
Specified by:
launchHTMLSuite in interface org.openqa.selenium.browserlaunchers.BrowserLauncher

launchRemoteSession

public void launchRemoteSession(String browserURL)
Specified by:
launchRemoteSession in interface org.openqa.selenium.browserlaunchers.BrowserLauncher

launch

protected abstract void launch(String url)

getConfiguration

public RemoteControlConfiguration getConfiguration()

getPort

public int getPort()

getTimeout

protected long getTimeout()

getCommandLineFlags

@Deprecated
protected String getCommandLineFlags()
Deprecated. 


getCommandLineFlagsAsArray

protected String[] getCommandLineFlagsAsArray()


Copyright © 2012. All Rights Reserved.