T - type of options for the hookpublic class BaseHook<T> extends DefaultFluentContainer implements FluentHook<T>
You should extends this class to implement your own hook.
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerModecontrol| Constructor and Description |
|---|
BaseHook(FluentControl control,
ComponentInstantiator instantiator,
com.google.common.base.Supplier<org.openqa.selenium.WebElement> elementSupplier,
com.google.common.base.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier,
com.google.common.base.Supplier<String> toStringSupplier,
T options)
Creates a new base hook.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
getElement()
Get the underlying element of the hook.
|
org.openqa.selenium.support.pagefactory.ElementLocator |
getElementLocator()
Get the underlying element locator of the hook.
|
ComponentInstantiator |
getInstantiator()
Get the component instantiator.
|
T |
getOptions()
Get the options of the hook.
|
org.openqa.selenium.WebElement |
getWrappedElement() |
protected T |
newOptions()
Builds default options.
|
String |
toString() |
initFluentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, click, findElement, findElements, getAttribute, getCssValue, getLocation, getRect, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submitfindElement, findElements$, $, $, el, el, el, find, find, findawaitkeyboard, mouseexecuteAsyncScript, executeScriptalertcanTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenShot, takeScreenShoteventsgetCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, windowgetDrivercssinject, inject, newInstanceasComponentList, 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, newFluentListgetAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriversetAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriverpublic BaseHook(FluentControl control, ComponentInstantiator instantiator, com.google.common.base.Supplier<org.openqa.selenium.WebElement> elementSupplier, com.google.common.base.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier, com.google.common.base.Supplier<String> toStringSupplier, T options)
control - control interfaceinstantiator - component instantiatorelementSupplier - element supplierlocatorSupplier - element locator suppliertoStringSupplier - element toString supplieroptions - hook optionspublic final org.openqa.selenium.WebElement getElement()
Can be another hook, or a real element.
public org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement in interface org.openqa.selenium.internal.WrapsElementpublic final org.openqa.selenium.support.pagefactory.ElementLocator getElementLocator()
protected T newOptions()
public ComponentInstantiator getInstantiator()
public T getOptions()
FluentHookgetOptions in interface FluentHook<T>Copyright © 2016 FluentLenium. All Rights Reserved.