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
,PerformanceTimingControl
,JavascriptControl
,SearchControl<FluentWebElement>
,SeleniumDriverControl
,SnapshotControl
,AwaitControl
,ChromiumControl
,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 void
clear()
void
click()
org.openqa.selenium.WebElement
findElement()
java.util.List<org.openqa.selenium.WebElement>
findElements()
protected WaitHookOptions
newOptions()
Builds default options.void
sendKeys(java.lang.CharSequence... keysToSend)
void
submit()
-
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
getConfiguration, getControlContainer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.fluentlenium.core.FluentControl
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, getAppiumDriver, getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getChromiumApi, getConfigurationDefaults, getConfigurationFactory, 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, performanceTiming, 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
-
-
-
-
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:BaseHook
Builds default options.- Overrides:
newOptions
in classBaseHook<WaitHookOptions>
- Returns:
- default options
-
click
public void click()
- Specified by:
click
in interfaceorg.openqa.selenium.WebElement
- Overrides:
click
in classBaseHook<WaitHookOptions>
-
sendKeys
public void sendKeys(java.lang.CharSequence... keysToSend)
- Specified by:
sendKeys
in interfaceorg.openqa.selenium.WebElement
- Overrides:
sendKeys
in classBaseHook<WaitHookOptions>
-
submit
public void submit()
- Specified by:
submit
in interfaceorg.openqa.selenium.WebElement
- Overrides:
submit
in classBaseHook<WaitHookOptions>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.openqa.selenium.WebElement
- Overrides:
clear
in classBaseHook<WaitHookOptions>
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements()
- Specified by:
findElements
in interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
- Overrides:
findElements
in classBaseHook<WaitHookOptions>
-
findElement
public org.openqa.selenium.WebElement findElement()
- Specified by:
findElement
in interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
- Overrides:
findElement
in classBaseHook<WaitHookOptions>
-
-