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 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 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 © 2013. All Rights Reserved.