org.openqa.selenium.server.browserlaunchers
Class BrowserLauncherFactory
java.lang.Object
org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory
public class BrowserLauncherFactory
- extends java.lang.Object
Returns BrowserLaunchers based on simple strings given by the user
- Author:
- danielf
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserLauncherFactory
public BrowserLauncherFactory()
BrowserLauncherFactory
public BrowserLauncherFactory(DriverSessions webdriverSessions)
getBrowserLauncher
public BrowserLauncher getBrowserLauncher(java.lang.String browser,
java.lang.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 launchbrowserOptions
- TODO
- Returns:
- the BrowserLauncher ready to launch
getSupportedLaunchers
public static java.util.Map<java.lang.String,java.lang.Class<? extends BrowserLauncher>> getSupportedLaunchers()
addBrowserLauncher
public static void addBrowserLauncher(java.lang.String browser,
java.lang.Class<? extends BrowserLauncher> clazz)
Copyright © 2012. All Rights Reserved.