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
public class SafariDriverService
extends org.openqa.selenium.remote.service.DriverService
Manages the life and death of SafariDriver.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to configure newSafariDriverServiceinstances. -
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 TypeMethodDescriptionstatic SafariDriverServiceConfigures and returns a newSafariDriverServiceusing the default configuration.protected org.openqa.selenium.Capabilitiesprotected voidMethods 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:
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
protected org.openqa.selenium.Capabilities getDefaultDriverOptions()- Overrides:
getDefaultDriverOptionsin classorg.openqa.selenium.remote.service.DriverService
-
createDefaultService
Configures and returns a newSafariDriverServiceusing 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:
waitUntilAvailablein classorg.openqa.selenium.remote.service.DriverService
-