org.openqa.selenium.server.browserlaunchers
Class SafariCustomProfileLauncher

java.lang.Object
  extended by org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
      extended by org.openqa.selenium.server.browserlaunchers.SafariCustomProfileLauncher
All Implemented Interfaces:
BrowserLauncher
Direct Known Subclasses:
ProxyInjectionSafariCustomProfileLauncher, SafariFileBasedLauncher

public class SafariCustomProfileLauncher
extends AbstractBrowserLauncher


Field Summary
protected  BrowserInstallation browserInstallation
           
protected  String[] cmdarray
           
protected  File customProfileDir
           
protected  MacProxyManager mpm
           
protected  Process process
           
protected  WindowsProxyManager wpm
           
 
Fields inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
browserConfigurationOptions, sessionId
 
Constructor Summary
SafariCustomProfileLauncher(Capabilities browserOptions, RemoteControlConfiguration configuration, String sessionId, String browserLaunchLocation)
           
 
Method Summary
protected  void changeRegistrySettings()
           
 void close()
          Stop (kill) the browser process
protected  void ensureCleanSession()
           
 Process getProcess()
          Returns a process if there is an associated one running with this browser launcher (this is not required to be implementd).
protected  void launch(String url)
           
protected  void launchSafari(String url)
           
protected  BrowserInstallation locateSafari(String browserLaunchLocation)
           
protected  String makeRedirectionHtml(File parentDir, 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

customProfileDir

protected File customProfileDir

cmdarray

protected String[] cmdarray

browserInstallation

protected BrowserInstallation browserInstallation

process

protected Process process

wpm

protected WindowsProxyManager wpm

mpm

protected MacProxyManager mpm
Constructor Detail

SafariCustomProfileLauncher

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

locateSafari

protected BrowserInstallation locateSafari(String browserLaunchLocation)

launch

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

launchSafari

protected void launchSafari(String url)
                     throws IOException
Throws:
IOException

close

public void close()
Description copied from interface: BrowserLauncher
Stop (kill) the browser process


ensureCleanSession

protected void ensureCleanSession()

makeRedirectionHtml

protected String makeRedirectionHtml(File parentDir,
                                     String url)

getProcess

public Process getProcess()
Description copied from interface: BrowserLauncher
Returns a process if there is an associated one running with this browser launcher (this is not required to be implementd).

Returns:
a handle to a process if one is available, or null if one is not available or if no browser is running

changeRegistrySettings

protected void changeRegistrySettings()
                               throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.