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
ConstructorsConstructorDescriptionWaitHook(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 TypeMethodDescriptionvoidclear()voidclick()org.openqa.selenium.WebElementList<org.openqa.selenium.WebElement>protected WaitHookOptionsBuilds default options.voidsendKeys(CharSequence... keysToSend) voidsubmit()Methods inherited from class io.fluentlenium.core.hook.BaseFluentHook
getFluentWebElementMethods 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, toStringMethods inherited from class io.fluentlenium.core.DefaultFluentContainer
getDriver, getFluentControl, initFluentMethods inherited from class io.fluentlenium.core.FluentControlImpl
getConfiguration, getControlContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, windowMethods inherited from interface io.fluentlenium.core.search.SearchControl
$, $, $, $, $, el, el, el, elMethods 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: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
- 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
- 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>
-