Class UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>>

java.lang.Object
com.hp.lft.sdk.mobile.UiObjectBaseDescription.Init<T>
Direct Known Subclasses:
ButtonDescription.Init, CalendarDescription.Init, CheckBoxDescription.Init, DropDownDescription.Init, EditFieldDescription.Init, LabelDescription.Init, PaginatorDescription.Init, RadioGroupDescription.Init, RecyclerViewDescription.Init, SliderDescription.Init, StepperDescription.Init, TableDescription.Init, TabStripDescription.Init, ToggleDescription.Init, UiObjectDescription.Init, ViewDescription.Init, WebViewDescription.Init
Enclosing class:
UiObjectBaseDescription

protected abstract static class UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>> extends Object
Helper class for derived Builder classes.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Initializes the accessibility ID of the mobile control.
    accessibilityId(String accessibilityId)
    Initializes the accessibility ID of the mobile control.
    checkable(Boolean isCheckable)
    Initializes whether the mobile object can be checked.
    checked(Boolean isChecked)
    Initializes whether the mobile object is checked (relevant for controls that can have a check mark).
    className(String className)
    Initializes the test object class name used by OpenText Functional Testing Lab.
    clickable(Boolean isClickable)
    Initializes whether the control can be tapped.
    container(String container)
    Initializes containing table item information if object is in a table (iOS only).
    enabled(Boolean isEnabled)
    Initializes whether this object is enabled.
    focusable(Boolean isFocusable)
    Initializes whether the control can receive focus.
    focused(Boolean isFocused)
    Initializes whether the mobile control is in focus.
    mobileCenterIndex(Integer mobileCenterIndex)
    Initializes the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.
    Initializes object's native class of the mobile control.
    nativeClass(String nativeClass)
    Initializes object's native class of the mobile control.
    objectProperties(Map<String,Object> objectProperties)
    Initializes the test object properties, including custom properties of a custom control.
    Initializes the resource ID of the control (Android only).
    resourceId(String resourceId)
    Initializes the resource ID of the control (Android only).
    protected abstract T
     
    Initializes text of the mobile object.
    text(String text)
    Initializes text of the mobile object.
    vri(VisualRelation... visualRelations)
    Initializes a VisualRelation definition.
    vri(List<VisualRelation> visualRelations)
    Initializes a VisualRelation definition.

    Methods inherited from class java.lang.Object

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

    • Init

      protected Init()
  • Method Details

    • self

      protected abstract T self()
    • objectProperties

      public T objectProperties(Map<String,Object> objectProperties)
      Initializes the test object properties, including custom properties of a custom control.
      Parameters:
      objectProperties - the test object properties
      Returns:
      the description instance with the update state (builder pattern)
    • accessibilityId

      public T accessibilityId(StringProperty accessibilityId)
      Initializes the accessibility ID of the mobile control.
      Parameters:
      accessibilityId - a StringProperty (or RegExpProperty) representing the accessibility ID of the mobile control.
      Returns:
      the description instance with the updated state (builder pattern).
    • accessibilityId

      public T accessibilityId(String accessibilityId)
      Initializes the accessibility ID of the mobile control.
      Parameters:
      accessibilityId - the accessibility ID of the mobile control.
      Returns:
      the description instance with the updated state (builder pattern).
    • className

      public T className(String className)
      Initializes the test object class name used by OpenText Functional Testing Lab.
      Parameters:
      className - the test object class name used by OpenText Functional Testing Lab.
      Returns:
      the description instance with the updated state (builder pattern).
    • container

      public T container(String container)
      Initializes containing table item information if object is in a table (iOS only).
      Parameters:
      container - containing table item information if object is in a table (iOS only).
      Returns:
      the description instance with the updated state (builder pattern).
    • resourceId

      public T resourceId(StringProperty resourceId)
      Initializes the resource ID of the control (Android only).
      Parameters:
      resourceId - a StringProperty (or RegExpProperty) representing the resource ID of the control (Android only).
      Returns:
      the description instance with the updated state (builder pattern).
    • resourceId

      public T resourceId(String resourceId)
      Initializes the resource ID of the control (Android only).
      Parameters:
      resourceId - the resource ID of the control (Android only).
      Returns:
      the description instance with the updated state (builder pattern).
    • mobileCenterIndex

      public T mobileCenterIndex(Integer mobileCenterIndex)
      Initializes the ordinal number assigned to the object to indicate the order in which the object appears on the device relative to other objects with an otherwise identical description.
      Parameters:
      mobileCenterIndex - the ordinal number assigned to the object.
      Returns:
      the description instance with the updated state (builder pattern).
    • vri

      public T vri(List<VisualRelation> visualRelations)
      Initializes a VisualRelation definition.
      The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.
      Parameters:
      visualRelations - the VisualRelation object containing the VRI definition for this object.
      Returns:
      the description instance with the updated state (builder pattern).
    • vri

      public T vri(VisualRelation... visualRelations)
      Initializes a VisualRelation definition.
      The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.
      Parameters:
      visualRelations - the VisualRelation object containing the VRI definition for this object.
      Returns:
      the description instance with the updated state (builder pattern).
    • nativeClass

      public T nativeClass(StringProperty nativeClass)
      Initializes object's native class of the mobile control.
      Parameters:
      nativeClass - a StringProperty or RegExpProperty representing the native class of the mobile control.
      Returns:
      the description instance with the update state (builder pattern).
    • nativeClass

      public T nativeClass(String nativeClass)
      Initializes object's native class of the mobile control.
      Parameters:
      nativeClass - object's native class of the mobile control.
      Returns:
      the description instance with the update state (builder pattern).
    • enabled

      public T enabled(Boolean isEnabled)
      Initializes whether this object is enabled.
      Parameters:
      isEnabled - true if enabled.
      Returns:
      the description instance with the update state (builder pattern).
    • focused

      public T focused(Boolean isFocused)
      Initializes whether the mobile control is in focus.
      Parameters:
      isFocused - true if the mobile control is in focus.
      Returns:
      the description instance with the update state (builder pattern).
    • clickable

      public T clickable(Boolean isClickable)
      Initializes whether the control can be tapped.
      Parameters:
      isClickable - true if the control can be tapped.
      Returns:
      the description instance with the update state (builder pattern).
    • focusable

      public T focusable(Boolean isFocusable)
      Initializes whether the control can receive focus.
      Parameters:
      isFocusable - true if the control can receive focus.
      Returns:
      the description instance with the update state (builder pattern).
    • text

      public T text(StringProperty text)
      Initializes text of the mobile object.
      Parameters:
      text - a StringProperty (or RegExpProperty) representing text of the mobile object.
      Returns:
      the description instance with the updated state (builder pattern).
    • text

      public T text(String text)
      Initializes text of the mobile object.
      Parameters:
      text - text of the mobile object.
      Returns:
      the description instance with the updated state (builder pattern).
    • checkable

      public T checkable(Boolean isCheckable)
      Initializes whether the mobile object can be checked.
      Parameters:
      isCheckable - true if the mobile object can be checked.
      Returns:
      the description instance with the updated state (builder pattern).
    • checked

      public T checked(Boolean isChecked)
      Initializes whether the mobile object is checked (relevant for controls that can have a check mark).
      Parameters:
      isChecked - true if the mobile object is checked (relevant for controls that can have a check mark).
      Returns:
      the description instance with the updated state (builder pattern).