Package org.openqa.selenium.safari
Class SafariTechPreviewDriverService
java.lang.Object
org.openqa.selenium.remote.service.DriverService
org.openqa.selenium.safari.SafariTechPreviewDriverService
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SafariTechPreviewDriverService
extends org.openqa.selenium.remote.service.DriverService
Manages the life and death of SafariDriver Technology Preview.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to configure newSafariTechPreviewDriverServiceinstances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem property that defines the location of the safaridriver executable that will be used by thedefault service.static final Stringstatic final StringFields inherited from class org.openqa.selenium.remote.service.DriverService
DEFAULT_TIMEOUT, LOG_NULL, LOG_STDERR, LOG_STDOUT, process -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfigures and returns a newSafariTechPreviewDriverServiceusing the default configuration.org.openqa.selenium.Capabilitiesprotected voidMethods inherited from class org.openqa.selenium.remote.service.DriverService
close, getArgs, getDriverEnvironmentVariable, getEnvironment, getExecutable, getOutputStream, getTimeout, getUrl, getUrl, hasShutdownEndpoint, isRunning, sendOutputTo, setExecutable, start, stop
-
Field Details
-
TP_SAFARI_DRIVER_NAME
- See Also:
-
TP_SAFARI_DRIVER_EXE_PROPERTY
System property that defines the location of the safaridriver executable that will be used by thedefault service.- See Also:
-
TP_SAFARI_DRIVER_LOGGING
- See Also:
-
-
Constructor Details
-
SafariTechPreviewDriverService
public SafariTechPreviewDriverService(File executable, int port, Duration timeout, List<String> args, Map<String, String> environment) throws IOException- Parameters:
executable- The SafariDriver executable.port- Which port to start the SafariDriver on.timeout- Timeout waiting for driver server to start.args- The arguments to the launched server.environment- The environment for the launched server.- Throws:
IOException- If an I/O error occurs.
-
-
Method Details
-
getDriverName
- Overrides:
getDriverNamein classorg.openqa.selenium.remote.service.DriverService
-
getDriverProperty
- Overrides:
getDriverPropertyin classorg.openqa.selenium.remote.service.DriverService
-
getDriverExecutable
- Overrides:
getDriverExecutablein classorg.openqa.selenium.remote.service.DriverService
-
getDefaultDriverOptions
public org.openqa.selenium.Capabilities getDefaultDriverOptions()- Overrides:
getDefaultDriverOptionsin classorg.openqa.selenium.remote.service.DriverService
-
createDefaultService
Configures and returns a newSafariTechPreviewDriverServiceusing the default configuration. In this configuration, the service will use the SafariDriver executable identified by theDriverFinder.getDriverPath()(DriverService, Capabilities)}. Each service created by this method will be configured to use a free port on the current system.- Returns:
- A new SafariTechPreviewDriverService using the default configuration.
-
waitUntilAvailable
protected void waitUntilAvailable()- Overrides:
waitUntilAvailablein classorg.openqa.selenium.remote.service.DriverService
-