org.openqa.selenium.browserlaunchers.locators
Class SingleBrowserLocator
java.lang.Object
org.openqa.selenium.browserlaunchers.locators.SingleBrowserLocator
- All Implemented Interfaces:
- BrowserLocator
- Direct Known Subclasses:
- FirefoxLocator, GoogleChromeLocator, InternetExplorerLocator, SafariLocator
public abstract class SingleBrowserLocator
- extends java.lang.Object
- implements BrowserLocator
Discovers a valid browser installation on local system.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleBrowserLocator
public SingleBrowserLocator()
findBrowserLocationOrFail
public BrowserInstallation findBrowserLocationOrFail()
- Specified by:
findBrowserLocationOrFail
in interface BrowserLocator
findBrowserLocation
public BrowserInstallation findBrowserLocation()
browserName
protected abstract java.lang.String browserName()
standardlauncherFilenames
protected abstract java.lang.String[] standardlauncherFilenames()
seleniumBrowserName
protected abstract java.lang.String seleniumBrowserName()
browserPathOverridePropertyName
protected abstract java.lang.String browserPathOverridePropertyName()
usualLauncherLocations
protected abstract java.lang.String[] usualLauncherLocations()
findInPath
protected BrowserInstallation findInPath()
findAtADefaultLocation
protected BrowserInstallation findAtADefaultLocation()
browserDefaultPath
protected BrowserInstallation browserDefaultPath()
findFileInPath
public BrowserInstallation findFileInPath(java.lang.String fileName)
couldNotFindAnyInstallationMessage
protected java.lang.String couldNotFindAnyInstallationMessage()
fakeLauncherPath
protected java.lang.String fakeLauncherPath()
humanFriendlyLauncherFileNames
protected java.lang.String humanFriendlyLauncherFileNames()
retrieveValidInstallationPath
protected BrowserInstallation retrieveValidInstallationPath(java.lang.String dirname,
java.lang.String fileName)
retrieveValidInstallationPath
public BrowserInstallation retrieveValidInstallationPath(java.lang.String launcher)
- Specified by:
retrieveValidInstallationPath
in interface BrowserLocator
retrieveValidInstallationPath
protected BrowserInstallation retrieveValidInstallationPath(java.io.File launcher)
computeLibraryPath
public java.lang.String computeLibraryPath(java.io.File launcherPath)
Copyright © 2011. All Rights Reserved.