File tree Expand file tree Collapse file tree
java/src/org/openqa/selenium/chrome Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ public class ChromeDriverService extends DriverService {
5050 */
5151 public static final String CHROME_DRIVER_LOG_PROPERTY = "webdriver.chrome.logfile" ;
5252
53+ /**
54+ * System property that defines the log level when ChromeDriver output is logged.
55+ */
56+ public static final String CHROME_DRIVER_LOG_LEVEL_PROPERTY = "webdriver.chrome.loglevel" ;
57+
5358 /**
5459 * Boolean system property that defines whether chromedriver should append to existing log file.
5560 */
@@ -154,7 +159,7 @@ public static class Builder extends DriverService.Builder<
154159 private boolean verbose = Boolean .getBoolean (CHROME_DRIVER_VERBOSE_LOG_PROPERTY );
155160 private boolean silent = Boolean .getBoolean (CHROME_DRIVER_SILENT_OUTPUT_PROPERTY );
156161 private String whitelistedIps = System .getProperty (CHROME_DRIVER_WHITELISTED_IPS_PROPERTY );
157- private ChromeDriverLogLevel logLevel = null ;
162+ private ChromeDriverLogLevel logLevel = ChromeDriverLogLevel . fromString ( System . getProperty ( CHROME_DRIVER_LOG_LEVEL_PROPERTY )) ;
158163
159164 @ Override
160165 public int score (Capabilities capabilities ) {
You can’t perform that action at this time.
0 commit comments