Package org.apache.wiki.pages
Interface Page
-
- All Known Subinterfaces:
HaddockPage
- All Known Implementing Classes:
EditWikiPage
,LoginPage
,SearchResultsPage
,ViewWikiPage
public interface Page
Common operations for Page Objects.- See Also:
- Page Objects
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static java.lang.String
baseUrl()
returns the base URL on which the tests are run.static java.io.File
download(java.lang.String url)
default java.lang.String
title()
returns the actual page title.default java.lang.String
url()
returns the actual URL.java.lang.String
wikiPageContent()
returns page's wiki content.java.lang.String
wikiTitle()
returns page's wiki title.static PageBuilder
withUrl(java.lang.String url)
Creates a newPageBuilder
in order to customize page creation.
-
-
-
Method Detail
-
withUrl
static PageBuilder withUrl(java.lang.String url)
Creates a newPageBuilder
in order to customize page creation.- Parameters:
url
- url to open in the browser.- Returns:
PageBuilder
instance to allow page creation customization.
-
baseUrl
static java.lang.String baseUrl()
returns the base URL on which the tests are run.- Returns:
- the base URL on which the tests are run.
-
download
static java.io.File download(java.lang.String url) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOException
java.net.URISyntaxException
-
title
default java.lang.String title()
returns the actual page title.- Returns:
- the actual page title.
-
url
default java.lang.String url()
returns the actual URL.- Returns:
- the actual URL.
-
wikiTitle
java.lang.String wikiTitle()
returns page's wiki title.- Returns:
- page's wiki title.
-
wikiPageContent
java.lang.String wikiPageContent()
returns page's wiki content.- Returns:
- page's wiki content.
-
-