Package com.xceptance.xlt.api.webdriver
Class XltFirefoxDriver.Builder
java.lang.Object
com.xceptance.xlt.api.webdriver.XltFirefoxDriver.Builder
- Enclosing class:
XltFirefoxDriver
Builder class to create
XltFirefoxDriver instances. First set the desired properties and then call
build() to get the configured driver instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newXltFirefoxDriverinstance configured with all the previously set properties.setHeadless(boolean headless) Whether to run the browser in headless mode.setOptions(FirefoxOptions options) Sets the desired options.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setOptions
Sets the desired options.- Parameters:
options- the options- Returns:
- this builder instance
-
setHeadless
Whether to run the browser in headless mode.- Parameters:
headless- whether headless mode is enabled- Returns:
- this builder instance
-
build
Creates a newXltFirefoxDriverinstance configured with all the previously set properties.- Returns:
- the driver instance
-