Class NeoToggleField

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

public class NeoToggleField
extends NeoComponent
Represents an instance of the Toggle field on the NEO UI
  • Field Summary

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

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

    context, driver, element
  • Constructor Summary

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

    Modifier and Type Method Description
    boolean getValue()
    Used to get the Value("true", or "false") of the toggle button
    boolean isDisplayed()
    This method returns boolean value("true", or "false") based on the toggle button is displaying or not
    void off()
    Used to put toggle Off on the Neo UI screen
    void on()
    Used to put toggle ON on the Neo UI screen

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

    getEl, getFieldErrorMessage, getTooltipMessage, setMultipleValues, setValue

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • on

      public void on()
      Used to put toggle ON on the Neo UI screen
    • off

      public void off()
      Used to put toggle Off on the Neo UI screen
    • getValue

      public boolean getValue()
      Used to get the Value("true", or "false") of the toggle button
    • isDisplayed

      public boolean isDisplayed()
      This method returns boolean value("true", or "false") based on the toggle button is displaying or not
      Overrides:
      isDisplayed in class NeoComponent