Class ProblemDetail
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.ProblemDetail
public class ProblemDetail extends Container
Represents Selenium component for Workbench problem detail
-
Field Summary
Fields Modifier and Type Field Description org.openqa.selenium.WebElement
parentFrameEl
-
Constructor Summary
Constructors Constructor Description ProblemDetail(UIContext context, org.openqa.selenium.WebElement problemDetailEl)
-
Method Summary
Modifier and Type Method Description void
collapseSection(java.lang.String sectionName)
Collapses specified section.Collaboration
createNewCollaboration(java.lang.String collaborationName)
Creates new Collaboration with give name.void
expandSection(java.lang.String sectionName)
Expands specified section.Collaboration
getCollaboration(java.lang.String collaborationName)
Fetches already existing collaboration by collaboration name.org.openqa.selenium.WebElement
getDetailInfoSection()
Returns WebElement for summary of "Problem Details" section.org.openqa.selenium.WebElement
getParentFrameEl()
org.openqa.selenium.WebElement
getSection(java.lang.String sectionName)
Returns WebElement for specified section in problemDetail.org.openqa.selenium.WebElement
openProblemChat()
Click "Chat" icon from side bar of problem detail.org.openqa.selenium.WebElement
openProblemNote()
Click "Note" icon from side bar of problem detail.org.openqa.selenium.WebElement
resolve()
Clicks on "Resolve" icon of problem detail.void
setParentFrameEl(org.openqa.selenium.WebElement parentFrameEl)
void
startConversation()
Clicks on "Start Conversation" link from side bar.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
-
Field Details
-
parentFrameEl
public org.openqa.selenium.WebElement parentFrameEl
-
-
Constructor Details
-
Method Details
-
getDetailInfoSection
public org.openqa.selenium.WebElement getDetailInfoSection()Returns WebElement for summary of "Problem Details" section. -
expandSection
public void expandSection(java.lang.String sectionName)Expands specified section. Note that it assumes specified section is in collapsed state.- Parameters:
sectionName
-
-
collapseSection
public void collapseSection(java.lang.String sectionName)Collapses specified section. Note that it assumes specified section is in expanded state.- Parameters:
sectionName
-
-
getSection
public org.openqa.selenium.WebElement getSection(java.lang.String sectionName)Returns WebElement for specified section in problemDetail. Make sure that specified section should in expand state otherwise any operation on section element will throw ElementNotVisibleException.- Parameters:
sectionName
-- Returns:
-
resolve
public org.openqa.selenium.WebElement resolve()Clicks on "Resolve" icon of problem detail.- Returns:
- WebElement for popup dialog window.
-
openProblemChat
public org.openqa.selenium.WebElement openProblemChat()Click "Chat" icon from side bar of problem detail.- Returns:
- WebElement for chat panel which opens after chat icon is clicked.
-
openProblemNote
public org.openqa.selenium.WebElement openProblemNote()Click "Note" icon from side bar of problem detail.- Returns:
- WebElement for note panel which opens after note icon is clicked.
-
startConversation
public void startConversation()Clicks on "Start Conversation" link from side bar. -
createNewCollaboration
Creates new Collaboration with give name.- Parameters:
collaborationName
-- Returns:
- Collaboration component for newly created collaboration.
-
getCollaboration
Fetches already existing collaboration by collaboration name.- Parameters:
collaborationName
-- Returns:
- Collaboration component
-
getParentFrameEl
public org.openqa.selenium.WebElement getParentFrameEl()- Returns:
- the parentFrameEl
-
setParentFrameEl
public void setParentFrameEl(org.openqa.selenium.WebElement parentFrameEl)- Parameters:
parentFrameEl
- the parentFrameEl to set
-