Class NeoBooleanField

java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoBooleanField

public class NeoBooleanField
extends NeoComponent
Represents an instance of the Boolean fields on the NEO UI
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String COMPONENT_NAME  
    protected org.openqa.selenium.WebElement triggerEl  
    protected com.onenetwork.platform.tools.test.ui.neo.components.NeoBooleanField.BoolType type  

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

    context, driver, element
  • Constructor Summary

    Constructors 
    Constructor Description
    NeoBooleanField​(NeoUIContext context, org.openqa.selenium.WebElement element)  
  • Method Summary

    Modifier and Type Method Description
    void clearValue()
    This function is used to clear value from boolean combo drop down list
    org.openqa.selenium.WebElement getTriggerEl()
    Returns the web element of trigger element of the combo field
    com.onenetwork.platform.tools.test.ui.neo.components.NeoBooleanField.BoolType getType()
    Returns what type of boolean field it is
    java.lang.Boolean getValue()
    This function is used to get value from boolean field
    void setValue​(java.lang.Boolean val)
    This function is used to set value in boolean field and combo boolean field

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

    getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues, setValue

    Methods inherited from class java.lang.Object

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

    • triggerEl

      protected org.openqa.selenium.WebElement triggerEl
    • type

      protected com.onenetwork.platform.tools.test.ui.neo.components.NeoBooleanField.BoolType type
    • COMPONENT_NAME

      public static final java.lang.String COMPONENT_NAME
      See Also:
      Constant Field Values
  • Constructor Details

    • NeoBooleanField

      public NeoBooleanField​(NeoUIContext context, org.openqa.selenium.WebElement element)
      Parameters:
      context -
      element -
  • Method Details

    • setValue

      public void setValue​(java.lang.Boolean val)
      This function is used to set value in boolean field and combo boolean field
      Parameters:
      val -
    • getValue

      public java.lang.Boolean getValue()
      This function is used to get value from boolean field
    • clearValue

      public void clearValue()
      This function is used to clear value from boolean combo drop down list
    • getTriggerEl

      public org.openqa.selenium.WebElement getTriggerEl()
      Returns the web element of trigger element of the combo field
    • getType

      public com.onenetwork.platform.tools.test.ui.neo.components.NeoBooleanField.BoolType getType()
      Returns what type of boolean field it is