org.openqa.selenium.browserlaunchers.locators
Class GoogleChromeLocator

java.lang.Object
  extended by org.openqa.selenium.browserlaunchers.locators.SingleBrowserLocator
      extended by org.openqa.selenium.browserlaunchers.locators.GoogleChromeLocator
All Implemented Interfaces:
BrowserLocator

public class GoogleChromeLocator
extends SingleBrowserLocator

Discovers a valid Google Chrome installation on local system.


Constructor Summary
GoogleChromeLocator()
           
 
Method Summary
protected  String browserName()
           
protected  String browserPathOverridePropertyName()
           
protected  String seleniumBrowserName()
           
protected  String[] standardlauncherFilenames()
           
protected  String[] usualLauncherLocations()
           
protected  String[] usualUnixLauncherLocations()
          Returns usual Google Chrome installation location on Linux.
protected  String[] usualWindowsLauncherLocations()
          Returns usual Google Chrome installation location on Windows.
 
Methods inherited from class org.openqa.selenium.browserlaunchers.locators.SingleBrowserLocator
browserDefaultPath, computeLibraryPath, couldNotFindAnyInstallationMessage, fakeLauncherPath, findAtADefaultLocation, findBrowserLocation, findBrowserLocationOrFail, findFileInPath, findInPath, humanFriendlyLauncherFileNames, retrieveValidInstallationPath, retrieveValidInstallationPath, retrieveValidInstallationPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleChromeLocator

public GoogleChromeLocator()
Method Detail

browserName

protected String browserName()
Specified by:
browserName in class SingleBrowserLocator

seleniumBrowserName

protected String seleniumBrowserName()
Specified by:
seleniumBrowserName in class SingleBrowserLocator

standardlauncherFilenames

protected String[] standardlauncherFilenames()
Specified by:
standardlauncherFilenames in class SingleBrowserLocator

browserPathOverridePropertyName

protected String browserPathOverridePropertyName()
Specified by:
browserPathOverridePropertyName in class SingleBrowserLocator

usualLauncherLocations

protected String[] usualLauncherLocations()
Specified by:
usualLauncherLocations in class SingleBrowserLocator

usualWindowsLauncherLocations

protected String[] usualWindowsLauncherLocations()
Returns usual Google Chrome installation location on Windows. WARNING: Executing this method on a non-windows platform will fail because the system root is not set.

Returns:
Usual Google Chrome installation location on Windows

usualUnixLauncherLocations

protected String[] usualUnixLauncherLocations()
Returns usual Google Chrome installation location on Linux.

Returns:
Usual Google Chrome installation location on Linux


Copyright © 2013. All Rights Reserved.