Class ProblemList
java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
com.onenetwork.platform.tools.test.ui.components.Container
com.onenetwork.platform.tools.test.ui.components.ProblemList
public class ProblemList extends Container
Represents Selenium component for workbench problem list.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ProblemList(UIContext context, org.openqa.selenium.WebElement problemListEl)
-
Method Summary
Modifier and Type Method Description void
clickPageNo(int pageNo)
Clicks on specified page no from pagination of problem list.boolean
collapseProblemSummary(java.lang.String problemName, int index)
Collapses problem summary row for specified problem name and index.boolean
expandProblemSummary(java.lang.String problemName, int index)
Expands problem summary row for specified problem name and index.org.openqa.selenium.WebElement
getActiveProblemRow()
Returns currently expanded/active problem summary row.org.openqa.selenium.WebElement
getProblemListRow(java.lang.String problemName, int index)
Returns WebElement for row of specified problem name and index.java.util.List<org.openqa.selenium.WebElement>
getProblemListRows(java.lang.String problemName)
Returns list of WebElement which corresponds to rows of given problem name.org.openqa.selenium.WebElement
getProblemSummary(java.lang.String problemName, int index)
Returns problem summary WebElement for specified problemName and index.void
resume()
Clicks on "Resume" button of expanded/active problem summary.void
startWork()
Clicks on "Start Work" button of expanded/active problem summary.void
viewProblems()
Clicks on "View Problems" button of expanded/active problem summary.Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Container
clickAction, clickAction, clickMenuItem, clickOneLogo, createFieldFromLabel, findXTypeFromInput, getActions, getActions, getButton, getCC1InnerTab, getComponent, getDashboard, getFieldByLabel, getFieldByLabelCC15, getFieldByLabelFlux, getFieldByLabelNew, getFieldByMultiLineLabel, getFieldByName, getFieldError, getFilterOverlayPanel, getFormPanel, getGrid, getGridByClass, getGrids, getLink, getMenu, getMessagePanel, getMessagePanelFlux, getNotificationCollaboration, getProbelmDetail, getProblemList, getReadOnlyFieldByLabelCC15, getReport, getReports, getSearchContext, getSearchPageContext, getTabPanel, getTabPanelByClass, getTemplateDisplay, getTreePanel, getWindow, getWindows, getXTypeFromFormItem, getXTypeFromId, getXTypeFromLabel, isRequired, switchDriver, waitForSuccessMessage
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Component
getEl, getId, isDisplayed, isRequired
-
Constructor Details
-
Method Details
-
getProblemListRows
public java.util.List<org.openqa.selenium.WebElement> getProblemListRows(java.lang.String problemName)Returns list of WebElement which corresponds to rows of given problem name.- Parameters:
problemName
-- Returns:
-
getProblemListRow
public org.openqa.selenium.WebElement getProblemListRow(java.lang.String problemName, int index)Returns WebElement for row of specified problem name and index.- Parameters:
problemName
-index
-- Returns:
-
expandProblemSummary
public boolean expandProblemSummary(java.lang.String problemName, int index)Expands problem summary row for specified problem name and index.- Parameters:
problemName
-index
-- Returns:
- false if problem summary is already expanded and true otherwise.
-
collapseProblemSummary
public boolean collapseProblemSummary(java.lang.String problemName, int index)Collapses problem summary row for specified problem name and index.- Parameters:
problemName
-index
-- Returns:
- false if problem summary is already collapsed and true otherwise.
-
startWork
public void startWork()Clicks on "Start Work" button of expanded/active problem summary. After calling startWork() API you should await for new tab and from new tab you can fetch ProblemDetail component. Example: Tab problemDetailTab = cc.awaitNewActiveTab(tab); ProblemDetail problemDetail = problemDetailTab.getProbelmDetail(); -
resume
public void resume()Clicks on "Resume" button of expanded/active problem summary. After calling resume() API you should await for new tab and from new tab you can fetch ProblemDetail component. Example: Tab problemDetailTab = cc.awaitNewActiveTab(tab); ProblemDetail problemDetail = problemDetailTab.getProbelmDetail(); -
viewProblems
public void viewProblems()Clicks on "View Problems" button of expanded/active problem summary. After calling viewProblems() API you should await for new tab and from new tab you can fetch ProblemDetail component. Example: Tab problemDetailTab = cc.awaitNewActiveTab(tab); ProblemDetail problemDetail = problemDetailTab.getProbelmDetail(); -
getActiveProblemRow
public org.openqa.selenium.WebElement getActiveProblemRow()Returns currently expanded/active problem summary row. -
getProblemSummary
public org.openqa.selenium.WebElement getProblemSummary(java.lang.String problemName, int index)Returns problem summary WebElement for specified problemName and index. It will expand row if it is not already expanded. -
clickPageNo
public void clickPageNo(int pageNo)Clicks on specified page no from pagination of problem list.- Parameters:
pageNo
-
-