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

public class SafariCustomProfileLauncher
extends AbstractBrowserLauncher


Field Summary
protected  MacProxyManager mpm
           
protected  WindowsProxyManager wpm
           
 
Fields inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
sessionId
 
Constructor Summary
SafariCustomProfileLauncher(int port, java.lang.String sessionId)
           
SafariCustomProfileLauncher(int port, java.lang.String sessionId, java.lang.String browserLaunchLocation)
           
 
Method Summary
protected  void changeRegistrySettings()
           
 void close()
          Stop (kill) the browser process
 java.lang.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(java.lang.String url)
           
static void main(java.lang.String[] args)
           
protected  java.lang.String makeRedirectionHtml(java.io.File parentDir, java.lang.String url)
           
 
Methods inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
launchHTMLSuite, launchRemoteSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wpm

protected WindowsProxyManager wpm

mpm

protected MacProxyManager mpm
Constructor Detail

SafariCustomProfileLauncher

public SafariCustomProfileLauncher(int port,
                                   java.lang.String sessionId)

SafariCustomProfileLauncher

public SafariCustomProfileLauncher(int port,
                                   java.lang.String sessionId,
                                   java.lang.String browserLaunchLocation)
Method Detail

launch

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

changeRegistrySettings

protected void changeRegistrySettings()
                               throws java.io.IOException
Throws:
java.io.IOException

makeRedirectionHtml

protected java.lang.String makeRedirectionHtml(java.io.File parentDir,
                                               java.lang.String url)

close

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


getProcess

public java.lang.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

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2008. All Rights Reserved.