Interface IUiObjectBase
Common functionality for all UI objects in a mobile application.
public interface IUiObjectBase : IEnabledProvider
- Inherited Members
- Extension Methods
Properties
AccessibilityId
The accessibility ID of the mobile object.
string AccessibilityId { get; }
Property Value
ClassName
The test object class name used by OpenText Functional Testing Lab
string ClassName { get; }
Property Value
Container
Information about the table container, if the object is in a table. (iOS Only)
string Container { get; }
Property Value
Remarks
Container information can include the class name, index, cell index, and section, for example.
Hint
Instruction or example indicating the type of content to enter for the value of a control, for example, a grayed out hint inside a text box.
string Hint { get; }
Property Value
IsCheckable
Indicates whether the mobile object can be checked.
bool IsCheckable { get; }
Property Value
IsChecked
Indicates whether the mobile object is checked. (Relevant for objects that can have a check mark.)
bool IsChecked { get; }
Property Value
IsClickable
Indicates whether the object can be tapped.
bool IsClickable { get; }
Property Value
IsFocusable
Indicates whether the object can receive focus.
bool IsFocusable { get; }
Property Value
IsFocused
Indicates whether the mobile object is in focus.
bool IsFocused { get; }
Property Value
Location
The location of the mobile object.
Point Location { get; }
Property Value
MobileCenterIndex
An 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.
int MobileCenterIndex { get; }
Property Value
NativeClass
The native class of the mobile object.
string NativeClass { get; }
Property Value
ResourceId
The resource ID of the object. (Android Only)
string ResourceId { get; }
Property Value
Size
The size of the mobile object.
Size Size { get; }
Property Value
Text
The object's text.
string Text { get; }
Property Value
Methods
LongPress()
Taps and holds the object for a short time.
void LongPress()
LongPress(LongPressArgs)
Taps and holds the object for a short time according to the specified behavior.
void LongPress(LongPressArgs args)
Parameters
argsLongPressArgsAdditional LongPressArgs arguments that define the behavior of the long press operation.
Pan(Location, Location)
Perform a Pan gesture on the object.
void Pan(Location start, Location end)
Parameters
startLocationThe location at which to start the pan gesture.
endLocationThe location at which to end the pan gesture.
Pan(Point, Point)
Perform a Pan gesture on the object with default PanArgs.
void Pan(Point start, Point end)
Parameters
startPointThe Point at which to start the pan gesture.
endPointThe Point at which to end the pan gesture.
Pan(Point, Point, PanArgs)
Perform a Pan gesture on the object.
void Pan(Point start, Point end, PanArgs args)
Parameters
startPointThe Point at which to start the pan gesture.
endPointThe Point at which to end the pan gesture.
argsPanArgsPanArgs arguments that define the behavior of the pan operation.
Pinch(double)
Perform a Pinch gesture on the object.
void Pinch(double scale)
Parameters
scaledoubleThe scale for the pinch gesture. This number is the ratio between the start distance and the end distance between the two touch point used for the pinch. For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm, apart, the scale would be 0.5
Pinch(double, PinchArgs)
Perform a Pinch gesture on the object.
void Pinch(double scale, PinchArgs args)
Parameters
scaledoubleThe scale for the pinch gesture. This number is the ratio between the start distance and the end distance between the two touch point used for the pinch. For example, if you were to touch a screen with your fingers 6 cm apart, and pinch until your fingers were 3 cm, apart, the scale would be 0.5
argsPinchArgsPinchArgs arguments that define the behavior of the pinch operation.
Swipe(SwipeDirection)
Swipes the object in the specified direction.
void Swipe(SwipeDirection direction)
Parameters
directionSwipeDirectionThe SwipeDirection.
Swipe(SwipeDirection, SwipeArgs)
Swipes the object in the specified direction.
void Swipe(SwipeDirection direction, SwipeArgs args)
Parameters
directionSwipeDirectionThe SwipeDirection.
argsSwipeArgsSwipeArgs arguments that define the behavior of the swipe operation.
Tap()
Taps the center of the object.
void Tap()
Tap(TapArgs)
Taps the object using the specified arguments.
void Tap(TapArgs args)