Class NeoTextField

java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoTextField
Direct Known Subclasses:
NeoAutocompleteField, NeoDateTimeField

public class NeoTextField
extends NeoComponent
Represents an instance of the input text fields on the NEO UI
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String COMPONENT_NAME  
    protected org.openqa.selenium.WebElement textElement  

    Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent

    context, driver, element
  • Constructor Summary

    Constructors 
    Constructor Description
    NeoTextField​(NeoUIContext context)  
    NeoTextField​(NeoUIContext context, org.openqa.selenium.WebElement element)
    If condition provided under constructor is to handle the text field and number field based on tag name
  • Method Summary

    Modifier and Type Method Description
    void clear()  
    org.openqa.selenium.WebElement getFieldLabelElement()
    Returns an instance of the Label element if exists and null otherwise
    java.lang.String getValue()  
    void setValue​(java.lang.String inputValue)
    Used to populate the text value passed in as parameter in the input web element

    Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent

    getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • NeoTextField

      public NeoTextField​(NeoUIContext context, org.openqa.selenium.WebElement element)
      If condition provided under constructor is to handle the text field and number field based on tag name
      Parameters:
      context -
      element -
    • NeoTextField

      public NeoTextField​(NeoUIContext context)
  • Method Details

    • setValue

      public void setValue​(java.lang.String inputValue)
      Used to populate the text value passed in as parameter in the input web element
      Overrides:
      setValue in class NeoComponent
      Parameters:
      inputValue -
    • getValue

      public java.lang.String getValue()
    • getFieldLabelElement

      public org.openqa.selenium.WebElement getFieldLabelElement()
      Returns an instance of the Label element if exists and null otherwise
      Returns:
    • clear

      public void clear()