Class ChromeDriverService.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withAppendLog

        public ChromeDriverService.Builder withAppendLog​(boolean appendLog)
        Configures the driver server appending to log file.
        Parameters:
        appendLog - True for appending to log file, false otherwise.
        Returns:
        A self reference.
      • withBuildCheckDisabled

        public ChromeDriverService.Builder withBuildCheckDisabled​(boolean noBuildCheck)
        Allows the driver to be used with potentially incompatible versions of the browser.
        Parameters:
        noBuildCheck - True for not enforcing matching versions.
        Returns:
        A self reference.
      • withLogLevel

        public ChromeDriverService.Builder withLogLevel​(org.openqa.selenium.chromium.ChromiumDriverLogLevel logLevel)
        Configures the driver server log level.
        Parameters:
        logLevel - ChromiumDriverLogLevel for desired log level output.
        Returns:
        A self reference.
      • withSilent

        public ChromeDriverService.Builder withSilent​(boolean silent)
        Configures the driver server for silent output.
        Parameters:
        silent - Log no output for true, no changes made if false.
        Returns:
        A self reference.
      • withVerbose

        public ChromeDriverService.Builder withVerbose​(boolean verbose)
        Configures the driver server verbosity.
        Parameters:
        verbose - Log all output for true, no changes made if false.
        Returns:
        A self reference.
      • withWhitelistedIps

        @Deprecated
        public ChromeDriverService.Builder withWhitelistedIps​(java.lang.String allowedListIps)
        Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to the driver server.
        Parameters:
        allowedListIps - Comma-separated list of remote IPv4 addresses.
        Returns:
        A self reference.
      • withAllowedListIps

        public ChromeDriverService.Builder withAllowedListIps​(java.lang.String allowedListIps)
        Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to the driver server.
        Parameters:
        allowedListIps - Comma-separated list of remote IPv4 addresses.
        Returns:
        A self reference.
      • withReadableTimestamp

        public ChromeDriverService.Builder withReadableTimestamp​(java.lang.Boolean readableTimestamp)
        Configures the format of the logging for the driver server.
        Parameters:
        readableTimestamp - Whether the timestamp of the log is readable.
        Returns:
        A self reference.
      • createDriverService

        protected ChromeDriverService createDriverService​(java.io.File exe,
                                                          int port,
                                                          java.time.Duration timeout,
                                                          java.util.List<java.lang.String> args,
                                                          java.util.Map<java.lang.String,​java.lang.String> environment)
        Specified by:
        createDriverService in class org.openqa.selenium.remote.service.DriverService.Builder<ChromeDriverService,​ChromeDriverService.Builder>