Package net.serenitybdd.core.pages
Class PageUrls
- java.lang.Object
-
- net.serenitybdd.core.pages.PageUrls
-
public class PageUrls extends Object
Manage the URLs associated with a page Urls can be associated with a page using annotations or via the default configuration properties. The DefaultUrl annotation defines the default starting point for a page. If none is defined, the system default URL is used. The NamedUrl and NamedUrls annotations can be used to define query URLs, optionally with parameters.
-
-
Constructor Summary
Constructors Constructor Description PageUrls(Object pageObject)
PageUrls(Object pageObject, EnvironmentVariables environmentVariables)
PageUrls(Object pageObject, Configuration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addBaseUrlTo(String url)
String
addDefaultUrlTo(String url)
Optional<String>
getDeclaredDefaultUrl()
String
getNamedUrl(String name)
String
getNamedUrl(String name, String[] parameterValues)
String
getStartingUrl()
String
getStartingUrl(String... parameterValues)
String
getSystemBaseUrl()
static String
getUrlFrom(String annotatedBaseUrl)
void
overrideDefaultBaseUrl(String defaultBaseUrl)
String
verified(String requestedUrl, Object pageObject)
-
-
-
Constructor Detail
-
PageUrls
public PageUrls(Object pageObject, Configuration configuration)
-
PageUrls
public PageUrls(Object pageObject)
-
PageUrls
public PageUrls(Object pageObject, EnvironmentVariables environmentVariables)
-
-