Package com.hp.lft.sdk.mobile
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 -
Method Summary
Modifier and TypeMethodDescriptionaccessibilityId
(StringProperty accessibilityId) Initializes the accessibility ID of the mobile control.accessibilityId
(String accessibilityId) Initializes the accessibility ID of the mobile control.Initializes whether the mobile object can be checked.Initializes whether the mobile object is checked (relevant for controls that can have a check mark).Initializes the test object class name used by OpenText Functional Testing Lab.Initializes whether the control can be tapped.Initializes containing table item information if object is in a table (iOS only).Initializes whether this object is enabled.Initializes whether the control can receive focus.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.nativeClass
(StringProperty nativeClass) 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.resourceId
(StringProperty resourceId) Initializes the resource ID of the control (Android only).resourceId
(String resourceId) Initializes the resource ID of the control (Android only).protected abstract T
self()
text
(StringProperty text) Initializes text of the mobile object.Initializes text of the mobile object.vri
(VisualRelation... visualRelations) Initializes a VisualRelation definition.vri
(List<VisualRelation> visualRelations) Initializes a VisualRelation definition.
-
Constructor Details
-
Init
protected Init()
-
-
Method Details
-
self
-
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
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
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
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
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
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
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
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
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
- theVisualRelation
object containing the VRI definition for this object.- Returns:
- the description instance with the updated state (builder pattern).
-
vri
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
- theVisualRelation
object containing the VRI definition for this object.- Returns:
- the description instance with the updated state (builder pattern).
-
nativeClass
Initializes object's native class of the mobile control.- Parameters:
nativeClass
- aStringProperty
orRegExpProperty
representing the native class of the mobile control.- Returns:
- the description instance with the update state (builder pattern).
-
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
Initializes whether this object is enabled.- Parameters:
isEnabled
- true if enabled.- Returns:
- the description instance with the update state (builder pattern).
-
focused
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
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
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
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
Initializes text of the mobile object.- Parameters:
text
- text of the mobile object.- Returns:
- the description instance with the updated state (builder pattern).
-
checkable
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
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).
-