|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.chrome.ChromeBinary
public class ChromeBinary
Field Summary | |
---|---|
protected java.lang.String |
chromeBinaryLocation
|
Constructor Summary | |
---|---|
ChromeBinary(ChromeProfile profile,
ChromeExtension extension)
|
|
ChromeBinary(ChromeProfile profile,
ChromeExtension extension,
int port)
Creates a new instance for managing an instance of Chrome using the given profile and extension . |
Method Summary | |
---|---|
protected java.lang.String |
getChromeBinaryLocation()
Locates the Chrome executable on the current platform. |
protected static java.lang.String |
getDefaultWindowsBinaryLocation()
|
ChromeExtension |
getExtension()
|
int |
getPort()
|
ChromeProfile |
getProfile()
|
protected static java.lang.String |
getWindowsBinaryLocationFromRegistry()
Returns null if couldn't read value from registry |
void |
incrementBackoffBy(int diff)
|
protected boolean |
isChromeBinaryLocationKnown()
|
boolean |
isRunning()
|
void |
kill()
Kills the Chrome process managed by this instance. |
void |
start()
Starts the Chrome process for WebDriver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String chromeBinaryLocation
Constructor Detail |
---|
public ChromeBinary(ChromeProfile profile, ChromeExtension extension)
profile
- The Chrome profile to use.extension
- The extension to launch Chrome with.
WebDriverException
- If an error occurs locating the Chrome executable.ChromeBinary(ChromeProfile, ChromeExtension, int)
public ChromeBinary(ChromeProfile profile, ChromeExtension extension, int port)
profile
and extension
.
profile
- The Chrome profile to use.extension
- The extension to launch Chrome with.port
- Which port to start Chrome on, or 0 for any free port.
WebDriverException
- If an error occurs locating the Chrome executable.Method Detail |
---|
public ChromeProfile getProfile()
public ChromeExtension getExtension()
public int getPort()
public void start()
public boolean isRunning()
public void kill()
public void incrementBackoffBy(int diff)
protected java.lang.String getChromeBinaryLocation() throws java.io.IOException
java.io.IOException
- if file could not be found/accessedprotected boolean isChromeBinaryLocationKnown()
protected static final java.lang.String getWindowsBinaryLocationFromRegistry()
protected static final java.lang.String getDefaultWindowsBinaryLocation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |