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  java.lang.String browserName()
           
protected  java.lang.String browserPathOverridePropertyName()
           
protected  java.lang.String seleniumBrowserName()
           
protected  java.lang.String[] standardlauncherFilenames()
           
protected  java.lang.String[] usualLauncherLocations()
           
protected  java.lang.String[] usualUnixLauncherLocations()
          Returns usual Google Chrome installation location on Linux.
protected  java.lang.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 java.lang.String browserName()
Specified by:
browserName in class SingleBrowserLocator

seleniumBrowserName

protected java.lang.String seleniumBrowserName()
Specified by:
seleniumBrowserName in class SingleBrowserLocator

standardlauncherFilenames

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

browserPathOverridePropertyName

protected java.lang.String browserPathOverridePropertyName()
Specified by:
browserPathOverridePropertyName in class SingleBrowserLocator

usualLauncherLocations

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

usualWindowsLauncherLocations

protected java.lang.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 java.lang.String[] usualUnixLauncherLocations()
Returns usual Google Chrome installation location on Linux.

Returns:
Usual Google Chrome installation location on Linux


Copyright © 2012. All Rights Reserved.