Class Component
java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
- Direct Known Subclasses:
AddressTriggerField
,AttachmentsField
,BooleanField
,Box
,Button
,CheckboxGroupEnumField
,CompositeField
,Container
,DateRangeField
,DimensionsField
,DisplayField
,DynaTriggerField
,GenericModelLinkField
,GlobalSearch
,Hyperlink
,Menu
,MessageBox
,MessagePanel
,ModelLinkField
,Spacer
,TableColumnsField
,TemplateDisplay
,TextAreaField
,TextField
public abstract class Component
extends java.lang.Object
This is the base class for all classes in this package; it is also the base class
for any component fetched using
UIContext.createComponent(String, WebElement)
(which is driven by its internal componentMap).-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description org.openqa.selenium.WebElement
getEl()
Returns the underlying element which represents this Component.protected java.lang.String
getId()
boolean
isDisplayed()
Returns true if the underlying element is visible, false otherwise.boolean
isRequired()
Return true if component is required field
-
Field Details
-
Constructor Details
-
Component
Constructs an instance of this class given theWebElement
which represents it in HTML.- Parameters:
context
-element
-
-
-
Method Details
-
isDisplayed
public boolean isDisplayed()Returns true if the underlying element is visible, false otherwise.- Returns:
-
isRequired
public boolean isRequired()Return true if component is required field -
getEl
public org.openqa.selenium.WebElement getEl()Returns the underlying element which represents this Component.- Returns:
-
getId
protected java.lang.String getId()
-