Class DurationField

java.lang.Object

public class DurationField
extends CompositeField
Represents an instance of One.form.DurationField.
  • Field Summary

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

    components, compositeEl

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

    context, driver, element
  • Constructor Summary

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

    Modifier and Type Method Description
    void setValue​(java.lang.String value)
    The value this duration field should take.

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

    getComponentList

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

    getEl, getId, isDisplayed, isRequired

    Methods inherited from class java.lang.Object

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

  • Method Details

    • setValue

      public void setValue​(java.lang.String value)
      The value this duration field should take.
      Ex :
      DurationField durationFieldd = (DurationField) overlay.getFieldByLabel("Duration");
      durationField.setValue("P10DT1H30M"); // 10 days, 1 hour, 30 minutes
      Parameters:
      value -