org.openqa.selenium.chrome
Class ChromeBinary

java.lang.Object
  extended by org.openqa.selenium.chrome.ChromeBinary

public class ChromeBinary
extends java.lang.Object


Constructor Summary
ChromeBinary(ChromeProfile profile, ChromeExtension extension)
          Creates a new instance for managing an instance of Chrome using the given profile and extension.
 
Method Summary
protected  java.lang.String getChromeFile()
          Locates the Chrome executable on the current platform.
 void incrementBackoffBy(int diff)
           
 void kill()
           
 void start(java.lang.String serverUrl)
          Starts the Chrome process for WebDriver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChromeBinary

public ChromeBinary(ChromeProfile profile,
                    ChromeExtension extension)
Creates a new instance for managing an instance of Chrome using the given profile and extension.

Parameters:
profile - The Chrome profile to use.
extension - The extension to launch Chrome with.
Method Detail

start

public void start(java.lang.String serverUrl)
           throws java.io.IOException
Starts the Chrome process for WebDriver. Assumes the passed directories exist.

Parameters:
serverUrl - URL from which commands should be requested
Throws:
java.io.IOException - wrapped in WebDriverException if process couldn't be started.

kill

public void kill()

incrementBackoffBy

public void incrementBackoffBy(int diff)

getChromeFile

protected java.lang.String getChromeFile()
                                  throws java.io.IOException
Locates the Chrome executable on the current platform. First looks in the webdriver.chrome.bin property, then searches through the default expected locations.

Returns:
chrome.exe
Throws:
java.io.IOException - if file could not be found/accessed


Copyright © 2010. All Rights Reserved.