Package org.openqa.selenium.safari
Class SafariDriverService
java.lang.Object
org.openqa.selenium.remote.service.DriverService
org.openqa.selenium.safari.SafariDriverService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Manages the life and death of SafariDriver.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder used to configure newSafariDriverService
instances. -
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SafariDriverService
Configures and returns a newSafariDriverService
using the default configuration.protected Capabilities
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
-
SAFARI_DRIVER_NAME
- See Also:
-
SAFARI_DRIVER_EXE_PROPERTY
System property that defines the location of the safaridriver executable that will be used by thedefault service
.- See Also:
-
SAFARI_DRIVER_LOGGING
- See Also:
-
-
Constructor Details
-
SafariDriverService
public SafariDriverService(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 newSafariDriverService
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 SafariDriverService using the default configuration.
-
waitUntilAvailable
protected void waitUntilAvailable()- Overrides:
waitUntilAvailable
in classDriverService
-