Package com.xceptance.xlt.api.webdriver
Class XltChromeDriver.Builder
java.lang.Object
com.xceptance.xlt.api.webdriver.XltChromeDriver.Builder
- Enclosing class:
XltChromeDriver
Builder class to create
XltChromeDriver 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 newXltChromeDriverinstance configured with all the previously set properties.setHeadless(boolean headless) Whether to run the browser in headless mode.setOptions(ChromeOptions options) Sets the desired options.setService(ChromeDriverService service) Sets the desired driver service.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setService
Sets the desired driver service.- Parameters:
service- the service- Returns:
- this builder instance
-
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 newXltChromeDriverinstance configured with all the previously set properties.- Returns:
- the driver instance
-