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()
           
 
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 profileDir, java.lang.String extensionDir)
          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()
Method Detail

start

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

Parameters:
profileDir - directory to use as the profile. Should contain the empty text file "First Run Dev".
extensionDir - directory which contains the WebDriver extension.
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 © 2009. All Rights Reserved.