Class GenericStepPage
- java.lang.Object
-
- step.basic.web.selenium.keywords.helper.AbstractPageObject
-
- step.basic.web.selenium.pages.generic.GenericStepPage
-
- Direct Known Subclasses:
AdminPage
,AdminSettingsPage
,ExecutionScreen
,GenericTablePage
,KeywordEditorPage
,PlanEditorPage
public abstract class GenericStepPage extends AbstractPageObject
-
-
Field Summary
Fields Modifier and Type Field Description protected static long
DEFAULT_TIMEOUT
protected org.openqa.selenium.support.ui.WebDriverWait
wait
-
Fields inherited from class step.basic.web.selenium.keywords.helper.AbstractPageObject
driver
-
-
Constructor Summary
Constructors Constructor Description GenericStepPage(org.openqa.selenium.WebDriver driver)
GenericStepPage(org.openqa.selenium.WebDriver driver, java.lang.String username)
GenericStepPage(GenericStepPage page)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
assertExecution(java.lang.String planName, java.lang.String parameterName, ExecutionScreen executionPage)
static void
assertExecution(java.lang.String planName, java.lang.String parameterName, ExecutionScreen executionScreen, boolean toggleAutorefresh)
void
checkStepVersion(java.lang.String version)
void
checkUsername(java.lang.String username)
void
clickButton(java.lang.String buttonText)
static java.lang.String
createParameter(PlansPage mainPage, java.lang.String uid)
static PlanEditorPage
createPlainTextPlan(PlansPage mainPage, java.lang.String planName)
static java.lang.String
createPlan(PlansPage mainPage, java.lang.String uid)
static java.lang.String
createProject(PlansPage mainPage)
static java.lang.String
createResource(PlansPage mainPage, java.nio.file.Path resourcePath, java.lang.String resourceType)
static java.lang.String
createSchedulerTask(PlansPage mainPage, java.lang.String uid, java.lang.String planName, java.lang.String cronExpression)
void
editTextField(java.lang.String label, java.lang.String value)
void
expandSection(java.lang.String sectionTitle)
void
expendMenu()
java.util.List<java.lang.String>
getNonEmptyTableCellsByColumn(java.lang.String tableUid)
java.util.List<java.lang.String>
getNonEmptyTableCellsByColumn(java.lang.String tableUid, java.lang.String columnId)
int
getTableSize(java.lang.String tableUid)
java.lang.String
getUsername()
AdminPage
gotoAdmin()
ExecutionsPage
gotoExecutions()
GridPage
gotoGrid()
KeywordsPage
gotoKeywords()
GenericStepPage
gotoMenuPage(java.lang.String menuName, java.lang.String xpathToCheck)
protected abstract void
gotoPage()
protected void
gotoPage(java.lang.String menuName, java.lang.String divId)
ParametersPage
gotoParameters()
PlansPage
gotoPlans()
ReportsPage
gotoReports()
SchedulerPage
gotoScheduler()
protected void
pageChecks()
void
selectProject(java.lang.String project)
void
selectTab(java.lang.String tabName)
void
setAutorefresh(java.lang.String value)
-
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
-
-
-
-
Constructor Detail
-
GenericStepPage
public GenericStepPage(org.openqa.selenium.WebDriver driver, java.lang.String username)
-
GenericStepPage
public GenericStepPage(org.openqa.selenium.WebDriver driver)
-
GenericStepPage
public GenericStepPage(GenericStepPage page)
-
-
Method Detail
-
checkStepVersion
public void checkStepVersion(java.lang.String version)
-
checkUsername
public void checkUsername(java.lang.String username)
-
pageChecks
protected void pageChecks()
-
gotoPage
protected abstract void gotoPage()
-
gotoPlans
public PlansPage gotoPlans()
-
gotoKeywords
public KeywordsPage gotoKeywords()
-
gotoParameters
public ParametersPage gotoParameters()
-
gotoExecutions
public ExecutionsPage gotoExecutions()
-
gotoReports
public ReportsPage gotoReports()
-
gotoScheduler
public SchedulerPage gotoScheduler()
-
gotoGrid
public GridPage gotoGrid()
-
gotoAdmin
public AdminPage gotoAdmin()
-
expendMenu
public void expendMenu()
-
gotoPage
protected void gotoPage(java.lang.String menuName, java.lang.String divId)
-
gotoMenuPage
public GenericStepPage gotoMenuPage(java.lang.String menuName, java.lang.String xpathToCheck)
-
getUsername
public java.lang.String getUsername()
-
selectTab
public void selectTab(java.lang.String tabName)
-
clickButton
public void clickButton(java.lang.String buttonText)
-
editTextField
public void editTextField(java.lang.String label, java.lang.String value)
-
selectProject
public void selectProject(java.lang.String project)
-
expandSection
public void expandSection(java.lang.String sectionTitle)
-
getNonEmptyTableCellsByColumn
public java.util.List<java.lang.String> getNonEmptyTableCellsByColumn(java.lang.String tableUid, java.lang.String columnId)
-
setAutorefresh
public void setAutorefresh(java.lang.String value)
-
getNonEmptyTableCellsByColumn
public java.util.List<java.lang.String> getNonEmptyTableCellsByColumn(java.lang.String tableUid)
-
getTableSize
public int getTableSize(java.lang.String tableUid)
-
createPlainTextPlan
public static PlanEditorPage createPlainTextPlan(PlansPage mainPage, java.lang.String planName)
-
createPlan
public static java.lang.String createPlan(PlansPage mainPage, java.lang.String uid)
-
createProject
public static java.lang.String createProject(PlansPage mainPage)
-
createSchedulerTask
public static java.lang.String createSchedulerTask(PlansPage mainPage, java.lang.String uid, java.lang.String planName, java.lang.String cronExpression)
-
createParameter
public static java.lang.String createParameter(PlansPage mainPage, java.lang.String uid)
-
createResource
public static java.lang.String createResource(PlansPage mainPage, java.nio.file.Path resourcePath, java.lang.String resourceType)
-
assertExecution
public static void assertExecution(java.lang.String planName, java.lang.String parameterName, ExecutionScreen executionPage)
-
assertExecution
public static void assertExecution(java.lang.String planName, java.lang.String parameterName, ExecutionScreen executionScreen, boolean toggleAutorefresh)
-
-