Class BaseFluentHook<T>

Type Parameters:
T - object
All Implemented Interfaces:
Configuration, ConfigurationMutator, ConfigurationProperties, InputControl, AlertControl, CapabilitiesControl, ComponentInstantiator, CssControl, EventsControl, FluentContainer, FluentControl, FluentHook<T>, FluentInjectControl, NavigationControl, PerformanceTimingControl, JavascriptControl, SearchControl<FluentWebElement>, SeleniumDriverControl, SnapshotControl, AwaitControl, ChromiumControl, org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.support.pagefactory.ElementLocator, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement
Direct Known Subclasses:
WaitHook

public class BaseFluentHook<T> extends BaseHook<T>
Base hook supporting FluentWebElement API.

You should extends this class to implements your own hook.

See Also:
  • Constructor Details

    • BaseFluentHook

      public BaseFluentHook (FluentControl control, ComponentInstantiator instantiator, Supplier<org.openqa.selenium.WebElement> elementSupplier, Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier, Supplier<String> toStringSupplier, T options)
      create a new base fluent hook.
      Parameters:
      control - control interface
      instantiator - component instantiator
      elementSupplier - element supplier
      locatorSupplier - element locator supplier
      toStringSupplier - element toString supplier
      options - hook options
  • Method Details

    • getFluentWebElement

      public FluentWebElement getFluentWebElement()
      Get the underlying element as a FluentWebElement.
      Returns:
      underlying element as a FluentWebElement