Class GeckoDriverService.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withAllowHosts

        public GeckoDriverService.Builder withAllowHosts​(java.lang.String allowHosts)
        Values of the Host header to allow for incoming requests.
        Parameters:
        allowHosts - Space-separated list of host names.
        Returns:
        A self reference.
      • withTruncatedLogs

        public GeckoDriverService.Builder withTruncatedLogs​(java.lang.Boolean truncate)
        Parameters:
        truncate - whether to truncate long lines in the log. Log lines are truncated by default; setting "false" removes truncation
        Returns:
        A self reference.
      • withProfileRoot

        public GeckoDriverService.Builder withProfileRoot​(java.io.File root)
        This is necessary when you do not have permissions to write to the default directory.
        Parameters:
        root - location to store temporary profiles Defaults to the system temporary directory.
        Returns:
        A self reference.
      • createDriverService

        protected GeckoDriverService 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<GeckoDriverService,​GeckoDriverService.Builder>