Package jp.vmi.selenium.webdriver
Class HtmlUnitDriverFactory
java.lang.Object
jp.vmi.selenium.webdriver.WebDriverFactory
jp.vmi.selenium.webdriver.HtmlUnitDriverFactory
public class HtmlUnitDriverFactory extends WebDriverFactory
Factory of HtmlUnitDriver.
-
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 HtmlUnitDriverFactory()Constructor. -
Method Summary
Modifier and Type Method Description StringgetBrowserName()Get browser name.protected org.openqa.selenium.DimensiongetDefaultWindowSize(org.openqa.selenium.WebDriver driver)org.openqa.selenium.WebDrivernewInstance(DriverOptions driverOptions)Create new WebDriver instance with driver options.Methods inherited from class jp.vmi.selenium.webdriver.WebDriverFactory
equals, isProxySupported, newProxy, setInitialWindowSize, setupBuilder, setupProxy, toString
-
Field Details
-
BROWSER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
HtmlUnitDriverFactory
public HtmlUnitDriverFactory()Constructor.
-
-
Method Details
-
getBrowserName
Description copied from class:WebDriverFactoryGet browser name.- Overrides:
getBrowserNamein classWebDriverFactory- Returns:
- browser name. (i.e. "firefox", "chrome", ...)
-
newInstance
Description copied from class:WebDriverFactoryCreate new WebDriver instance with driver options.- Specified by:
newInstancein classWebDriverFactory- Parameters:
driverOptions- driver options.- Returns:
- WebDriver instance.
-
getDefaultWindowSize
protected org.openqa.selenium.Dimension getDefaultWindowSize(org.openqa.selenium.WebDriver driver)- Overrides:
getDefaultWindowSizein classWebDriverFactory
-