Package org.openqa.selenium.safari
Class SafariTechPreviewDriverService
- java.lang.Object
-
- org.openqa.selenium.remote.service.DriverService
-
- org.openqa.selenium.safari.SafariTechPreviewDriverService
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SafariTechPreviewDriverService extends org.openqa.selenium.remote.service.DriverServiceManages the life and death of SafariDriver Technology Preview.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSafariTechPreviewDriverService.BuilderBuilder used to configure newSafariTechPreviewDriverServiceinstances.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTP_SAFARI_DRIVER_EXE_PROPERTYSystem property that defines the location of the safaridriver executable that will be used by thedefault service.static java.lang.StringTP_SAFARI_DRIVER_NAME
-
Constructor Summary
Constructors Constructor Description SafariTechPreviewDriverService(java.io.File executable, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)SafariTechPreviewDriverService(java.io.File executable, int port, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SafariTechPreviewDriverServicecreateDefaultService()Configures and returns a newSafariTechPreviewDriverServiceusing the default configuration.protected org.openqa.selenium.CapabilitiesgetDefaultDriverOptions()java.io.FilegetDriverExecutable()java.lang.StringgetDriverName()java.lang.StringgetDriverProperty()protected voidwaitUntilAvailable()
-
-
-
Field Detail
-
TP_SAFARI_DRIVER_NAME
public static final java.lang.String TP_SAFARI_DRIVER_NAME
- See Also:
- Constant Field Values
-
TP_SAFARI_DRIVER_EXE_PROPERTY
public static final java.lang.String TP_SAFARI_DRIVER_EXE_PROPERTY
System property that defines the location of the safaridriver executable that will be used by thedefault service.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SafariTechPreviewDriverService
@Deprecated public SafariTechPreviewDriverService(java.io.File executable, int port, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment) throws java.io.IOExceptionDeprecated.- Parameters:
executable- The SafariDriver executable.port- Which port to start the SafariDriver on.args- The arguments to the launched server.environment- The environment for the launched server.- Throws:
java.io.IOException- If an I/O error occurs.
-
SafariTechPreviewDriverService
public SafariTechPreviewDriverService(java.io.File executable, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment) throws java.io.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:
java.io.IOException- If an I/O error occurs.
-
-
Method Detail
-
getDriverName
public java.lang.String getDriverName()
- Overrides:
getDriverNamein classorg.openqa.selenium.remote.service.DriverService
-
getDriverProperty
public java.lang.String getDriverProperty()
- Overrides:
getDriverPropertyin classorg.openqa.selenium.remote.service.DriverService
-
getDriverExecutable
public java.io.File 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
public static SafariTechPreviewDriverService createDefaultService()
Configures and returns a newSafariTechPreviewDriverServiceusing the default configuration. In this configuration, the service will use the SafariDriver executable identified by theDriverFinder.getPath(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
-
-