Class WaitHook

    • Constructor Detail

      • WaitHook

        public WaitHook​(FluentControl control,
                        ComponentInstantiator instantiator,
                        java.util.function.Supplier<org.openqa.selenium.WebElement> elementSupplier,
                        java.util.function.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier,
                        java.util.function.Supplier<java.lang.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 Detail

      • click

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

        public void sendKeys​(java.lang.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 java.util.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>