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
Manages the life and death of SafariDriver Technology Preview.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder used to configure newSafariTechPreviewDriverService
instances. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
System property that defines the location of the safaridriver executable that will be used by thedefault service
.static final String
static final String
Fields inherited from class org.openqa.selenium.remote.service.DriverService
DEFAULT_TIMEOUT, LOG_NULL, LOG_STDERR, LOG_STDOUT, process
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConfigures and returns a newSafariTechPreviewDriverService
using the default configuration.protected void
Methods inherited from class org.openqa.selenium.remote.service.DriverService
close, getArgs, 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:
getDriverName
in classDriverService
-
getDriverProperty
- Overrides:
getDriverProperty
in classDriverService
-
getDriverExecutable
- Overrides:
getDriverExecutable
in classDriverService
-
getDefaultDriverOptions
- Overrides:
getDefaultDriverOptions
in classDriverService
-
createDefaultService
Configures and returns a newSafariTechPreviewDriverService
using 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:
waitUntilAvailable
in classDriverService
-