Skip to content

Commit

Permalink
Add property for silencing chromedriver
Browse files Browse the repository at this point in the history
The Java property "webdriver.chrome.silentOutput" is now used to set the
default value for silent mode in chromedriver using the
ChromeDriverService class.

This is analogous to the existing system property for controlling
verbose mode.

Signed-off-by: Andreas Tolfsen <[email protected]>
  • Loading branch information
tobli authored and andreastt committed Mar 3, 2014
1 parent b213090 commit 7d51a84
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public class ChromeDriverService extends DriverService {
public static final String CHROME_DRIVER_VERBOSE_LOG_PROPERTY =
"webdriver.chrome.verboseLogging";

/**
* Boolean system property that defines whether the ChromeDriver executable should be started
* in silent mode.
*/
public static final String CHROME_DRIVER_SILENT_OUTPUT_PROPERTY =
"webdriver.chrome.silentOutput";

/**
*
* @param executable The chromedriver executable.
Expand Down Expand Up @@ -96,7 +103,7 @@ public static class Builder {
String chromeLogFile = System.getProperty(CHROME_DRIVER_LOG_PROPERTY);
private File logFile = chromeLogFile == null ? null : new File(chromeLogFile);
private boolean verbose = Boolean.getBoolean(CHROME_DRIVER_VERBOSE_LOG_PROPERTY);
private boolean silent;
private boolean silent = Boolean.getBoolean(CHROME_DRIVER_SILENT_OUTPUT_PROPERTY);

/**
* Sets which driver executable the builder will use.
Expand Down

0 comments on commit 7d51a84

Please sign in to comment.