Class BrowseTheWeb

java.lang.Object
org.shakespeareframework.selenium.BrowseTheWeb
All Implemented Interfaces:
AutoCloseable, org.shakespeareframework.Ability

public final class BrowseTheWeb extends Object implements org.shakespeareframework.Ability, AutoCloseable
Ability to browse the web using a Selenium WebDriver.
  • Constructor Details

  • Method Details

    • getWebDriver

      public org.openqa.selenium.WebDriver getWebDriver()
      Gets the WebDriver from the webDriverSupplier and returns it.

      If a baseUrl is given, it will be opened automatically.

      Returns:
      a WebDriver instance.
      See Also:
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object