public class FluentPage extends DefaultFluentContainer implements FluentPageControl
Extend this class and use @PageUrl and @FindBy annotations to provide
injectable Page Objects to FluentLenium.
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerModecontrol| Constructor and Description |
|---|
FluentPage()
Creates a new fluent page.
|
FluentPage(FluentControl control)
Creates a new fluent page, using given fluent control.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUrl()
URL of the page
It can contains mandatory parameters
{param} and optional parameters {param1} |
java.lang.String |
getUrl(java.lang.Object... parameters)
URL of the page, after replacing parameters with given values.
|
<P extends FluentPage> |
go()
Go to the url defined in the page
|
<P extends FluentPage> |
go(java.lang.Object... params)
Got to the url defined in the page, using given parameters.
|
void |
isAt()
Check if the browser is on this page.
|
void |
isAt(java.lang.Object... parameters)
Check if the browser is on this page, after replacing parameters with given values.
|
protected void |
isAtUsingSelector(org.openqa.selenium.By by)
Selector matching implementation for isAt().
|
protected void |
isAtUsingUrl(java.lang.String urlTemplate)
URL matching implementation for isAt().
|
ParsedUrlTemplate |
parseUrl()
Get the parameter values of page URL extracted from current URL.
|
ParsedUrlTemplate |
parseUrl(java.lang.String url)
Get the parameter values of page URL extracted from given URL.
|
initFluentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$, $, $, $, el, el, el, el, find, find, find, findawaitkeyboard, mouseexecuteAsyncScript, executeScriptalertcanTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshoteventsgetCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, windowgetDrivercssinject, injectComponent, 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, newFluentListcapabilitiesgetAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriversetAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriverpublic FluentPage()
public FluentPage(FluentControl control)
control - fluent controlpublic java.lang.String getUrl()
FluentPageControl{param} and optional parameters {param1}getUrl in interface FluentPageControlpublic java.lang.String getUrl(java.lang.Object... parameters)
FluentPageControlgetUrl in interface FluentPageControlparameters - parameter valuespublic void isAt()
FluentPageControlisAt in interface FluentPageControlpublic void isAt(java.lang.Object... parameters)
FluentPageControlisAt in interface FluentPageControlparameters - list of parametersprotected void isAtUsingUrl(java.lang.String urlTemplate)
urlTemplate - URL Templateprotected void isAtUsingSelector(org.openqa.selenium.By by)
by - by selectorpublic <P extends FluentPage> P go()
FluentPageControlgo in interface FluentPageControlFluentPage object
public <P extends FluentPage> P go(java.lang.Object... params)
FluentPageControlgo in interface FluentPageControlparams - page url parameter valuesFluentPage object
public ParsedUrlTemplate parseUrl()
FluentPageControlparseUrl in interface FluentPageControlpublic ParsedUrlTemplate parseUrl(java.lang.String url)
FluentPageControlparseUrl in interface FluentPageControlurl - url to parseCopyright © 2018 FluentLenium. All Rights Reserved.