Package io.fluentlenium.core
Interface FluentPageControl
- All Superinterfaces:
AlertControl
,AwaitControl
,CapabilitiesControl
,ChromiumControl
,ComponentInstantiator
,Configuration
,ConfigurationMutator
,ConfigurationProperties
,CssControl
,EventsControl
,FluentControl
,FluentInjectControl
,InputControl
,JavascriptControl
,NavigationControl
,PerformanceTimingControl
,SearchControl<FluentWebElement>
,SeleniumDriverControl
,SnapshotControl
- All Known Implementing Classes:
FluentPage
Provides controls for a Page Object.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
Gets the URL of the page.URL of the page, after replacing parameters with given values.<P extends FluentPage>
Pgo()
Go to the url defined in the page<P extends FluentPage>
PGot to the url defined in the page, using given parameters.void
isAt()
Check if the browser is on this page.void
Check if the browser is on this page, after replacing parameters with given values.parseUrl()
Get the parameter values of page URL extracted from current URL.Get the parameter values of page URL extracted from given URL.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, getConfiguration, getConfigurationDefaults, getConfigurationFactory, getControlContainer, getCookie, getCookies, getCustomProperty, getDeleteCookies, getDriver, getDriverLifecycle, getEventsEnabled, getFluentControl, 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
-
Method Details
-
getUrl
String getUrl()Gets the URL of the page. It can contain mandatory parameters{param}
and optional parameters{?param1}
.- Returns:
- page URL
-
getUrl
URL of the page, after replacing parameters with given values.- Parameters:
parameters
- parameter values- Returns:
- Effective url generated for given parameter values
- Throws:
IllegalArgumentException
- if some required parameters are missing
-
isAt
void isAt()Check if the browser is on this page. -
isAt
Check if the browser is on this page, after replacing parameters with given values.- Parameters:
parameters
- list of parameters
-
go
Go to the url defined in the page- Type Parameters:
P
- the fluent page- Returns:
FluentPage object
-
go
Got to the url defined in the page, using given parameters.- Type Parameters:
P
- the fluent page- Parameters:
params
- page url parameter values- Returns:
FluentPage object
- Throws:
IllegalArgumentException
- if some required parameters are missing
-
parseUrl
ParsedUrlTemplate parseUrl()Get the parameter values of page URL extracted from current URL.- Returns:
- parameter values
-
parseUrl
Get the parameter values of page URL extracted from given URL.- Parameters:
url
- url to parse- Returns:
- parameter values
-