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

    Fields 
    Modifier and Type Field Description
    protected UIContext context  
    protected org.openqa.selenium.WebDriver driver  
    protected org.openqa.selenium.WebElement element  
  • Constructor Summary

    Constructors 
    Constructor Description
    Component​(UIContext context, org.openqa.selenium.WebElement element)
    Constructs an instance of this class given the WebElement which represents it in HTML.
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • element

      protected final org.openqa.selenium.WebElement element
    • context

      protected final UIContext context
    • driver

      protected org.openqa.selenium.WebDriver driver
  • Constructor Details

    • Component

      public Component​(UIContext context, org.openqa.selenium.WebElement element)
      Constructs an instance of this class given the WebElement 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()