Package jp.vmi.selenium.webdriver
Class SafariDriverFactory
java.lang.Object
jp.vmi.selenium.webdriver.WebDriverFactory
jp.vmi.selenium.webdriver.SafariDriverFactory
public class SafariDriverFactory extends WebDriverFactory
Factory of
SafariDriver.-
Field Summary
Fields Modifier and Type Field Description static StringBROWSER_NAMEFields inherited from class jp.vmi.selenium.webdriver.WebDriverFactory
DEFAULT_HEIGHT, DEFAULT_WIDTH -
Constructor Summary
Constructors Constructor Description SafariDriverFactory() -
Method Summary
Modifier and Type Method Description StringgetBrowserName()Get browser name.booleanisProxySupported()Is proxy supported?org.openqa.selenium.WebDrivernewInstance(DriverOptions driverOptions)Create new WebDriver instance with driver options.static org.openqa.selenium.safari.SafariOptionsnewSafariOptions(DriverOptions driverOptions)Create and initialize SafariOptions.Methods inherited from class jp.vmi.selenium.webdriver.WebDriverFactory
equals, getDefaultWindowSize, newProxy, setInitialWindowSize, setupBuilder, setupProxy, toString
-
Field Details
-
BROWSER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SafariDriverFactory
public SafariDriverFactory()
-
-
Method Details
-
getBrowserName
Description copied from class:WebDriverFactoryGet browser name.- Overrides:
getBrowserNamein classWebDriverFactory- Returns:
- browser name. (i.e. "firefox", "chrome", ...)
-
isProxySupported
public boolean isProxySupported()Description copied from class:WebDriverFactoryIs proxy supported?- Overrides:
isProxySupportedin classWebDriverFactory- 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
Description copied from class:WebDriverFactoryCreate new WebDriver instance with driver options.- Specified by:
newInstancein classWebDriverFactory- Parameters:
driverOptions- driver options.- Returns:
- WebDriver instance.
-