public class PageClass extends AbstractPageClass
locatorFile
browser, config
Constructor and Description |
---|
PageClass() |
Modifier and Type | Method and Description |
---|---|
boolean |
at()
Method used to verify whether the driver object is on the said page or not.
|
void |
init()
Use this method in case you want to initialize some variables or data while creating an Object of you Page class.
|
String |
toUrl()
The url for the said page.
|
evaluateLocatorFile, getDriver, getLocatorFile, init, isInitialized, setDriver, setLocatorFile
at, at, at, at, at, at, getPageObject, getPageObject, getPageObject, getUrl, isAt, isAt, isAt, isAt, isAt, isAt, setBrowser, to, to, to, to, to, to, to
evaluateFileFromResourceDirectory, waitForElementPresent, waitForElementPresent, waitForElementPresent, waitForElementPresent, waitForElementToBeVisible, waitForElementToBeVisible, waitForPage, waitForPage
public String toUrl()
AbstractPageClass
Note:Do not append the base url to this url as it is automatically appended at runtime.
toUrl
in class AbstractPageClass
public boolean at()
AbstractPageClass
This is a very important method as it will help in making you Page object model tests robust as it will help you to validate the Page is shown before any of the util methods of the said page is executed. Note: For better results do not store your evaluated condition in a variable. Try to evaluate the success condition everytime this method gets executed.
at
in class AbstractPageClass
public void init()
AbstractPageClass
PageObjectUtils.to(Class)
or PageObjectUtils.at(Class)
utils.
In case you have nothing initialize just implement an empty method.init
in class AbstractPageClass
Copyright © 2014. All rights reserved.