Package org.fluentlenium.core.hook.wait
Class WaitHook
- java.lang.Object
-
- org.fluentlenium.core.FluentControlImpl
-
- org.fluentlenium.core.DefaultFluentContainer
-
- org.fluentlenium.core.hook.BaseHook<T>
-
- org.fluentlenium.core.hook.BaseFluentHook<WaitHookOptions>
-
- org.fluentlenium.core.hook.wait.WaitHook
-
- All Implemented Interfaces:
Configuration,ConfigurationMutator,ConfigurationProperties,InputControl,AlertControl,CapabilitiesControl,ComponentInstantiator,CssControl,EventsControl,FluentContainer,FluentControl,FluentHook<WaitHookOptions>,FluentInjectControl,NavigationControl,JavascriptControl,SearchControl<FluentWebElement>,SeleniumDriverControl,SnapshotControl,AwaitControl,org.openqa.selenium.interactions.Locatable,org.openqa.selenium.internal.WrapsElement,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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
-
Field Summary
-
Fields inherited from class org.fluentlenium.core.DefaultFluentContainer
control
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclick()org.openqa.selenium.WebElementfindElement()java.util.List<org.openqa.selenium.WebElement>findElements()protected WaitHookOptionsnewOptions()Builds default options.voidsendKeys(java.lang.CharSequence... keysToSend)voidsubmit()-
Methods inherited from class org.fluentlenium.core.hook.BaseFluentHook
getFluentWebElement
-
Methods inherited from class org.fluentlenium.core.hook.BaseHook
findElement, findElements, getAttribute, getCoordinates, getCssValue, getElement, getElementLocator, getInstantiator, getLocation, getOptions, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, isDisplayed, isEnabled, isSelected, toString
-
Methods inherited from class org.fluentlenium.core.DefaultFluentContainer
getDriver, getFluentControl, initFluent
-
Methods inherited from class org.fluentlenium.core.FluentControlImpl
alert, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, await, canTakeScreenShot, capabilities, css, el, events, executeAsyncScript, executeScript, find, find, find, find, getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getConfiguration, getConfigurationDefaults, getConfigurationFactory, getControlContainer, getCookie, getCookies, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriver, goTo, goTo, goToInNewTab, inject, injectComponent, isComponentClass, isComponentListClass, keyboard, mouse, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newInstance, pageSource, setAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriver, switchTo, switchTo, switchTo, switchToDefault, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshot, url, window
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.fluentlenium.core.alert.AlertControl
alert
-
Methods inherited from interface org.fluentlenium.core.wait.AwaitControl
await
-
Methods inherited from interface org.fluentlenium.core.capabilities.CapabilitiesControl
capabilities
-
Methods inherited from interface org.fluentlenium.core.components.ComponentInstantiator
asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, isComponentClass, isComponentListClass, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList
-
Methods inherited from interface org.fluentlenium.configuration.ConfigurationMutator
setAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriver
-
Methods inherited from interface org.fluentlenium.configuration.ConfigurationProperties
getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriver
-
Methods inherited from interface org.fluentlenium.core.css.CssControl
css
-
Methods inherited from interface org.fluentlenium.core.events.EventsControl
events
-
Methods inherited from interface org.fluentlenium.core.inject.FluentInjectControl
inject, injectComponent, newInstance
-
Methods inherited from interface org.fluentlenium.core.action.InputControl
keyboard, mouse
-
Methods inherited from interface org.fluentlenium.core.script.JavascriptControl
executeAsyncScript, executeScript
-
Methods inherited from interface org.fluentlenium.core.navigation.NavigationControl
getCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, window
-
Methods inherited from interface org.fluentlenium.core.search.SearchControl
$, $, $, $, el, el, el, el, find, find, find, find
-
Methods inherited from interface org.fluentlenium.core.snapshot.SnapshotControl
canTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshot
-
-
-
-
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 interfaceinstantiator- FluentLenium instantiatorelementSupplier- element supplierlocatorSupplier- element locator suppliertoStringSupplier- element toString supplieroptions- hook options
-
-
Method Detail
-
newOptions
protected WaitHookOptions newOptions()
Description copied from class:BaseHookBuilds default options.- Overrides:
newOptionsin classBaseHook<WaitHookOptions>- Returns:
- default options
-
click
public void click()
- Specified by:
clickin interfaceorg.openqa.selenium.WebElement- Overrides:
clickin classBaseHook<WaitHookOptions>
-
sendKeys
public void sendKeys(java.lang.CharSequence... keysToSend)
- Specified by:
sendKeysin interfaceorg.openqa.selenium.WebElement- Overrides:
sendKeysin classBaseHook<WaitHookOptions>
-
submit
public void submit()
- Specified by:
submitin interfaceorg.openqa.selenium.WebElement- Overrides:
submitin classBaseHook<WaitHookOptions>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.openqa.selenium.WebElement- Overrides:
clearin classBaseHook<WaitHookOptions>
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements()
- Specified by:
findElementsin interfaceorg.openqa.selenium.support.pagefactory.ElementLocator- Overrides:
findElementsin classBaseHook<WaitHookOptions>
-
findElement
public org.openqa.selenium.WebElement findElement()
- Specified by:
findElementin interfaceorg.openqa.selenium.support.pagefactory.ElementLocator- Overrides:
findElementin classBaseHook<WaitHookOptions>
-
-