Class NeoContainer
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
- Direct Known Subclasses:
BasePivotTable
,NeoAddressMenu
,NeoFilterPanel
,NeoFrame
,NeoGlobalSearch
,NeoGlobalSidebar
,NeoMenuSearch
,NeoProblemSummary
,NeoReport
,NeoTabbedPane
,NeoWidget
,NeoWindow
public class NeoContainer extends NeoComponent
-
Field Summary
Fields Modifier and Type Field Description static org.openqa.selenium.By
ACTIVE_PERSPECTIVE
static java.lang.String
COMPONENT_NAME
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoContainer(NeoUIContext context, org.openqa.selenium.WebElement el)
-
Method Summary
Modifier and Type Method Description NeoAdvancedTable
getAdvancedTable()
NeoButton
getButton(java.lang.String buttonText)
Takes button label as input and returns the button element in the containerNeoDashboard
getDashboard()
NeoComponent
getFieldByLabel(java.lang.String label)
This method will ignore colon from label.NeoComponent
getFieldByLabel(java.lang.String label, boolean ignoreColon)
TODO To be extended to support creation of other Form Elements/ComponentsNeoTable
getGrid()
java.util.List<NeoTable>
getGrids()
NeoHyperlink
getLink(java.lang.String linkText)
NeoMessagePanel
getNeoMessagePanel()
Used to get the Message panel from the active neo perspectiveBasePivotTable
getNeoPivotTable()
NeoTabbedPane
getNeoTabbedPane()
Used to get the tabbed pane from the active perspectiveNeoReport
getReport()
java.util.List<NeoReport>
getReports()
org.openqa.selenium.SearchContext
getSearchContext()
NeoWindow
getWindow()
Returns the first visible window in the Container or throws a NoSuchElementException if none was found.boolean
isRequired(java.lang.String fieldLabel)
Returns true if the label is a required label else returns falseNeoFilterPanel
openFilterPanel()
Opens the filter panel in the containervoid
switchDriver()
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues, setValue
-
Field Details
-
ACTIVE_PERSPECTIVE
public static final org.openqa.selenium.By ACTIVE_PERSPECTIVE -
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getSearchContext
public org.openqa.selenium.SearchContext getSearchContext() -
switchDriver
public void switchDriver() -
getButton
Takes button label as input and returns the button element in the container- Parameters:
buttonText
-- Returns:
NeoButton
-
getFieldByLabel
This method will ignore colon from label.- Parameters:
label
-- Returns:
- NeoComponent
-
getFieldByLabel
TODO To be extended to support creation of other Form Elements/Components- Parameters:
label
-- Returns:
-
getNeoMessagePanel
Used to get the Message panel from the active neo perspective- Returns:
- NeoMessagePanel
-
getNeoTabbedPane
Used to get the tabbed pane from the active perspective- Returns:
- NeoTabbedPane
-
openFilterPanel
Opens the filter panel in the container- Returns:
-
getReport
-
getReports
-
isRequired
public boolean isRequired(java.lang.String fieldLabel)Returns true if the label is a required label else returns false- Parameters:
fieldLabel
-- Returns:
-
getWindow
Returns the first visible window in the Container or throws a NoSuchElementException if none was found.- Returns:
- NeoWindow
-
getDashboard
-
getLink
-
getGrid
-
getGrids
-
getAdvancedTable
-
getNeoPivotTable
-