Class NeoDurationField

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

public class NeoDurationField
extends NeoComponent
Represents an instance of duration field for Neo UI screens
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String COMPONENT_NAME  
    protected java.util.List<org.openqa.selenium.WebElement> inputElements  

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

    context, driver, element
  • Constructor Summary

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

    Modifier and Type Method Description
    void clearValue()
    Used to clear the value from duration field
    java.util.List<java.lang.String> getValue()
    Used to get value from the duration field and returns that value in List
    void setMultipleValues​(java.lang.String... values)
    Used to populate the duration field value passed in as parameter
    void setValue​(java.lang.String days, java.lang.String hours, java.lang.String minutes)
    Used to populate the duration field value passed in as parameter

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

    getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setValue

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • NeoDurationField

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

    • setValue

      public void setValue​(java.lang.String days, java.lang.String hours, java.lang.String minutes)
      Used to populate the duration field value passed in as parameter
      Parameters:
      days - , hours, minutes
    • setMultipleValues

      public void setMultipleValues​(java.lang.String... values)
      Used to populate the duration field value passed in as parameter
      Overrides:
      setMultipleValues in class NeoComponent
      Parameters:
      days - , hours, minutes
    • getValue

      public java.util.List<java.lang.String> getValue()
      Used to get value from the duration field and returns that value in List
    • clearValue

      public void clearValue()
      Used to clear the value from duration field