Package org.openqa.selenium.safari
Class SafariDriverService.Builder
java.lang.Object
org.openqa.selenium.remote.service.DriverService.Builder<SafariDriverService,SafariDriverService.Builder>
org.openqa.selenium.safari.SafariDriverService.Builder
- Enclosing class:
- SafariDriverService
@AutoService(Builder.class)
public static class SafariDriverService.Builder
extends DriverService.Builder<SafariDriverService,SafariDriverService.Builder>
Builder used to configure new
SafariDriverService instances.-
Field Summary
Fields inherited from class org.openqa.selenium.remote.service.DriverService.Builder
exe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SafariDriverServicecreateDriverService(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) protected voidintscore(Capabilities capabilities) Provides a measure of how strongly thisDriverServicesupports the givencapabilities.withLogFile(File logFile) Configures the driver server to write log to the given file.withLogging(Boolean logging) Methods inherited from class org.openqa.selenium.remote.service.DriverService.Builder
build, getDefaultTimeout, getLogFile, getLogOutput, getPort, parseLogOutput, usingAnyFreePort, usingDriverExecutable, usingPort, withEnvironment, withLogOutput, withTimeout
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
score
Description copied from class:DriverService.BuilderProvides a measure of how strongly thisDriverServicesupports the givencapabilities. A score of 0 or less indicates that thisDriverServicedoes not support instances ofWebDriverthat requirecapabilities. Typically, the score is generated by summing the number of capabilities that the driver service directly supports that are unique to the driver service (that is, things like "proxy" don't tend to count to the score).- Specified by:
scorein classDriverService.Builder<SafariDriverService,SafariDriverService.Builder>
-
withLogging
-
withLogFile
Description copied from class:DriverService.BuilderConfigures the driver server to write log to the given file.- Overrides:
withLogFilein classDriverService.Builder<SafariDriverService,SafariDriverService.Builder> - Parameters:
logFile- A file to write log to.- Returns:
- A self reference.
-
loadSystemProperties
protected void loadSystemProperties()- Specified by:
loadSystemPropertiesin classDriverService.Builder<SafariDriverService,SafariDriverService.Builder>
-
createArgs
- Specified by:
createArgsin classDriverService.Builder<SafariDriverService,SafariDriverService.Builder>
-
createDriverService
protected SafariDriverService createDriverService(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) - Specified by:
createDriverServicein classDriverService.Builder<SafariDriverService,SafariDriverService.Builder>
-