Class HtmlUnitDriverFactory

java.lang.Object
com.codeborne.selenide.webdriver.AbstractDriverFactory
com.codeborne.selenide.webdriver.HtmlUnitDriverFactory
All Implemented Interfaces:
DriverFactory

public class HtmlUnitDriverFactory extends AbstractDriverFactory
Creates HtmlUnit driver - a headless browser written in Java.

Requires dependency org.seleniumhq.selenium:htmlunit3-driver to be added to the project.

HtmlUnit is always headless and doesn't support browser size and position.

  • Constructor Details

    • HtmlUnitDriverFactory

      public HtmlUnitDriverFactory()
  • Method Details

    • create

      public org.openqa.selenium.WebDriver create(Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy, @Nullable File browserDownloadsFolder)
    • createCapabilities

      public org.openqa.selenium.MutableCapabilities createCapabilities(Config config, Browser browser, @Nullable org.openqa.selenium.Proxy proxy, @Nullable File browserDownloadsFolder)
    • setBrowserSize

      public void setBrowserSize(Config config, org.openqa.selenium.WebDriver webdriver)
    • setBrowserPosition

      public void setBrowserPosition(Config config, org.openqa.selenium.WebDriver webdriver)