Class SafariDriverFactory

java.lang.Object
jp.vmi.selenium.webdriver.WebDriverFactory
jp.vmi.selenium.webdriver.SafariDriverFactory

public class SafariDriverFactory
extends WebDriverFactory
Factory of SafariDriver.
  • Field Details

  • Constructor Details

    • SafariDriverFactory

      public SafariDriverFactory()
  • Method Details

    • getBrowserName

      public String getBrowserName()
      Description copied from class: WebDriverFactory
      Get browser name.
      Overrides:
      getBrowserName in class WebDriverFactory
      Returns:
      browser name. (i.e. "firefox", "chrome", ...)
    • isProxySupported

      public boolean isProxySupported()
      Description copied from class: WebDriverFactory
      Is proxy supported?
      Overrides:
      isProxySupported in class WebDriverFactory
      Returns:
      true if proxy is supported by driver.
    • newSafariOptions

      public static org.openqa.selenium.safari.SafariOptions newSafariOptions​(DriverOptions driverOptions)
      Create and initialize SafariOptions.
      Parameters:
      driverOptions - driver options.
      Returns:
      SafariOptions.
    • newInstance

      public org.openqa.selenium.WebDriver newInstance​(DriverOptions driverOptions)
      Description copied from class: WebDriverFactory
      Create new WebDriver instance with driver options.
      Specified by:
      newInstance in class WebDriverFactory
      Parameters:
      driverOptions - driver options.
      Returns:
      WebDriver instance.