Class WaitHook

All Implemented Interfaces:
Configuration, ConfigurationMutator, ConfigurationProperties, InputControl, AlertControl, CapabilitiesControl, ComponentInstantiator, CssControl, EventsControl, FluentContainer, FluentControl, FluentHook<WaitHookOptions>, 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

public class WaitHook extends BaseFluentHook<WaitHookOptions>
Hook that automatically wait for actions beeing available on the underlying element.
  • Constructor Details

    • WaitHook

      public WaitHook (FluentControl control, ComponentInstantiator instantiator, Supplier<org.openqa.selenium.WebElement> elementSupplier, Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier, Supplier<String> toStringSupplier, WaitHookOptions options)
      Creates a new wait hook
      Parameters:
      control - FluentLenium control interface
      instantiator - FluentLenium instantiator
      elementSupplier - element supplier
      locatorSupplier - element locator supplier
      toStringSupplier - element toString supplier
      options - hook options
  • Method Details

    • newOptions

      protected WaitHookOptions newOptions()
      Description copied from class: BaseHook
      Builds default options.
      Overrides:
      newOptions in class BaseHook<WaitHookOptions>
      Returns:
      default options
    • click

      public void click()
      Specified by:
      click in interface org.openqa.selenium.WebElement
      Overrides:
      click in class BaseHook<WaitHookOptions>
    • sendKeys

      public void sendKeys (CharSequence... keysToSend)
      Specified by:
      sendKeys in interface org.openqa.selenium.WebElement
      Overrides:
      sendKeys in class BaseHook<WaitHookOptions>
    • submit

      public void submit()
      Specified by:
      submit in interface org.openqa.selenium.WebElement
      Overrides:
      submit in class BaseHook<WaitHookOptions>
    • clear

      public void clear()
      Specified by:
      clear in interface org.openqa.selenium.WebElement
      Overrides:
      clear in class BaseHook<WaitHookOptions>
    • findElements

      public List<org.openqa.selenium.WebElement> findElements()
      Specified by:
      findElements in interface org.openqa.selenium.support.pagefactory.ElementLocator
      Overrides:
      findElements in class BaseHook<WaitHookOptions>
    • findElement

      public org.openqa.selenium.WebElement findElement()
      Specified by:
      findElement in interface org.openqa.selenium.support.pagefactory.ElementLocator
      Overrides:
      findElement in class BaseHook<WaitHookOptions>