Class Frame
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.Frame
- Direct Known Subclasses:
CommandCenter
,Dashboard
,NeoLegacyPerspective
,Portlet
,Tab
,TLV
public abstract class Frame extends Container
This class represents a frame within the page.
CommandCenter
is its own Frame,
as is each individual Tab
. Before working directly with any WebElement
s
in a Frame, you must call switchDriver()
to switch the WebDriver
's
frame context.-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElement
iframeEl
protected Frame
parentFrame
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description org.openqa.selenium.WebDriver
getDriver()
Returns theWebDriver
instance.org.openqa.selenium.WebElement
getIFrameEl()
Returns theWebElement
that points to the iframe element.Frame
getParentFrame()
org.openqa.selenium.SearchContext
getSearchContext()
Returns theSearchContext
used for searching forComponent
s.TLV
getTLV()
Returns the first TLV that is found within the Frame.UIContext
getUIContext()
Returns theUIContext
instance.void
setParentFrame(Frame parentFrame)
void
switchDriver()
This function is used to switch theWebDriver
to thisFrame
's iframe element so that you can properly work with its elements.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, getSearchPageContext, getTabPanel, getTabPanelByClass, getTemplateDisplay, getTreePanel, getWindow, getWindows, getXTypeFromFormItem, getXTypeFromId, getXTypeFromLabel, isRequired, waitForSuccessMessage
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Component
getEl, getId, isDisplayed, isRequired
-
Field Details
-
iframeEl
protected org.openqa.selenium.WebElement iframeEl -
parentFrame
-
-
Constructor Details
-
Method Details
-
getTLV
Returns the first TLV that is found within the Frame.- Returns:
-
getUIContext
Returns theUIContext
instance.- Returns:
-
getDriver
public org.openqa.selenium.WebDriver getDriver()Returns theWebDriver
instance.- Returns:
-
getIFrameEl
public org.openqa.selenium.WebElement getIFrameEl()Returns theWebElement
that points to the iframe element.- Returns:
-
switchDriver
public void switchDriver()This function is used to switch theWebDriver
to thisFrame
's iframe element so that you can properly work with its elements. It should be called before working directly with any of its childWebElement
s.- Overrides:
switchDriver
in classContainer
-
getSearchContext
public org.openqa.selenium.SearchContext getSearchContext()Description copied from class:Container
Returns theSearchContext
used for searching forComponent
s. The default implementation returns the element passed into the constructor.- Overrides:
getSearchContext
in classContainer
- Returns:
-
getParentFrame
-
setParentFrame
-