com.hp.lft.sdk.mobile

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

    • Constructor Summary

      Modifier Constructor and Description
      protected Init() 
    • Method Summary

      Modifier and Type Method and Description
      T accessibilityId(java.lang.String accessibilityId)
      Initializes the accessibility ID of the mobile control.
      T accessibilityId(StringProperty accessibilityId)
      Initializes the accessibility ID of the mobile control.
      T className(java.lang.String className)
      Initializes the test object class name used by Mobile Center.
      T container(java.lang.String container)
      Initializes containing table item information if object is in a table (iOS only).
      T mobileCenterIndex(java.lang.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.
      T resourceId(java.lang.String resourceId)
      Initializes the resource ID of the control (Android only).
      T resourceId(StringProperty resourceId)
      Initializes the resource ID of the control (Android only).
      protected abstract T self() 
      T vri(java.util.List<VisualRelation> visualRelations)
      Initializes a VisualRelation definition.
      T vri(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 Detail

      • Init

        protected Init()
    • Method Detail

      • self

        protected abstract T self()
      • 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(java.lang.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(java.lang.String className)
        Initializes the test object class name used by Mobile Center.
        Parameters:
        className - the test object class name used by Mobile Center.
        Returns:
        the description instance with the updated state (builder pattern).
      • container

        public T container(java.lang.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(java.lang.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(java.lang.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(java.util.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).