Package org.openqa.selenium.safari
Class SafariTechPreviewDriverService.Builder
java.lang.Object
org.openqa.selenium.remote.service.DriverService.Builder<SafariTechPreviewDriverService,SafariTechPreviewDriverService.Builder>
org.openqa.selenium.safari.SafariTechPreviewDriverService.Builder
- Enclosing class:
- SafariTechPreviewDriverService
@AutoService(Builder.class)
public static class SafariTechPreviewDriverService.Builder
extends DriverService.Builder<SafariTechPreviewDriverService,SafariTechPreviewDriverService.Builder>
Builder used to configure new
SafariTechPreviewDriverService
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SafariTechPreviewDriverService
createDriverService
(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) protected void
int
score
(Capabilities capabilities) Provides a measure of how strongly thisDriverService
supports 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.Builder
Provides a measure of how strongly thisDriverService
supports the givencapabilities
. A score of 0 or less indicates that thisDriverService
does not support instances ofWebDriver
that 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:
score
in classDriverService.Builder<SafariTechPreviewDriverService,
SafariTechPreviewDriverService.Builder>
-
withLogging
-
withLogFile
Description copied from class:DriverService.Builder
Configures the driver server to write log to the given file.- Overrides:
withLogFile
in classDriverService.Builder<SafariTechPreviewDriverService,
SafariTechPreviewDriverService.Builder> - Parameters:
logFile
- A file to write log to.- Returns:
- A self reference.
-
loadSystemProperties
protected void loadSystemProperties() -
createArgs
- Specified by:
createArgs
in classDriverService.Builder<SafariTechPreviewDriverService,
SafariTechPreviewDriverService.Builder>
-
createDriverService
protected SafariTechPreviewDriverService createDriverService(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) - Specified by:
createDriverService
in classDriverService.Builder<SafariTechPreviewDriverService,
SafariTechPreviewDriverService.Builder>
-