Package io.fluentlenium.core.hook.wait
Class WaitHook
java.lang.Object
- 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
Hook that automatically wait for actions beeing available on the underlying
element.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
Field Summary
Fields inherited from class io.fluentlenium.core.DefaultFluentContainer
control
-
Constructor Summary
ConstructorDescriptionWaitHook
(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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
click()
org.openqa.selenium.WebElement
List<org.openqa.selenium.WebElement>
protected WaitHookOptions
Builds default options.void
sendKeys
(CharSequence... keysToSend) void
submit()
Methods inherited from class io.fluentlenium.core.hook.BaseFluentHook
getFluentWebElement
Methods inherited from class io.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 io.fluentlenium.core.DefaultFluentContainer
getDriver, getFluentControl, initFluent
Methods inherited from class io.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 io.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
Methods inherited from interface io.fluentlenium.core.search.SearchControl
$, $, $, $, $, el, el, el, el
Methods inherited from interface org.openqa.selenium.WebElement
getAccessibleName, getAriaRole, getDomAttribute, getDomProperty, getShadowRoot
-
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 interfaceinstantiator
- FluentLenium instantiatorelementSupplier
- element supplierlocatorSupplier
- element locator suppliertoStringSupplier
- element toString supplieroptions
- hook options
-
-
Method Details
-
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
- 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
- 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>
-