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.
      • withVerbose

        public ChromeDriverService.Builder withVerbose​(boolean verbose)
        Configures the driver server verbosity.
        Parameters:
        verbose - True for verbose output, false otherwise.
        Returns:
        A self reference.
      • withSilent

        public ChromeDriverService.Builder withSilent​(boolean silent)
        Configures the driver server for silent output.
        Parameters:
        silent - True for silent output, false otherwise.
        Returns:
        A self reference.
      • withWhitelistedIps

        public ChromeDriverService.Builder withWhitelistedIps​(java.lang.String whitelistedIps)
        Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to the driver server.
        Parameters:
        whitelistedIps - Comma-separated list of remote IPv4 addresses.
        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>