public abstract class Page extends Object implements BrowserContext
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseUrl |
protected String |
baseUrlRegex |
protected Browser |
browser |
protected String |
uri |
protected String |
uriRegex |
protected String |
url |
protected String |
urlRegex |
protected Boolean |
urlVerification |
protected Double |
waitPageBeforeInitTimeout |
protected Double |
waitRetryInterval |
protected Double |
waitTimeout |
| Constructor and Description |
|---|
Page() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterInit() |
protected void |
afterInitElements() |
protected void |
afterSetup() |
protected void |
afterVerify() |
protected void |
applyAnnotationConfiguration(PageConfig config) |
protected void |
applyBrowserConfiguration(Browser browser) |
protected void |
beforeInit() |
protected void |
beforeInitElements() |
protected void |
beforeSetup() |
protected void |
beforeVerify() |
protected void |
configureFromAnnotation() |
protected void |
configureFromBrowser() |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
String |
getBaseUrl() |
String |
getBaseUrlRegex() |
Browser |
getBrowser()
Returns
Browser instance. |
BrowserContext |
getContext()
Returns parent
BrowserContext instance. |
String |
getUri() |
String |
getUriRegex() |
String |
getUrl() |
String |
getUrlRegex() |
double |
getWaitRetryInterval()
Returns default wait retry interval.
|
double |
getWaitTimeout()
Returns default wait timeout.
|
Page |
goTo() |
Page |
init() |
boolean |
isUrlVerification() |
protected void |
setup()
Override this method to initialize
custom elements or do some other things
before verification.
|
void |
setWaitRetryInterval(double waitRetryInterval) |
void |
setWaitTimeout(double waitTimeout) |
void |
verify() |
protected void |
verifyThis()
Override this method to perform custom check
after all fields are initiated and setup is done.
|
protected void |
verifyUrl() |
Page |
with(Browser browser) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassertAt, checkIfPresent, constructBrowserElement, constructEvent, constructLogic, constructPage, createElementLocator, createElementLocator, createElementLocator, find, find, find, find, findOne, findOne, findOne, findOne, findOne, findOneOptional, findOneOptional, findOneOptional, findOneOptional, getBrowser, getConfiguration, getConfiguration, getContext, getDataHolder, getDriver, getDriver, getPage, getPage, getProperty, getUtils, getWrappedDriver, goTo, goTo, goToSafely, goToSafely, goToUrl, initBrowserElement, initBrowserElement, initElements, initLogic, initLogic, initOnePage, initOnePageSafely, initPage, initPage, initPageSafely, initPageSafely, isAt, isNotPresent, isPresent, report, saveFile, saveFile, saveFile, setPage, triggerEvent, waiting, waiting, waiting, waitingcastString, getProperty, getProperty, getPropertyaddData, getData, removeDataprotected String uri
protected String uriRegex
protected String baseUrl
protected String baseUrlRegex
protected String url
protected String urlRegex
protected Boolean urlVerification
protected Double waitTimeout
protected Double waitRetryInterval
protected Double waitPageBeforeInitTimeout
protected Browser browser
public String getUri()
public String getUriRegex()
public String getBaseUrl()
public String getBaseUrlRegex()
public boolean isUrlVerification()
public String getUrl()
public String getUrlRegex()
public Page goTo()
public final Page init()
public BrowserContext getContext()
BrowserContextBrowserContext instance.getContext in interface BrowserContextpublic Browser getBrowser()
BrowserContextBrowser instance.getBrowser in interface BrowserContextpublic double getWaitTimeout()
BrowserContextgetWaitTimeout in interface BrowserContextpublic void setWaitTimeout(double waitTimeout)
public double getWaitRetryInterval()
BrowserContextgetWaitRetryInterval in interface BrowserContextpublic void setWaitRetryInterval(double waitRetryInterval)
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextpublic void verify()
throws VerificationException
VerificationExceptionprotected void verifyUrl()
protected void configureFromAnnotation()
protected void applyAnnotationConfiguration(PageConfig config)
protected void configureFromBrowser()
protected void applyBrowserConfiguration(Browser browser)
protected void setup()
protected void verifyThis()
protected void beforeInit()
protected void beforeInitElements()
protected void afterInitElements()
protected void beforeSetup()
protected void afterSetup()
protected void beforeVerify()
protected void afterVerify()
protected void afterInit()
Copyright © 2016 Etnetera a.s.. All rights reserved.