P - The AbstractPage that extends this.PF - The PageFactory that build this Page.public abstract class AbstractPage<P extends AbstractPage,PF extends PageFactory> extends Object implements Page<P,PF>
Page that is configured and initialized by
AbstractSuite.Page| Constructor and Description |
|---|
AbstractPage() |
| Modifier and Type | Method and Description |
|---|---|
MethodContext |
getContext()
Returns the context of the Method annotated with
Test. |
String |
getEndpoint()
Returns the endpoint that was configured for the current test run.
|
URL |
getInitialUrl()
Returns the URL that was used during page initialization.
|
Page<P,PF> |
getPage()
Returns this Page.
|
PF |
getPageFactory()
The PageFactory instance that build this Page.
|
org.openqa.selenium.WebDriver |
getWebDriver()
Returns the
WebDriver that has been configured
for this test run. |
protected void |
handlePageInitialized()
Called when this page is initialized.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPageViewableFrompublic final MethodContext getContext()
PageTest.getContext in interface Page<P extends AbstractPage,PF extends PageFactory>public final String getEndpoint()
PagegetEndpoint in interface Page<P extends AbstractPage,PF extends PageFactory>public final URL getInitialUrl()
PagegetInitialUrl in interface Page<P extends AbstractPage,PF extends PageFactory>public final Page<P,PF> getPage()
PagegetPage in interface Page<P extends AbstractPage,PF extends PageFactory>public final PF getPageFactory()
PagegetPageFactory in interface Page<P extends AbstractPage,PF extends PageFactory>public final org.openqa.selenium.WebDriver getWebDriver()
PageWebDriver that has been configured
for this test run.getWebDriver in interface Page<P extends AbstractPage,PF extends PageFactory>WebDriver.protected void handlePageInitialized()
WebDriver. You may override this
method to perform actions like waiting for requests to finish, or elements
to be visible etc.Copyright © 2015. All rights reserved.