Package com.xceptance.xlt.api.webdriver

# Class XltFirefoxDriver.Builder

java.lang.Object
com.xceptance.xlt.api.webdriver.XltFirefoxDriver.Builder

Enclosing class:
  `XltFirefoxDriver`

public static final class XltFirefoxDriver.Builder extends Object
Builder class to create `XltFirefoxDriver` instances. First set the desired properties and then call `build()` to get the configured driver instance.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `XltFirefoxDriver`
  `build()`
  Creates a new `XltFirefoxDriver` instance configured with all the previously set properties.
  `XltFirefoxDriver.Builder`
  `setHeadless(boolean headless)`
  Whether to run the browser in headless mode.
  `XltFirefoxDriver.Builder`
  `setOptions(FirefoxOptions options)`
  Sets the desired options.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()

- ## Method Details

  - ### setOptions

    public XltFirefoxDriver.Builder setOptions(FirefoxOptions options)
    Sets the desired options.
    Parameters:
      `options` - the options
    Returns:
      this builder instance

  - ### setHeadless

    public XltFirefoxDriver.Builder setHeadless(boolean headless)
    Whether to run the browser in headless mode.
    Parameters:
      `headless` - whether headless mode is enabled
    Returns:
      this builder instance

  - ### build

    public XltFirefoxDriver build()
    Creates a new `XltFirefoxDriver` instance configured with all the previously set properties.
    Returns:
      the driver instance