Class NeoCheckBoxGroupField

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

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

    Fields 
    Modifier and Type Field Description
    static java.lang.String COMPONENT_NAME  
    static org.openqa.selenium.By selectAll  

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

    context, driver, element
  • Constructor Summary

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

    Modifier and Type Method Description
    java.util.List<java.lang.String> getValue()
    Used to get the selected check boxes name if no check boxes were selected then it will return the empty list.
    void select​(java.lang.String... checkBoxNames)
    Used to select required check box from group of check boxes
    void selectAll()
    Used to select all check box of same group in once
    void unSelect​(java.lang.String... checkBoxNames)
    Used to deselect required check box from group of check boxes
    void unSelectAll()
    Used to deselect all check box of same group in once

    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

  • Constructor Details

  • Method Details

    • selectAll

      public void selectAll()
      Used to select all check box of same group in once
    • unSelectAll

      public void unSelectAll()
      Used to deselect all check box of same group in once
    • select

      public void select​(java.lang.String... checkBoxNames)
      Used to select required check box from group of check boxes
      Parameters:
      Array - of checkBoxNames
    • unSelect

      public void unSelect​(java.lang.String... checkBoxNames)
      Used to deselect required check box from group of check boxes
      Parameters:
      Array - of checkBoxNames
    • getValue

      public java.util.List<java.lang.String> getValue()
      Used to get the selected check boxes name if no check boxes were selected then it will return the empty list.
      Returns:
      List