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 |
|---|---|
String |
getUrl()
Url of the Page
|
void |
go()
Go to the url defined in the page
|
void |
isAt()
Should check if the navigator is on correct page.
|
initFluentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$, $, $, 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 FluentPage()
public FluentPage(FluentControl control)
control - fluent controlpublic String getUrl()
FluentPageControlgetUrl in interface FluentPageControlpublic void isAt()
FluentPageControlFor example : assertThat(title()).isEqualTo("Page 1"); assertThat("#reallyImportantField").hasSize(1);
isAt in interface FluentPageControlpublic final void go()
FluentPageControlgo in interface FluentPageControlCopyright © 2016 FluentLenium. All Rights Reserved.