org.openqa.selenium.browserlaunchers.locators
Class SingleBrowserLocator

java.lang.Object
  extended by org.openqa.selenium.browserlaunchers.locators.SingleBrowserLocator
All Implemented Interfaces:
BrowserLocator
Direct Known Subclasses:
FirefoxLocator, GoogleChromeLocator, InternetExplorerLocator, SafariLocator

public abstract class SingleBrowserLocator
extends Object
implements BrowserLocator

Discovers a valid browser installation on local system.


Constructor Summary
SingleBrowserLocator()
           
 
Method Summary
protected  BrowserInstallation browserDefaultPath()
           
protected abstract  String browserName()
           
protected abstract  String browserPathOverridePropertyName()
           
 String computeLibraryPath(File launcherPath)
           
protected  String couldNotFindAnyInstallationMessage()
           
protected  String fakeLauncherPath()
           
protected  BrowserInstallation findAtADefaultLocation()
           
 BrowserInstallation findBrowserLocation()
           
 BrowserInstallation findBrowserLocationOrFail()
           
 BrowserInstallation findFileInPath(String fileName)
           
protected  BrowserInstallation findInPath()
           
protected  String humanFriendlyLauncherFileNames()
           
protected  BrowserInstallation retrieveValidInstallationPath(File launcher)
           
 BrowserInstallation retrieveValidInstallationPath(String launcher)
           
protected  BrowserInstallation retrieveValidInstallationPath(String dirname, String fileName)
           
protected abstract  String seleniumBrowserName()
           
protected abstract  String[] standardlauncherFilenames()
           
protected abstract  String[] usualLauncherLocations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleBrowserLocator

public SingleBrowserLocator()
Method Detail

findBrowserLocationOrFail

public BrowserInstallation findBrowserLocationOrFail()
Specified by:
findBrowserLocationOrFail in interface BrowserLocator

findBrowserLocation

public BrowserInstallation findBrowserLocation()

browserName

protected abstract String browserName()

standardlauncherFilenames

protected abstract String[] standardlauncherFilenames()

seleniumBrowserName

protected abstract String seleniumBrowserName()

browserPathOverridePropertyName

protected abstract String browserPathOverridePropertyName()

usualLauncherLocations

protected abstract String[] usualLauncherLocations()

findInPath

protected BrowserInstallation findInPath()

findAtADefaultLocation

protected BrowserInstallation findAtADefaultLocation()

browserDefaultPath

protected BrowserInstallation browserDefaultPath()

findFileInPath

public BrowserInstallation findFileInPath(String fileName)

couldNotFindAnyInstallationMessage

protected String couldNotFindAnyInstallationMessage()

fakeLauncherPath

protected String fakeLauncherPath()

humanFriendlyLauncherFileNames

protected String humanFriendlyLauncherFileNames()

retrieveValidInstallationPath

protected BrowserInstallation retrieveValidInstallationPath(String dirname,
                                                            String fileName)

retrieveValidInstallationPath

public BrowserInstallation retrieveValidInstallationPath(String launcher)
Specified by:
retrieveValidInstallationPath in interface BrowserLocator

retrieveValidInstallationPath

protected BrowserInstallation retrieveValidInstallationPath(File launcher)

computeLibraryPath

public String computeLibraryPath(File launcherPath)


Copyright © 2012. All Rights Reserved.