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.
  • Field Details

  • 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

      public String getDriverName()
      Overrides:
      getDriverName in class org.openqa.selenium.remote.service.DriverService
    • getDriverProperty

      public String getDriverProperty()
      Overrides:
      getDriverProperty in class org.openqa.selenium.remote.service.DriverService
    • getDriverExecutable

      public File getDriverExecutable()
      Overrides:
      getDriverExecutable in class org.openqa.selenium.remote.service.DriverService
    • getDefaultDriverOptions

      public org.openqa.selenium.Capabilities getDefaultDriverOptions()
      Overrides:
      getDefaultDriverOptions in class org.openqa.selenium.remote.service.DriverService
    • createDefaultService

      public static SafariTechPreviewDriverService createDefaultService()
      Configures and returns a new SafariTechPreviewDriverService using the default configuration. In this configuration, the service will use the SafariDriver executable identified by the org.openqa.selenium.remote.service.DriverFinder#getResult(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 class org.openqa.selenium.remote.service.DriverService