Class GenericTablePage
- java.lang.Object
-
- step.basic.web.selenium.keywords.helper.AbstractPageObject
-
- step.basic.web.selenium.pages.generic.GenericStepPage
-
- step.basic.web.selenium.pages.generic.GenericTablePage
-
- Direct Known Subclasses:
AdminProjectsPage,ExecutionsPage,GridPage,KeywordsPage,ParametersPage,PlansPage,ReportsPage,ResourcesPage,SchedulerPage
public abstract class GenericTablePage extends GenericStepPage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericTablePage.Paging
-
Field Summary
Fields Modifier and Type Field Description protected static StringXPATH_FILTERSprotected static StringXPATH_INFOprotected static StringXPATH_LOADERprotected static StringXPATH_PAGESprotected static StringXPATH_PAGINGprotected static StringXPATH_SORTING-
Fields inherited from class step.basic.web.selenium.pages.generic.GenericStepPage
DEFAULT_TIMEOUT, wait
-
Fields inherited from class step.basic.web.selenium.keywords.helper.AbstractPageObject
driver
-
-
Constructor Summary
Constructors Constructor Description GenericTablePage(org.openqa.selenium.WebDriver driver)GenericTablePage(org.openqa.selenium.WebDriver driver, String username)GenericTablePage(GenericStepPage page)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidchangePaging(GenericTablePage.Paging paging)voidcheckElementIsDisplayedInColumn(String tableUid, String columnId, String elementName)voidcheckElementIsDisplayedInFirstColumn(String tableUid, String elementName)GenericTablePagefilter(String key, String value)StringgetCurrentPaging()List<String>getKeylist()StringgetRootXPath()abstract StringgetTableName()StringgetTotalEntries()voidgotoNextPage(int level)protected voidpageChecks()voidsort(String key)-
Methods inherited from class step.basic.web.selenium.pages.generic.GenericStepPage
assertExecution, assertExecution, checkStepVersion, checkUsername, clickButton, createParameter, createPlainTextPlan, createPlan, createProject, createResource, createSchedulerTask, editTextField, expandSection, expendMenu, getNonEmptyTableCellsByColumn, getNonEmptyTableCellsByColumn, getTableSize, getUsername, gotoAdmin, gotoExecutions, gotoGrid, gotoKeywords, gotoMenuPage, gotoPage, gotoPage, gotoParameters, gotoPlans, gotoReports, gotoScheduler, selectProject, selectTab, setAutorefresh
-
Methods inherited from class step.basic.web.selenium.keywords.helper.AbstractPageObject
doWithoutImplicitWait, doWithoutImplicitWait, findAllBy, findAllBy, findBy, findBy, getDriver, getJSWaiter, safeClick, safeClick, safeJavascriptClick, safeJavascriptClick, safeSendKeys, safeSendKeys, safeWait, safeWait
-
-
-
-
Field Detail
-
XPATH_SORTING
protected static final String XPATH_SORTING
- See Also:
- Constant Field Values
-
XPATH_FILTERS
protected static final String XPATH_FILTERS
- See Also:
- Constant Field Values
-
XPATH_PAGING
protected static final String XPATH_PAGING
- See Also:
- Constant Field Values
-
XPATH_PAGES
protected static final String XPATH_PAGES
- See Also:
- Constant Field Values
-
XPATH_INFO
protected static final String XPATH_INFO
- See Also:
- Constant Field Values
-
XPATH_LOADER
protected static final String XPATH_LOADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GenericTablePage
public GenericTablePage(GenericStepPage page)
-
GenericTablePage
public GenericTablePage(org.openqa.selenium.WebDriver driver, String username)
-
GenericTablePage
public GenericTablePage(org.openqa.selenium.WebDriver driver)
-
-
Method Detail
-
getTableName
public abstract String getTableName()
-
sort
public void sort(String key)
-
filter
public GenericTablePage filter(String key, String value)
-
checkElementIsDisplayedInColumn
public void checkElementIsDisplayedInColumn(String tableUid, String columnId, String elementName)
-
checkElementIsDisplayedInFirstColumn
public void checkElementIsDisplayedInFirstColumn(String tableUid, String elementName)
-
gotoNextPage
public void gotoNextPage(int level)
-
getRootXPath
public String getRootXPath()
-
getTotalEntries
public String getTotalEntries()
-
getCurrentPaging
public String getCurrentPaging()
-
changePaging
public void changePaging(GenericTablePage.Paging paging) throws Exception
- Throws:
Exception
-
pageChecks
protected void pageChecks()
- Overrides:
pageChecksin classGenericStepPage
-
-