org.openqa.selenium.server.browserlaunchers
Class BrowserLauncherFactory

java.lang.Object
  extended by org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory

public class BrowserLauncherFactory
extends Object

Returns BrowserLaunchers based on simple strings given by the user

Author:
danielf

Constructor Summary
BrowserLauncherFactory()
           
 
Method Summary
static void addBrowserLauncher(String browser, Class<? extends org.openqa.selenium.browserlaunchers.BrowserLauncher> clazz)
           
 org.openqa.selenium.browserlaunchers.BrowserLauncher getBrowserLauncher(String browser, String sessionId, RemoteControlConfiguration configuration, Capabilities browserOptions)
          Returns the browser given by the specified browser string
static Map<String,Class<? extends org.openqa.selenium.browserlaunchers.BrowserLauncher>> getSupportedLaunchers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserLauncherFactory

public BrowserLauncherFactory()
Method Detail

getBrowserLauncher

public org.openqa.selenium.browserlaunchers.BrowserLauncher getBrowserLauncher(String browser,
                                                                               String sessionId,
                                                                               RemoteControlConfiguration configuration,
                                                                               Capabilities browserOptions)
Returns the browser given by the specified browser string

Parameters:
browser - a browser string like "*firefox"
sessionId - the sessionId to launch
browserOptions - TODO
Returns:
the BrowserLauncher ready to launch

getSupportedLaunchers

public static Map<String,Class<? extends org.openqa.selenium.browserlaunchers.BrowserLauncher>> getSupportedLaunchers()

addBrowserLauncher

public static void addBrowserLauncher(String browser,
                                      Class<? extends org.openqa.selenium.browserlaunchers.BrowserLauncher> clazz)


Copyright © 2012. All Rights Reserved.