org.openqa.selenium.chrome
Class ChromeDriverService

java.lang.Object
  extended by org.openqa.selenium.remote.service.DriverService
      extended by org.openqa.selenium.chrome.ChromeDriverService

public class ChromeDriverService
extends DriverService

Manages the life and death of a chromedriver server.


Nested Class Summary
static class ChromeDriverService.Builder
          Builder used to configure new ChromeDriverService instances.
 
Field Summary
static java.lang.String CHROME_DRIVER_EXE_PROPERTY
          System property that defines the location of the chromedriver executable that will be used by the default service.
 
Method Summary
static ChromeDriverService createDefaultService()
          Configures and returns a new ChromeDriverService using the default configuration.
 
Methods inherited from class org.openqa.selenium.remote.service.DriverService
checkExecutable, findExecutable, getUrl, isRunning, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHROME_DRIVER_EXE_PROPERTY

public static final java.lang.String CHROME_DRIVER_EXE_PROPERTY
System property that defines the location of the chromedriver executable that will be used by the default service.

See Also:
Constant Field Values
Method Detail

createDefaultService

public static ChromeDriverService createDefaultService()
Configures and returns a new ChromeDriverService using the default configuration. In this configuration, the service will use the chromedriver executable identified by the CHROME_DRIVER_EXE_PROPERTY system property. Each service created by this method will be configured to use a free port on the current system.

Returns:
A new ChromeDriverService using the default configuration.


Copyright © 2012. All Rights Reserved.