Skip to content
Sahi Pro Flowcharts is retired. These pages document the last release (v12) and are no longer updated. Go to the current documentation.Flowcharts is retired. Current docs
Get Free Trial
Sahi Pro Flowcharts is retired. These pages document the last release (v12) and are no longer updated. Go to the current documentation.

Android Accessor APIs

Since
Mobile Engine 7.5.0
API

_aAppWidgetHostView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppWidgetHostView in the UI)

//text
_aAppWidgetHostView("elementText")
//contentDesc
_aAppWidgetHostView("elementContentDesc")
//resourceId
_aAppWidgetHostView("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppWidgetHostView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppWidgetHostView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppWidgetHostView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppWidgetHostView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppWidgetHostView("elementText"));
_click(_aAppWidgetHostView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppWidgetHostView("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppWidgetHostView("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewGroup(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewGroup in the UI)

//text
_aViewGroup("elementText")
//contentDesc
_aViewGroup("elementContentDesc")
//resourceId
_aViewGroup("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewGroup(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewGroup("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewGroup(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewGroup("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewGroup("elementText"));
_click(_aViewGroup("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewGroup("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewGroup("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mView or _aView

API

_mView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mView in the UI)

//text
_mView("elementText")
//contentDesc
_mView("elementContentDesc")
//resourceId
_mView("com.sahipro.SahiTestApp:id/elementId")
//index
_mView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mView("elementText"));
_click(_mView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mView("elementText"));
// Check if element is visible
_assert(_isVisible(_mView("elementText")));
Since
Mobile Engine 7.5.0
API

_aAbsoluteLayout(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAbsoluteLayout in the UI)

//text
_aAbsoluteLayout("elementText")
//contentDesc
_aAbsoluteLayout("elementContentDesc")
//resourceId
_aAbsoluteLayout("com.sahipro.SahiTestApp:id/elementId")
//index
_aAbsoluteLayout(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAbsoluteLayout("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAbsoluteLayout(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAbsoluteLayout("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAbsoluteLayout("elementText"));
_click(_aAbsoluteLayout("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAbsoluteLayout("elementText"));
// Check if element is visible
_assert(_isVisible(_aAbsoluteLayout("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionMenuView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionMenuView in the UI)

//text
_aActionMenuView("elementText")
//contentDesc
_aActionMenuView("elementContentDesc")
//resourceId
_aActionMenuView("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionMenuView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionMenuView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionMenuView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionMenuView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionMenuView("elementText"));
_click(_aActionMenuView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionMenuView("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionMenuView("elementText")));
Since
Mobile Engine 7.5.0
API

_aAbsSeekBar(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAbsSeekBar in the UI)

//text
_aAbsSeekBar("elementText")
//contentDesc
_aAbsSeekBar("elementContentDesc")
//resourceId
_aAbsSeekBar("com.sahipro.SahiTestApp:id/elementId")
//index
_aAbsSeekBar(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAbsSeekBar("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAbsSeekBar(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAbsSeekBar("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAbsSeekBar("elementText"));
_click(_aAbsSeekBar("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAbsSeekBar("elementText"));
// Check if element is visible
_assert(_isVisible(_aAbsSeekBar("elementText")));
Since
Mobile Engine 7.5.0
API

_aAbsSpinner(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAbsSpinner in the UI)

//text
_aAbsSpinner("elementText")
//contentDesc
_aAbsSpinner("elementContentDesc")
//resourceId
_aAbsSpinner("com.sahipro.SahiTestApp:id/elementId")
//index
_aAbsSpinner(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAbsSpinner("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAbsSpinner(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAbsSpinner("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAbsSpinner("elementText"));
_click(_aAbsSpinner("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAbsSpinner("elementText"));
// Check if element is visible
_assert(_isVisible(_aAbsSpinner("elementText")));
Since
Mobile Engine 7.5.0
API

_aAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAdapter in the UI)

//text
_aAdapter("elementText")
//contentDesc
_aAdapter("elementContentDesc")
//resourceId
_aAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAdapter("elementText"));
_click(_aAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aAdapterView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAdapterView in the UI)

//text
_aAdapterView("elementText")
//contentDesc
_aAdapterView("elementContentDesc")
//resourceId
_aAdapterView("com.sahipro.SahiTestApp:id/elementId")
//index
_aAdapterView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAdapterView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAdapterView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAdapterView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAdapterView("elementText"));
_click(_aAdapterView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAdapterView("elementText"));
// Check if element is visible
_assert(_isVisible(_aAdapterView("elementText")));
Since
Mobile Engine 7.5.0
API

_aAdapterViewAnimator(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAdapterViewAnimator in the UI)

//text
_aAdapterViewAnimator("elementText")
//contentDesc
_aAdapterViewAnimator("elementContentDesc")
//resourceId
_aAdapterViewAnimator("com.sahipro.SahiTestApp:id/elementId")
//index
_aAdapterViewAnimator(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAdapterViewAnimator("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAdapterViewAnimator(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAdapterViewAnimator("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAdapterViewAnimator("elementText"));
_click(_aAdapterViewAnimator("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAdapterViewAnimator("elementText"));
// Check if element is visible
_assert(_isVisible(_aAdapterViewAnimator("elementText")));
Since
Mobile Engine 7.5.0
API

_aAdapterViewFlipper(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAdapterViewFlipper in the UI)

//text
_aAdapterViewFlipper("elementText")
//contentDesc
_aAdapterViewFlipper("elementContentDesc")
//resourceId
_aAdapterViewFlipper("com.sahipro.SahiTestApp:id/elementId")
//index
_aAdapterViewFlipper(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAdapterViewFlipper("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAdapterViewFlipper(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAdapterViewFlipper("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAdapterViewFlipper("elementText"));
_click(_aAdapterViewFlipper("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAdapterViewFlipper("elementText"));
// Check if element is visible
_assert(_isVisible(_aAdapterViewFlipper("elementText")));
Since
Mobile Engine 7.5.0
API

_aAdvanceable(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAdvanceable in the UI)

//text
_aAdvanceable("elementText")
//contentDesc
_aAdvanceable("elementContentDesc")
//resourceId
_aAdvanceable("com.sahipro.SahiTestApp:id/elementId")
//index
_aAdvanceable(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAdvanceable("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAdvanceable(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAdvanceable("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAdvanceable("elementText"));
_click(_aAdvanceable("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAdvanceable("elementText"));
// Check if element is visible
_assert(_isVisible(_aAdvanceable("elementText")));
Since
Mobile Engine 7.5.0
API

_aAlphabetIndexer(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAlphabetIndexer in the UI)

//text
_aAlphabetIndexer("elementText")
//contentDesc
_aAlphabetIndexer("elementContentDesc")
//resourceId
_aAlphabetIndexer("com.sahipro.SahiTestApp:id/elementId")
//index
_aAlphabetIndexer(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAlphabetIndexer("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAlphabetIndexer(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAlphabetIndexer("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAlphabetIndexer("elementText"));
_click(_aAlphabetIndexer("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAlphabetIndexer("elementText"));
// Check if element is visible
_assert(_isVisible(_aAlphabetIndexer("elementText")));
Since
Mobile Engine 7.5.0
API

_aAnalogClock(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAnalogClock in the UI)

//text
_aAnalogClock("elementText")
//contentDesc
_aAnalogClock("elementContentDesc")
//resourceId
_aAnalogClock("com.sahipro.SahiTestApp:id/elementId")
//index
_aAnalogClock(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAnalogClock("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAnalogClock(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAnalogClock("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAnalogClock("elementText"));
_click(_aAnalogClock("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAnalogClock("elementText"));
// Check if element is visible
_assert(_isVisible(_aAnalogClock("elementText")));
Since
Mobile Engine 7.5.0
API

_aArrayAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aArrayAdapter in the UI)

//text
_aArrayAdapter("elementText")
//contentDesc
_aArrayAdapter("elementContentDesc")
//resourceId
_aArrayAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aArrayAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aArrayAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aArrayAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aArrayAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aArrayAdapter("elementText"));
_click(_aArrayAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aArrayAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aArrayAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aAutoCompleteTextView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAutoCompleteTextView in the UI)

//text
_aAutoCompleteTextView("elementText")
//contentDesc
_aAutoCompleteTextView("elementContentDesc")
//resourceId
_aAutoCompleteTextView("com.sahipro.SahiTestApp:id/elementId")
//index
_aAutoCompleteTextView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAutoCompleteTextView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAutoCompleteTextView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAutoCompleteTextView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAutoCompleteTextView("elementText"));
_click(_aAutoCompleteTextView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAutoCompleteTextView("elementText"));
// Check if element is visible
_assert(_isVisible(_aAutoCompleteTextView("elementText")));
Since
Mobile Engine 7.5.0
API

_aBaseAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aBaseAdapter in the UI)

//text
_aBaseAdapter("elementText")
//contentDesc
_aBaseAdapter("elementContentDesc")
//resourceId
_aBaseAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aBaseAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aBaseAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aBaseAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aBaseAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aBaseAdapter("elementText"));
_click(_aBaseAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aBaseAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aBaseAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aBaseExpandableListAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aBaseExpandableListAdapter in the UI)

//text
_aBaseExpandableListAdapter("elementText")
//contentDesc
_aBaseExpandableListAdapter("elementContentDesc")
//resourceId
_aBaseExpandableListAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aBaseExpandableListAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aBaseExpandableListAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aBaseExpandableListAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aBaseExpandableListAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aBaseExpandableListAdapter("elementText"));
_click(_aBaseExpandableListAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aBaseExpandableListAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aBaseExpandableListAdapter("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _button or _mButton or _aButton

API

_button(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th button in the UI)

//text
_button("elementText")
//contentDesc
_button("elementContentDesc")
//resourceId
_button("com.sahipro.SahiTestApp:id/elementId")
//index
_button(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_button("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_button(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_button("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_button("elementText"));
_click(_button("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_button("elementText"));
// Check if element is visible
_assert(_isVisible(_button("elementText")));
Since
Mobile Engine 7.5.0
API

_aCalendarView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCalendarView in the UI)

//text
_aCalendarView("elementText")
//contentDesc
_aCalendarView("elementContentDesc")
//resourceId
_aCalendarView("com.sahipro.SahiTestApp:id/elementId")
//index
_aCalendarView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCalendarView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCalendarView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCalendarView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCalendarView("elementText"));
_click(_aCalendarView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCalendarView("elementText"));
// Check if element is visible
_assert(_isVisible(_aCalendarView("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _checkbox or _mCheckBox or _aCheckBox

API

_checkbox(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th checkbox in the UI)

//text
_checkbox("elementText")
//contentDesc
_checkbox("elementContentDesc")
//resourceId
_checkbox("com.sahipro.SahiTestApp:id/elementId")
//index
_checkbox(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_checkbox("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_checkbox(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_checkbox("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_checkbox("elementText"));
_click(_checkbox("/Name/[1]", _rightOf(_label("Name"))));
// Check irrespective of whether it was checked or unchecked
_check(_checkbox("checkbox_name"));
// Uncheck irrespective of whether it was checked or unchecked
_uncheck(_checkbox("checkbox_name"));
Assertions

Example assertions:

// Check if element exists
_assertExists(_checkbox("elementText"));
// Check if element is visible
_assert(_isVisible(_checkbox("elementText")));
Since
Mobile Engine 7.5.0
API

_aCheckedTextView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCheckedTextView in the UI)

//text
_aCheckedTextView("elementText")
//contentDesc
_aCheckedTextView("elementContentDesc")
//resourceId
_aCheckedTextView("com.sahipro.SahiTestApp:id/elementId")
//index
_aCheckedTextView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCheckedTextView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCheckedTextView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCheckedTextView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCheckedTextView("elementText"));
_click(_aCheckedTextView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCheckedTextView("elementText"));
// Check if element is visible
_assert(_isVisible(_aCheckedTextView("elementText")));
Since
Mobile Engine 7.5.0
API

_aChronometer(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aChronometer in the UI)

//text
_aChronometer("elementText")
//contentDesc
_aChronometer("elementContentDesc")
//resourceId
_aChronometer("com.sahipro.SahiTestApp:id/elementId")
//index
_aChronometer(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aChronometer("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aChronometer(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aChronometer("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aChronometer("elementText"));
_click(_aChronometer("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aChronometer("elementText"));
// Check if element is visible
_assert(_isVisible(_aChronometer("elementText")));
Since
Mobile Engine 7.5.0
API

_aCompoundButton(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCompoundButton in the UI)

//text
_aCompoundButton("elementText")
//contentDesc
_aCompoundButton("elementContentDesc")
//resourceId
_aCompoundButton("com.sahipro.SahiTestApp:id/elementId")
//index
_aCompoundButton(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCompoundButton("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCompoundButton(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCompoundButton("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCompoundButton("elementText"));
_click(_aCompoundButton("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCompoundButton("elementText"));
// Check if element is visible
_assert(_isVisible(_aCompoundButton("elementText")));
Since
Mobile Engine 7.5.0
API

_aCursorAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCursorAdapter in the UI)

//text
_aCursorAdapter("elementText")
//contentDesc
_aCursorAdapter("elementContentDesc")
//resourceId
_aCursorAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aCursorAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCursorAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCursorAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCursorAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCursorAdapter("elementText"));
_click(_aCursorAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCursorAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aCursorAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aCursorTreeAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCursorTreeAdapter in the UI)

//text
_aCursorTreeAdapter("elementText")
//contentDesc
_aCursorTreeAdapter("elementContentDesc")
//resourceId
_aCursorTreeAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aCursorTreeAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCursorTreeAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCursorTreeAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCursorTreeAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCursorTreeAdapter("elementText"));
_click(_aCursorTreeAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCursorTreeAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aCursorTreeAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aDatePicker(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDatePicker in the UI)

//text
_aDatePicker("elementText")
//contentDesc
_aDatePicker("elementContentDesc")
//resourceId
_aDatePicker("com.sahipro.SahiTestApp:id/elementId")
//index
_aDatePicker(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDatePicker("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDatePicker(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDatePicker("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDatePicker("elementText"));
_click(_aDatePicker("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDatePicker("elementText"));
// Check if element is visible
_assert(_isVisible(_aDatePicker("elementText")));
Since
Mobile Engine 7.5.0
API

_aDialerFilter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDialerFilter in the UI)

//text
_aDialerFilter("elementText")
//contentDesc
_aDialerFilter("elementContentDesc")
//resourceId
_aDialerFilter("com.sahipro.SahiTestApp:id/elementId")
//index
_aDialerFilter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDialerFilter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDialerFilter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDialerFilter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDialerFilter("elementText"));
_click(_aDialerFilter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDialerFilter("elementText"));
// Check if element is visible
_assert(_isVisible(_aDialerFilter("elementText")));
Since
Mobile Engine 7.5.0
API

_aDigitalClock(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDigitalClock in the UI)

//text
_aDigitalClock("elementText")
//contentDesc
_aDigitalClock("elementContentDesc")
//resourceId
_aDigitalClock("com.sahipro.SahiTestApp:id/elementId")
//index
_aDigitalClock(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDigitalClock("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDigitalClock(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDigitalClock("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDigitalClock("elementText"));
_click(_aDigitalClock("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDigitalClock("elementText"));
// Check if element is visible
_assert(_isVisible(_aDigitalClock("elementText")));
Since
Mobile Engine 7.5.0
API

_aEdgeEffect(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aEdgeEffect in the UI)

//text
_aEdgeEffect("elementText")
//contentDesc
_aEdgeEffect("elementContentDesc")
//resourceId
_aEdgeEffect("com.sahipro.SahiTestApp:id/elementId")
//index
_aEdgeEffect(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aEdgeEffect("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aEdgeEffect(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aEdgeEffect("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aEdgeEffect("elementText"));
_click(_aEdgeEffect("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aEdgeEffect("elementText"));
// Check if element is visible
_assert(_isVisible(_aEdgeEffect("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _textbox or _aEditText

API

_textbox(identifier [, relation1 [, relation2 ...]])

Identifiers

resourceId, index, text, contentDesc

Valid Accessors and alternatives: (Assume this is the 6th textbox in the UI)

//resourceId
_textbox("com.sahipro.SahiTestApp:id/elementId")
//index
_textbox(5)
//text
_textbox("elementText")
//contentDesc
_textbox("elementContentDesc")
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_textbox("com.sahipro.SahiTestApp:id/elementId", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_textbox(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_textbox("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is _setValue

Example usage:

_setValue(_textbox("com.sahipro.SahiTestApp:id/elementId"), "elementText");
_setValue(_textbox("/Name/[1]", _rightOf(_label("Name"))), "elementText");
Assertions

Example assertions:

// Check if element exists
_assertExists(_textbox("com.sahipro.SahiTestApp:id/elementId"));
// Check if element is visible
_assert(_isVisible(_textbox("com.sahipro.SahiTestApp:id/elementId")));
Since
Mobile Engine 7.5.0
API

_aExpandableListAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aExpandableListAdapter in the UI)

//text
_aExpandableListAdapter("elementText")
//contentDesc
_aExpandableListAdapter("elementContentDesc")
//resourceId
_aExpandableListAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aExpandableListAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aExpandableListAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aExpandableListAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aExpandableListAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aExpandableListAdapter("elementText"));
_click(_aExpandableListAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aExpandableListAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aExpandableListAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aExpandableListView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aExpandableListView in the UI)

//text
_aExpandableListView("elementText")
//contentDesc
_aExpandableListView("elementContentDesc")
//resourceId
_aExpandableListView("com.sahipro.SahiTestApp:id/elementId")
//index
_aExpandableListView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aExpandableListView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aExpandableListView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aExpandableListView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aExpandableListView("elementText"));
_click(_aExpandableListView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aExpandableListView("elementText"));
// Check if element is visible
_assert(_isVisible(_aExpandableListView("elementText")));
Since
Mobile Engine 7.5.0
API

_aFilter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFilter in the UI)

//text
_aFilter("elementText")
//contentDesc
_aFilter("elementContentDesc")
//resourceId
_aFilter("com.sahipro.SahiTestApp:id/elementId")
//index
_aFilter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFilter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFilter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFilter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFilter("elementText"));
_click(_aFilter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFilter("elementText"));
// Check if element is visible
_assert(_isVisible(_aFilter("elementText")));
Since
Mobile Engine 7.5.0
API

_aFilterable(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFilterable in the UI)

//text
_aFilterable("elementText")
//contentDesc
_aFilterable("elementContentDesc")
//resourceId
_aFilterable("com.sahipro.SahiTestApp:id/elementId")
//index
_aFilterable(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFilterable("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFilterable(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFilterable("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFilterable("elementText"));
_click(_aFilterable("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFilterable("elementText"));
// Check if element is visible
_assert(_isVisible(_aFilterable("elementText")));
Since
Mobile Engine 7.5.0
API

_aFilterQueryProvider(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFilterQueryProvider in the UI)

//text
_aFilterQueryProvider("elementText")
//contentDesc
_aFilterQueryProvider("elementContentDesc")
//resourceId
_aFilterQueryProvider("com.sahipro.SahiTestApp:id/elementId")
//index
_aFilterQueryProvider(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFilterQueryProvider("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFilterQueryProvider(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFilterQueryProvider("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFilterQueryProvider("elementText"));
_click(_aFilterQueryProvider("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFilterQueryProvider("elementText"));
// Check if element is visible
_assert(_isVisible(_aFilterQueryProvider("elementText")));
Since
Mobile Engine 7.5.0
API

_aFrameLayout(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFrameLayout in the UI)

//text
_aFrameLayout("elementText")
//contentDesc
_aFrameLayout("elementContentDesc")
//resourceId
_aFrameLayout("com.sahipro.SahiTestApp:id/elementId")
//index
_aFrameLayout(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFrameLayout("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFrameLayout(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFrameLayout("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFrameLayout("elementText"));
_click(_aFrameLayout("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFrameLayout("elementText"));
// Check if element is visible
_assert(_isVisible(_aFrameLayout("elementText")));
Since
Mobile Engine 7.5.0
API

_aGallery(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aGallery in the UI)

//text
_aGallery("elementText")
//contentDesc
_aGallery("elementContentDesc")
//resourceId
_aGallery("com.sahipro.SahiTestApp:id/elementId")
//index
_aGallery(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aGallery("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aGallery(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aGallery("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aGallery("elementText"));
_click(_aGallery("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aGallery("elementText"));
// Check if element is visible
_assert(_isVisible(_aGallery("elementText")));
Since
Mobile Engine 7.5.0
API

_aGridLayout(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aGridLayout in the UI)

//text
_aGridLayout("elementText")
//contentDesc
_aGridLayout("elementContentDesc")
//resourceId
_aGridLayout("com.sahipro.SahiTestApp:id/elementId")
//index
_aGridLayout(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aGridLayout("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aGridLayout(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aGridLayout("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aGridLayout("elementText"));
_click(_aGridLayout("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aGridLayout("elementText"));
// Check if element is visible
_assert(_isVisible(_aGridLayout("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mGridView or _aGridView

API

_mGridView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mGridView in the UI)

//text
_mGridView("elementText")
//contentDesc
_mGridView("elementContentDesc")
//resourceId
_mGridView("com.sahipro.SahiTestApp:id/elementId")
//index
_mGridView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mGridView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mGridView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mGridView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mGridView("elementText"));
_click(_mGridView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mGridView("elementText"));
// Check if element is visible
_assert(_isVisible(_mGridView("elementText")));
Since
Mobile Engine 7.5.0
API

_aHeaderViewListAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aHeaderViewListAdapter in the UI)

//text
_aHeaderViewListAdapter("elementText")
//contentDesc
_aHeaderViewListAdapter("elementContentDesc")
//resourceId
_aHeaderViewListAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aHeaderViewListAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aHeaderViewListAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aHeaderViewListAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aHeaderViewListAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aHeaderViewListAdapter("elementText"));
_click(_aHeaderViewListAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aHeaderViewListAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aHeaderViewListAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aHeterogeneousExpandableList(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aHeterogeneousExpandableList in the UI)

//text
_aHeterogeneousExpandableList("elementText")
//contentDesc
_aHeterogeneousExpandableList("elementContentDesc")
//resourceId
_aHeterogeneousExpandableList("com.sahipro.SahiTestApp:id/elementId")
//index
_aHeterogeneousExpandableList(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aHeterogeneousExpandableList("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aHeterogeneousExpandableList(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aHeterogeneousExpandableList("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aHeterogeneousExpandableList("elementText"));
_click(_aHeterogeneousExpandableList("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aHeterogeneousExpandableList("elementText"));
// Check if element is visible
_assert(_isVisible(_aHeterogeneousExpandableList("elementText")));
Since
Mobile Engine 7.5.0
API

_aHorizontalScrollView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aHorizontalScrollView in the UI)

//text
_aHorizontalScrollView("elementText")
//contentDesc
_aHorizontalScrollView("elementContentDesc")
//resourceId
_aHorizontalScrollView("com.sahipro.SahiTestApp:id/elementId")
//index
_aHorizontalScrollView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aHorizontalScrollView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aHorizontalScrollView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aHorizontalScrollView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aHorizontalScrollView("elementText"));
_click(_aHorizontalScrollView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aHorizontalScrollView("elementText"));
// Check if element is visible
_assert(_isVisible(_aHorizontalScrollView("elementText")));
Since
Mobile Engine 7.5.0
API

_aImageButton(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aImageButton in the UI)

//text
_aImageButton("elementText")
//contentDesc
_aImageButton("elementContentDesc")
//resourceId
_aImageButton("com.sahipro.SahiTestApp:id/elementId")
//index
_aImageButton(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aImageButton("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aImageButton(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aImageButton("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aImageButton("elementText"));
_click(_aImageButton("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aImageButton("elementText"));
// Check if element is visible
_assert(_isVisible(_aImageButton("elementText")));
Since
Mobile Engine 7.5.0
API

_aImageSwitcher(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aImageSwitcher in the UI)

//text
_aImageSwitcher("elementText")
//contentDesc
_aImageSwitcher("elementContentDesc")
//resourceId
_aImageSwitcher("com.sahipro.SahiTestApp:id/elementId")
//index
_aImageSwitcher(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aImageSwitcher("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aImageSwitcher(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aImageSwitcher("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aImageSwitcher("elementText"));
_click(_aImageSwitcher("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aImageSwitcher("elementText"));
// Check if element is visible
_assert(_isVisible(_aImageSwitcher("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _image or _aImageView

API

_image(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th image in the UI)

//text
_image("elementText")
//contentDesc
_image("elementContentDesc")
//resourceId
_image("com.sahipro.SahiTestApp:id/elementId")
//index
_image(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_image("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_image(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_image("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_image("elementText"));
_click(_image("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_image("elementText"));
// Check if element is visible
_assert(_isVisible(_image("elementText")));
Since
Mobile Engine 8.1.0
API

_aImage(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aImage in the UI)

//text
_aImage("elementText")
//contentDesc
_aImage("elementContentDesc")
//resourceId
_aImage("com.sahipro.SahiTestApp:id/elementId")
//index
_aImage(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aImage("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aImage(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aImage("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aImage("elementText"));
_click(_aImage("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aImage("elementText"));
// Check if element is visible
_assert(_isVisible(_aImage("elementText")));
Since
Mobile Engine 7.5.0
API

_aLinearLayout(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aLinearLayout in the UI)

//text
_aLinearLayout("elementText")
//contentDesc
_aLinearLayout("elementContentDesc")
//resourceId
_aLinearLayout("com.sahipro.SahiTestApp:id/elementId")
//index
_aLinearLayout(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aLinearLayout("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aLinearLayout(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aLinearLayout("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aLinearLayout("elementText"));
_click(_aLinearLayout("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aLinearLayout("elementText"));
// Check if element is visible
_assert(_isVisible(_aLinearLayout("elementText")));
Since
Mobile Engine 7.5.0
API

_aListAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListAdapter in the UI)

//text
_aListAdapter("elementText")
//contentDesc
_aListAdapter("elementContentDesc")
//resourceId
_aListAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aListAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListAdapter("elementText"));
_click(_aListAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aListAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aListPopupWindow(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListPopupWindow in the UI)

//text
_aListPopupWindow("elementText")
//contentDesc
_aListPopupWindow("elementContentDesc")
//resourceId
_aListPopupWindow("com.sahipro.SahiTestApp:id/elementId")
//index
_aListPopupWindow(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListPopupWindow("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListPopupWindow(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListPopupWindow("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListPopupWindow("elementText"));
_click(_aListPopupWindow("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListPopupWindow("elementText"));
// Check if element is visible
_assert(_isVisible(_aListPopupWindow("elementText")));
Since
Mobile Engine 7.5.0
API

_aListView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListView in the UI)

//text
_aListView("elementText")
//contentDesc
_aListView("elementContentDesc")
//resourceId
_aListView("com.sahipro.SahiTestApp:id/elementId")
//index
_aListView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListView("elementText"));
_click(_aListView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListView("elementText"));
// Check if element is visible
_assert(_isVisible(_aListView("elementText")));
Since
Mobile Engine 7.5.0
API

_aMultiAutoCompleteTextView(identifier [, relation1 [, relation2 ...]])

Identifiers

resourceId, index, text, contentDesc

Valid Accessors and alternatives: (Assume this is the 6th aMultiAutoCompleteTextView in the UI)

//resourceId
_aMultiAutoCompleteTextView("com.sahipro.SahiTestApp:id/elementId")
//index
_aMultiAutoCompleteTextView(5)
//text
_aMultiAutoCompleteTextView("elementText")
//contentDesc
_aMultiAutoCompleteTextView("elementContentDesc")
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMultiAutoCompleteTextView("com.sahipro.SahiTestApp:id/elementId", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMultiAutoCompleteTextView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMultiAutoCompleteTextView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is _setValue

Example usage:

_setValue(_aMultiAutoCompleteTextView("com.sahipro.SahiTestApp:id/elementId"), "elementText");
_setValue(_aMultiAutoCompleteTextView("/Name/[1]", _rightOf(_label("Name"))), "elementText");
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMultiAutoCompleteTextView("com.sahipro.SahiTestApp:id/elementId"));
// Check if element is visible
_assert(_isVisible(_aMultiAutoCompleteTextView("com.sahipro.SahiTestApp:id/elementId")));
Since
Mobile Engine 7.5.0
API

_aNumberPicker(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aNumberPicker in the UI)

//text
_aNumberPicker("elementText")
//contentDesc
_aNumberPicker("elementContentDesc")
//resourceId
_aNumberPicker("com.sahipro.SahiTestApp:id/elementId")
//index
_aNumberPicker(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aNumberPicker("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aNumberPicker(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aNumberPicker("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aNumberPicker("elementText"));
_click(_aNumberPicker("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aNumberPicker("elementText"));
// Check if element is visible
_assert(_isVisible(_aNumberPicker("elementText")));
Since
Mobile Engine 7.5.0
API

_aOverScroller(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aOverScroller in the UI)

//text
_aOverScroller("elementText")
//contentDesc
_aOverScroller("elementContentDesc")
//resourceId
_aOverScroller("com.sahipro.SahiTestApp:id/elementId")
//index
_aOverScroller(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aOverScroller("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aOverScroller(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aOverScroller("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aOverScroller("elementText"));
_click(_aOverScroller("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aOverScroller("elementText"));
// Check if element is visible
_assert(_isVisible(_aOverScroller("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupMenu(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupMenu in the UI)

//text
_aPopupMenu("elementText")
//contentDesc
_aPopupMenu("elementContentDesc")
//resourceId
_aPopupMenu("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupMenu(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupMenu("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupMenu(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupMenu("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupMenu("elementText"));
_click(_aPopupMenu("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupMenu("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupMenu("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupWindow(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupWindow in the UI)

//text
_aPopupWindow("elementText")
//contentDesc
_aPopupWindow("elementContentDesc")
//resourceId
_aPopupWindow("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupWindow(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupWindow("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupWindow(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupWindow("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupWindow("elementText"));
_click(_aPopupWindow("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupWindow("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupWindow("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mProgressBar or _aProgressBar

API

_mProgressBar(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mProgressBar in the UI)

//text
_mProgressBar("elementText")
//contentDesc
_mProgressBar("elementContentDesc")
//resourceId
_mProgressBar("com.sahipro.SahiTestApp:id/elementId")
//index
_mProgressBar(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mProgressBar("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mProgressBar(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mProgressBar("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mProgressBar("elementText"));
_click(_mProgressBar("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mProgressBar("elementText"));
// Check if element is visible
_assert(_isVisible(_mProgressBar("elementText")));
Since
Mobile Engine 7.5.0
API

_aQuickContactBadge(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aQuickContactBadge in the UI)

//text
_aQuickContactBadge("elementText")
//contentDesc
_aQuickContactBadge("elementContentDesc")
//resourceId
_aQuickContactBadge("com.sahipro.SahiTestApp:id/elementId")
//index
_aQuickContactBadge(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aQuickContactBadge("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aQuickContactBadge(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aQuickContactBadge("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aQuickContactBadge("elementText"));
_click(_aQuickContactBadge("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aQuickContactBadge("elementText"));
// Check if element is visible
_assert(_isVisible(_aQuickContactBadge("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _radio or _mRadioButton or _aRadioButton

API

_radio(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th radio in the UI)

//text
_radio("elementText")
//contentDesc
_radio("elementContentDesc")
//resourceId
_radio("com.sahipro.SahiTestApp:id/elementId")
//index
_radio(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_radio("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_radio(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_radio("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_radio("elementText"));
_click(_radio("/Name/[1]", _rightOf(_label("Name"))));
// Check irrespective of whether it was checked or unchecked
_check(_radio("radio_name"));
Assertions

Example assertions:

// Check if element exists
_assertExists(_radio("elementText"));
// Check if element is visible
_assert(_isVisible(_radio("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mRadioGroup or _aRadioGroup

API

_mRadioGroup(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mRadioGroup in the UI)

//text
_mRadioGroup("elementText")
//contentDesc
_mRadioGroup("elementContentDesc")
//resourceId
_mRadioGroup("com.sahipro.SahiTestApp:id/elementId")
//index
_mRadioGroup(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mRadioGroup("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mRadioGroup(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mRadioGroup("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mRadioGroup("elementText"));
_click(_mRadioGroup("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mRadioGroup("elementText"));
// Check if element is visible
_assert(_isVisible(_mRadioGroup("elementText")));
Since
Mobile Engine 7.5.0
API

_aRadialTimePickerView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aRadialTimePickerView in the UI)

//text
_aRadialTimePickerView("elementText")
//contentDesc
_aRadialTimePickerView("elementContentDesc")
//resourceId
_aRadialTimePickerView("com.sahipro.SahiTestApp:id/elementId")
//index
_aRadialTimePickerView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aRadialTimePickerView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aRadialTimePickerView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aRadialTimePickerView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aRadialTimePickerView("elementText"));
_click(_aRadialTimePickerView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aRadialTimePickerView("elementText"));
// Check if element is visible
_assert(_isVisible(_aRadialTimePickerView("elementText")));
Since
Mobile Engine 7.5.0
API

_aRatingBar(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aRatingBar in the UI)

//text
_aRatingBar("elementText")
//contentDesc
_aRatingBar("elementContentDesc")
//resourceId
_aRatingBar("com.sahipro.SahiTestApp:id/elementId")
//index
_aRatingBar(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aRatingBar("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aRatingBar(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aRatingBar("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aRatingBar("elementText"));
_click(_aRatingBar("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aRatingBar("elementText"));
// Check if element is visible
_assert(_isVisible(_aRatingBar("elementText")));
Since
Mobile Engine 7.5.0
API

_aRelativeLayout(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aRelativeLayout in the UI)

//text
_aRelativeLayout("elementText")
//contentDesc
_aRelativeLayout("elementContentDesc")
//resourceId
_aRelativeLayout("com.sahipro.SahiTestApp:id/elementId")
//index
_aRelativeLayout(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aRelativeLayout("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aRelativeLayout(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aRelativeLayout("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aRelativeLayout("elementText"));
_click(_aRelativeLayout("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aRelativeLayout("elementText"));
// Check if element is visible
_assert(_isVisible(_aRelativeLayout("elementText")));
Since
Mobile Engine 7.5.0
API

_aRemoteViews(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aRemoteViews in the UI)

//text
_aRemoteViews("elementText")
//contentDesc
_aRemoteViews("elementContentDesc")
//resourceId
_aRemoteViews("com.sahipro.SahiTestApp:id/elementId")
//index
_aRemoteViews(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aRemoteViews("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aRemoteViews(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aRemoteViews("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aRemoteViews("elementText"));
_click(_aRemoteViews("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aRemoteViews("elementText"));
// Check if element is visible
_assert(_isVisible(_aRemoteViews("elementText")));
Since
Mobile Engine 7.5.0
API

_aRemoteViewsService(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aRemoteViewsService in the UI)

//text
_aRemoteViewsService("elementText")
//contentDesc
_aRemoteViewsService("elementContentDesc")
//resourceId
_aRemoteViewsService("com.sahipro.SahiTestApp:id/elementId")
//index
_aRemoteViewsService(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aRemoteViewsService("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aRemoteViewsService(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aRemoteViewsService("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aRemoteViewsService("elementText"));
_click(_aRemoteViewsService("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aRemoteViewsService("elementText"));
// Check if element is visible
_assert(_isVisible(_aRemoteViewsService("elementText")));
Since
Mobile Engine 7.5.0
API

_aResourceCursorAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aResourceCursorAdapter in the UI)

//text
_aResourceCursorAdapter("elementText")
//contentDesc
_aResourceCursorAdapter("elementContentDesc")
//resourceId
_aResourceCursorAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aResourceCursorAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aResourceCursorAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aResourceCursorAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aResourceCursorAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aResourceCursorAdapter("elementText"));
_click(_aResourceCursorAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aResourceCursorAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aResourceCursorAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aResourceCursorTreeAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aResourceCursorTreeAdapter in the UI)

//text
_aResourceCursorTreeAdapter("elementText")
//contentDesc
_aResourceCursorTreeAdapter("elementContentDesc")
//resourceId
_aResourceCursorTreeAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aResourceCursorTreeAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aResourceCursorTreeAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aResourceCursorTreeAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aResourceCursorTreeAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aResourceCursorTreeAdapter("elementText"));
_click(_aResourceCursorTreeAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aResourceCursorTreeAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aResourceCursorTreeAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aScroller(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aScroller in the UI)

//text
_aScroller("elementText")
//contentDesc
_aScroller("elementContentDesc")
//resourceId
_aScroller("com.sahipro.SahiTestApp:id/elementId")
//index
_aScroller(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aScroller("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aScroller(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aScroller("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aScroller("elementText"));
_click(_aScroller("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aScroller("elementText"));
// Check if element is visible
_assert(_isVisible(_aScroller("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mScrollView or _aScrollView

API

_mScrollView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mScrollView in the UI)

//text
_mScrollView("elementText")
//contentDesc
_mScrollView("elementContentDesc")
//resourceId
_mScrollView("com.sahipro.SahiTestApp:id/elementId")
//index
_mScrollView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mScrollView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mScrollView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mScrollView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mScrollView("elementText"));
_click(_mScrollView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mScrollView("elementText"));
// Check if element is visible
_assert(_isVisible(_mScrollView("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mSearchView or _aSearchView

API

_mSearchView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mSearchView in the UI)

//text
_mSearchView("elementText")
//contentDesc
_mSearchView("elementContentDesc")
//resourceId
_mSearchView("com.sahipro.SahiTestApp:id/elementId")
//index
_mSearchView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mSearchView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mSearchView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mSearchView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mSearchView("elementText"));
_click(_mSearchView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mSearchView("elementText"));
// Check if element is visible
_assert(_isVisible(_mSearchView("elementText")));
Since
Mobile Engine 7.5.0
API

_aSectionIndexer(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSectionIndexer in the UI)

//text
_aSectionIndexer("elementText")
//contentDesc
_aSectionIndexer("elementContentDesc")
//resourceId
_aSectionIndexer("com.sahipro.SahiTestApp:id/elementId")
//index
_aSectionIndexer(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSectionIndexer("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSectionIndexer(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSectionIndexer("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSectionIndexer("elementText"));
_click(_aSectionIndexer("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSectionIndexer("elementText"));
// Check if element is visible
_assert(_isVisible(_aSectionIndexer("elementText")));
Since
Mobile Engine 7.5.0
API

_aSeekBar(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSeekBar in the UI)

//text
_aSeekBar("elementText")
//contentDesc
_aSeekBar("elementContentDesc")
//resourceId
_aSeekBar("com.sahipro.SahiTestApp:id/elementId")
//index
_aSeekBar(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSeekBar("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSeekBar(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSeekBar("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSeekBar("elementText"));
_click(_aSeekBar("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSeekBar("elementText"));
// Check if element is visible
_assert(_isVisible(_aSeekBar("elementText")));
Since
Mobile Engine 7.5.0
API

_aShareActionProvider(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aShareActionProvider in the UI)

//text
_aShareActionProvider("elementText")
//contentDesc
_aShareActionProvider("elementContentDesc")
//resourceId
_aShareActionProvider("com.sahipro.SahiTestApp:id/elementId")
//index
_aShareActionProvider(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aShareActionProvider("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aShareActionProvider(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aShareActionProvider("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aShareActionProvider("elementText"));
_click(_aShareActionProvider("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aShareActionProvider("elementText"));
// Check if element is visible
_assert(_isVisible(_aShareActionProvider("elementText")));
Since
Mobile Engine 7.5.0
API

_aSimpleAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSimpleAdapter in the UI)

//text
_aSimpleAdapter("elementText")
//contentDesc
_aSimpleAdapter("elementContentDesc")
//resourceId
_aSimpleAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aSimpleAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSimpleAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSimpleAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSimpleAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSimpleAdapter("elementText"));
_click(_aSimpleAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSimpleAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aSimpleAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aSimpleCursorAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSimpleCursorAdapter in the UI)

//text
_aSimpleCursorAdapter("elementText")
//contentDesc
_aSimpleCursorAdapter("elementContentDesc")
//resourceId
_aSimpleCursorAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aSimpleCursorAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSimpleCursorAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSimpleCursorAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSimpleCursorAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSimpleCursorAdapter("elementText"));
_click(_aSimpleCursorAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSimpleCursorAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aSimpleCursorAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aSimpleCursorTreeAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSimpleCursorTreeAdapter in the UI)

//text
_aSimpleCursorTreeAdapter("elementText")
//contentDesc
_aSimpleCursorTreeAdapter("elementContentDesc")
//resourceId
_aSimpleCursorTreeAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aSimpleCursorTreeAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSimpleCursorTreeAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSimpleCursorTreeAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSimpleCursorTreeAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSimpleCursorTreeAdapter("elementText"));
_click(_aSimpleCursorTreeAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSimpleCursorTreeAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aSimpleCursorTreeAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aSimpleExpandableListAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSimpleExpandableListAdapter in the UI)

//text
_aSimpleExpandableListAdapter("elementText")
//contentDesc
_aSimpleExpandableListAdapter("elementContentDesc")
//resourceId
_aSimpleExpandableListAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aSimpleExpandableListAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSimpleExpandableListAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSimpleExpandableListAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSimpleExpandableListAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSimpleExpandableListAdapter("elementText"));
_click(_aSimpleExpandableListAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSimpleExpandableListAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aSimpleExpandableListAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aSlidingDrawer(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSlidingDrawer in the UI)

//text
_aSlidingDrawer("elementText")
//contentDesc
_aSlidingDrawer("elementContentDesc")
//resourceId
_aSlidingDrawer("com.sahipro.SahiTestApp:id/elementId")
//index
_aSlidingDrawer(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSlidingDrawer("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSlidingDrawer(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSlidingDrawer("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSlidingDrawer("elementText"));
_click(_aSlidingDrawer("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSlidingDrawer("elementText"));
// Check if element is visible
_assert(_isVisible(_aSlidingDrawer("elementText")));
Since
Mobile Engine 7.5.0
API

_aSpace(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSpace in the UI)

//text
_aSpace("elementText")
//contentDesc
_aSpace("elementContentDesc")
//resourceId
_aSpace("com.sahipro.SahiTestApp:id/elementId")
//index
_aSpace(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSpace("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSpace(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSpace("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSpace("elementText"));
_click(_aSpace("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSpace("elementText"));
// Check if element is visible
_assert(_isVisible(_aSpace("elementText")));
Since
Mobile Engine 7.5.0
API

_aSpinner(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSpinner in the UI)

//text
_aSpinner("elementText")
//contentDesc
_aSpinner("elementContentDesc")
//resourceId
_aSpinner("com.sahipro.SahiTestApp:id/elementId")
//index
_aSpinner(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSpinner("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSpinner(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSpinner("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSpinner("elementText"));
_click(_aSpinner("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSpinner("elementText"));
// Check if element is visible
_assert(_isVisible(_aSpinner("elementText")));
Since
Mobile Engine 7.5.0
API

_aSpinnerAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSpinnerAdapter in the UI)

//text
_aSpinnerAdapter("elementText")
//contentDesc
_aSpinnerAdapter("elementContentDesc")
//resourceId
_aSpinnerAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aSpinnerAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSpinnerAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSpinnerAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSpinnerAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSpinnerAdapter("elementText"));
_click(_aSpinnerAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSpinnerAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aSpinnerAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aStackView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aStackView in the UI)

//text
_aStackView("elementText")
//contentDesc
_aStackView("elementContentDesc")
//resourceId
_aStackView("com.sahipro.SahiTestApp:id/elementId")
//index
_aStackView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aStackView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aStackView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aStackView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aStackView("elementText"));
_click(_aStackView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aStackView("elementText"));
// Check if element is visible
_assert(_isVisible(_aStackView("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mSwitch or _aSwitch

API

_mSwitch(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mSwitch in the UI)

//text
_mSwitch("elementText")
//contentDesc
_mSwitch("elementContentDesc")
//resourceId
_mSwitch("com.sahipro.SahiTestApp:id/elementId")
//index
_mSwitch(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mSwitch("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mSwitch(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mSwitch("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mSwitch("elementText"));
_click(_mSwitch("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mSwitch("elementText"));
// Check if element is visible
_assert(_isVisible(_mSwitch("elementText")));
Since
Mobile Engine 7.5.0
API

_aTabHost(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTabHost in the UI)

//text
_aTabHost("elementText")
//contentDesc
_aTabHost("elementContentDesc")
//resourceId
_aTabHost("com.sahipro.SahiTestApp:id/elementId")
//index
_aTabHost(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTabHost("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTabHost(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTabHost("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTabHost("elementText"));
_click(_aTabHost("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTabHost("elementText"));
// Check if element is visible
_assert(_isVisible(_aTabHost("elementText")));
Since
Mobile Engine 7.5.0
API

_aTableLayout(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTableLayout in the UI)

//text
_aTableLayout("elementText")
//contentDesc
_aTableLayout("elementContentDesc")
//resourceId
_aTableLayout("com.sahipro.SahiTestApp:id/elementId")
//index
_aTableLayout(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTableLayout("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTableLayout(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTableLayout("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTableLayout("elementText"));
_click(_aTableLayout("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTableLayout("elementText"));
// Check if element is visible
_assert(_isVisible(_aTableLayout("elementText")));
Since
Mobile Engine 7.5.0
API

_aTableRow(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTableRow in the UI)

//text
_aTableRow("elementText")
//contentDesc
_aTableRow("elementContentDesc")
//resourceId
_aTableRow("com.sahipro.SahiTestApp:id/elementId")
//index
_aTableRow(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTableRow("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTableRow(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTableRow("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTableRow("elementText"));
_click(_aTableRow("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTableRow("elementText"));
// Check if element is visible
_assert(_isVisible(_aTableRow("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mTabWidget or _aTabWidget

API

_mTabWidget(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mTabWidget in the UI)

//text
_mTabWidget("elementText")
//contentDesc
_mTabWidget("elementContentDesc")
//resourceId
_mTabWidget("com.sahipro.SahiTestApp:id/elementId")
//index
_mTabWidget(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mTabWidget("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mTabWidget(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mTabWidget("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mTabWidget("elementText"));
_click(_mTabWidget("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mTabWidget("elementText"));
// Check if element is visible
_assert(_isVisible(_mTabWidget("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextClock(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextClock in the UI)

//text
_aTextClock("elementText")
//contentDesc
_aTextClock("elementContentDesc")
//resourceId
_aTextClock("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextClock(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextClock("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextClock(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextClock("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextClock("elementText"));
_click(_aTextClock("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextClock("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextClock("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextSwitcher(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextSwitcher in the UI)

//text
_aTextSwitcher("elementText")
//contentDesc
_aTextSwitcher("elementContentDesc")
//resourceId
_aTextSwitcher("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextSwitcher(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextSwitcher("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextSwitcher(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextSwitcher("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextSwitcher("elementText"));
_click(_aTextSwitcher("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextSwitcher("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextSwitcher("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _label or _aTextView

API

_label(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th label in the UI)

//text
_label("elementText")
//contentDesc
_label("elementContentDesc")
//resourceId
_label("com.sahipro.SahiTestApp:id/elementId")
//index
_label(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_label("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_label(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_label("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_label("elementText"));
_click(_label("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_label("elementText"));
// Check if element is visible
_assert(_isVisible(_label("elementText")));
Since
Mobile Engine 7.5.0
API

_aThemedSpinnerAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aThemedSpinnerAdapter in the UI)

//text
_aThemedSpinnerAdapter("elementText")
//contentDesc
_aThemedSpinnerAdapter("elementContentDesc")
//resourceId
_aThemedSpinnerAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aThemedSpinnerAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aThemedSpinnerAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aThemedSpinnerAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aThemedSpinnerAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aThemedSpinnerAdapter("elementText"));
_click(_aThemedSpinnerAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aThemedSpinnerAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aThemedSpinnerAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aTimePicker(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTimePicker in the UI)

//text
_aTimePicker("elementText")
//contentDesc
_aTimePicker("elementContentDesc")
//resourceId
_aTimePicker("com.sahipro.SahiTestApp:id/elementId")
//index
_aTimePicker(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTimePicker("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTimePicker(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTimePicker("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTimePicker("elementText"));
_click(_aTimePicker("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTimePicker("elementText"));
// Check if element is visible
_assert(_isVisible(_aTimePicker("elementText")));
Since
Mobile Engine 7.5.0
API

_aToast(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aToast in the UI)

//text
_aToast("elementText")
//contentDesc
_aToast("elementContentDesc")
//resourceId
_aToast("com.sahipro.SahiTestApp:id/elementId")
//index
_aToast(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aToast("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aToast(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aToast("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aToast("elementText"));
_click(_aToast("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aToast("elementText"));
// Check if element is visible
_assert(_isVisible(_aToast("elementText")));
Since
Mobile Engine 7.5.0
API

_aToggleButton(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aToggleButton in the UI)

//text
_aToggleButton("elementText")
//contentDesc
_aToggleButton("elementContentDesc")
//resourceId
_aToggleButton("com.sahipro.SahiTestApp:id/elementId")
//index
_aToggleButton(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aToggleButton("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aToggleButton(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aToggleButton("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aToggleButton("elementText"));
_click(_aToggleButton("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aToggleButton("elementText"));
// Check if element is visible
_assert(_isVisible(_aToggleButton("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mToolbar or _aToolbar

API

_mToolbar(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mToolbar in the UI)

//text
_mToolbar("elementText")
//contentDesc
_mToolbar("elementContentDesc")
//resourceId
_mToolbar("com.sahipro.SahiTestApp:id/elementId")
//index
_mToolbar(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mToolbar("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mToolbar(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mToolbar("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mToolbar("elementText"));
_click(_mToolbar("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mToolbar("elementText"));
// Check if element is visible
_assert(_isVisible(_mToolbar("elementText")));
Since
Mobile Engine 7.5.0
API

_aTwoLineListItem(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTwoLineListItem in the UI)

//text
_aTwoLineListItem("elementText")
//contentDesc
_aTwoLineListItem("elementContentDesc")
//resourceId
_aTwoLineListItem("com.sahipro.SahiTestApp:id/elementId")
//index
_aTwoLineListItem(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTwoLineListItem("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTwoLineListItem(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTwoLineListItem("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTwoLineListItem("elementText"));
_click(_aTwoLineListItem("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTwoLineListItem("elementText"));
// Check if element is visible
_assert(_isVisible(_aTwoLineListItem("elementText")));
Since
Mobile Engine 7.5.0
API

_aVideoView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aVideoView in the UI)

//text
_aVideoView("elementText")
//contentDesc
_aVideoView("elementContentDesc")
//resourceId
_aVideoView("com.sahipro.SahiTestApp:id/elementId")
//index
_aVideoView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aVideoView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aVideoView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aVideoView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aVideoView("elementText"));
_click(_aVideoView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aVideoView("elementText"));
// Check if element is visible
_assert(_isVisible(_aVideoView("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewAnimator(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewAnimator in the UI)

//text
_aViewAnimator("elementText")
//contentDesc
_aViewAnimator("elementContentDesc")
//resourceId
_aViewAnimator("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewAnimator(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewAnimator("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewAnimator(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewAnimator("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewAnimator("elementText"));
_click(_aViewAnimator("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewAnimator("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewAnimator("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewFlipper(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewFlipper in the UI)

//text
_aViewFlipper("elementText")
//contentDesc
_aViewFlipper("elementContentDesc")
//resourceId
_aViewFlipper("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewFlipper(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewFlipper("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewFlipper(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewFlipper("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewFlipper("elementText"));
_click(_aViewFlipper("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewFlipper("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewFlipper("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewSwitcher(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewSwitcher in the UI)

//text
_aViewSwitcher("elementText")
//contentDesc
_aViewSwitcher("elementContentDesc")
//resourceId
_aViewSwitcher("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewSwitcher(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewSwitcher("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewSwitcher(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewSwitcher("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewSwitcher("elementText"));
_click(_aViewSwitcher("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewSwitcher("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewSwitcher("elementText")));
Since
Mobile Engine 7.5.0
API

_aWrapperListAdapter(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aWrapperListAdapter in the UI)

//text
_aWrapperListAdapter("elementText")
//contentDesc
_aWrapperListAdapter("elementContentDesc")
//resourceId
_aWrapperListAdapter("com.sahipro.SahiTestApp:id/elementId")
//index
_aWrapperListAdapter(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aWrapperListAdapter("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aWrapperListAdapter(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aWrapperListAdapter("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aWrapperListAdapter("elementText"));
_click(_aWrapperListAdapter("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aWrapperListAdapter("elementText"));
// Check if element is visible
_assert(_isVisible(_aWrapperListAdapter("elementText")));
Since
Mobile Engine 7.5.0
API

_aZoomButton(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aZoomButton in the UI)

//text
_aZoomButton("elementText")
//contentDesc
_aZoomButton("elementContentDesc")
//resourceId
_aZoomButton("com.sahipro.SahiTestApp:id/elementId")
//index
_aZoomButton(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aZoomButton("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aZoomButton(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aZoomButton("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aZoomButton("elementText"));
_click(_aZoomButton("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aZoomButton("elementText"));
// Check if element is visible
_assert(_isVisible(_aZoomButton("elementText")));
Since
Mobile Engine 7.5.0
API

_aZoomButtonsController(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aZoomButtonsController in the UI)

//text
_aZoomButtonsController("elementText")
//contentDesc
_aZoomButtonsController("elementContentDesc")
//resourceId
_aZoomButtonsController("com.sahipro.SahiTestApp:id/elementId")
//index
_aZoomButtonsController(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aZoomButtonsController("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aZoomButtonsController(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aZoomButtonsController("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aZoomButtonsController("elementText"));
_click(_aZoomButtonsController("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aZoomButtonsController("elementText"));
// Check if element is visible
_assert(_isVisible(_aZoomButtonsController("elementText")));
Since
Mobile Engine 7.5.0
API

_aZoomControls(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aZoomControls in the UI)

//text
_aZoomControls("elementText")
//contentDesc
_aZoomControls("elementContentDesc")
//resourceId
_aZoomControls("com.sahipro.SahiTestApp:id/elementId")
//index
_aZoomControls(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aZoomControls("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aZoomControls(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aZoomControls("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aZoomControls("elementText"));
_click(_aZoomControls("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aZoomControls("elementText"));
// Check if element is visible
_assert(_isVisible(_aZoomControls("elementText")));
Since
Mobile Engine 7.5.0
Note

You may use either _mWebView or _aWebView

API

_mWebView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th mWebView in the UI)

//text
_mWebView("elementText")
//contentDesc
_mWebView("elementContentDesc")
//resourceId
_mWebView("com.sahipro.SahiTestApp:id/elementId")
//index
_mWebView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_mWebView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_mWebView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_mWebView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_mWebView("elementText"));
_click(_mWebView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_mWebView("elementText"));
// Check if element is visible
_assert(_isVisible(_mWebView("elementText")));
Since
Mobile Engine 7.5.0
API

_aCircleImageView(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCircleImageView in the UI)

//text
_aCircleImageView("elementText")
//contentDesc
_aCircleImageView("elementContentDesc")
//resourceId
_aCircleImageView("com.sahipro.SahiTestApp:id/elementId")
//index
_aCircleImageView(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCircleImageView("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCircleImageView(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCircleImageView("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCircleImageView("elementText"));
_click(_aCircleImageView("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCircleImageView("elementText"));
// Check if element is visible
_assert(_isVisible(_aCircleImageView("elementText")));
Since
Mobile Engine 7.5.0
API

_aContentLoadingProgressBarV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aContentLoadingProgressBarV4 in the UI)

//text
_aContentLoadingProgressBarV4("elementText")
//contentDesc
_aContentLoadingProgressBarV4("elementContentDesc")
//resourceId
_aContentLoadingProgressBarV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aContentLoadingProgressBarV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aContentLoadingProgressBarV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aContentLoadingProgressBarV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aContentLoadingProgressBarV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aContentLoadingProgressBarV4("elementText"));
_click(_aContentLoadingProgressBarV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aContentLoadingProgressBarV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aContentLoadingProgressBarV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aDrawerLayoutV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDrawerLayoutV4 in the UI)

//text
_aDrawerLayoutV4("elementText")
//contentDesc
_aDrawerLayoutV4("elementContentDesc")
//resourceId
_aDrawerLayoutV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aDrawerLayoutV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDrawerLayoutV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDrawerLayoutV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDrawerLayoutV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDrawerLayoutV4("elementText"));
_click(_aDrawerLayoutV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDrawerLayoutV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aDrawerLayoutV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aDrawerLayoutImplV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDrawerLayoutImplV4 in the UI)

//text
_aDrawerLayoutImplV4("elementText")
//contentDesc
_aDrawerLayoutImplV4("elementContentDesc")
//resourceId
_aDrawerLayoutImplV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aDrawerLayoutImplV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDrawerLayoutImplV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDrawerLayoutImplV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDrawerLayoutImplV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDrawerLayoutImplV4("elementText"));
_click(_aDrawerLayoutImplV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDrawerLayoutImplV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aDrawerLayoutImplV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aMaterialProgressDrawableV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMaterialProgressDrawableV4 in the UI)

//text
_aMaterialProgressDrawableV4("elementText")
//contentDesc
_aMaterialProgressDrawableV4("elementContentDesc")
//resourceId
_aMaterialProgressDrawableV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aMaterialProgressDrawableV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMaterialProgressDrawableV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMaterialProgressDrawableV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMaterialProgressDrawableV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMaterialProgressDrawableV4("elementText"));
_click(_aMaterialProgressDrawableV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMaterialProgressDrawableV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aMaterialProgressDrawableV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aNestedScrollViewV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aNestedScrollViewV4 in the UI)

//text
_aNestedScrollViewV4("elementText")
//contentDesc
_aNestedScrollViewV4("elementContentDesc")
//resourceId
_aNestedScrollViewV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aNestedScrollViewV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aNestedScrollViewV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aNestedScrollViewV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aNestedScrollViewV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aNestedScrollViewV4("elementText"));
_click(_aNestedScrollViewV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aNestedScrollViewV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aNestedScrollViewV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aSlidingPaneLayoutV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSlidingPaneLayoutV4 in the UI)

//text
_aSlidingPaneLayoutV4("elementText")
//contentDesc
_aSlidingPaneLayoutV4("elementContentDesc")
//resourceId
_aSlidingPaneLayoutV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aSlidingPaneLayoutV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSlidingPaneLayoutV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSlidingPaneLayoutV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSlidingPaneLayoutV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSlidingPaneLayoutV4("elementText"));
_click(_aSlidingPaneLayoutV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSlidingPaneLayoutV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aSlidingPaneLayoutV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aSpaceV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSpaceV4 in the UI)

//text
_aSpaceV4("elementText")
//contentDesc
_aSpaceV4("elementContentDesc")
//resourceId
_aSpaceV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aSpaceV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSpaceV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSpaceV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSpaceV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSpaceV4("elementText"));
_click(_aSpaceV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSpaceV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aSpaceV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aSwipeProgressBarV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSwipeProgressBarV4 in the UI)

//text
_aSwipeProgressBarV4("elementText")
//contentDesc
_aSwipeProgressBarV4("elementContentDesc")
//resourceId
_aSwipeProgressBarV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aSwipeProgressBarV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSwipeProgressBarV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSwipeProgressBarV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSwipeProgressBarV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSwipeProgressBarV4("elementText"));
_click(_aSwipeProgressBarV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSwipeProgressBarV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aSwipeProgressBarV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aSwipeRefreshLayoutV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSwipeRefreshLayoutV4 in the UI)

//text
_aSwipeRefreshLayoutV4("elementText")
//contentDesc
_aSwipeRefreshLayoutV4("elementContentDesc")
//resourceId
_aSwipeRefreshLayoutV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aSwipeRefreshLayoutV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSwipeRefreshLayoutV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSwipeRefreshLayoutV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSwipeRefreshLayoutV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSwipeRefreshLayoutV4("elementText"));
_click(_aSwipeRefreshLayoutV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSwipeRefreshLayoutV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aSwipeRefreshLayoutV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aCompoundButtonCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCompoundButtonCompatV4 in the UI)

//text
_aCompoundButtonCompatV4("elementText")
//contentDesc
_aCompoundButtonCompatV4("elementContentDesc")
//resourceId
_aCompoundButtonCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aCompoundButtonCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCompoundButtonCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCompoundButtonCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCompoundButtonCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCompoundButtonCompatV4("elementText"));
_click(_aCompoundButtonCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCompoundButtonCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aCompoundButtonCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aCompoundButtonCompatApi23V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCompoundButtonCompatApi23V4 in the UI)

//text
_aCompoundButtonCompatApi23V4("elementText")
//contentDesc
_aCompoundButtonCompatApi23V4("elementContentDesc")
//resourceId
_aCompoundButtonCompatApi23V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aCompoundButtonCompatApi23V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCompoundButtonCompatApi23V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCompoundButtonCompatApi23V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCompoundButtonCompatApi23V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCompoundButtonCompatApi23V4("elementText"));
_click(_aCompoundButtonCompatApi23V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCompoundButtonCompatApi23V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aCompoundButtonCompatApi23V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aCompoundButtonCompatLollipopV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCompoundButtonCompatLollipopV4 in the UI)

//text
_aCompoundButtonCompatLollipopV4("elementText")
//contentDesc
_aCompoundButtonCompatLollipopV4("elementContentDesc")
//resourceId
_aCompoundButtonCompatLollipopV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aCompoundButtonCompatLollipopV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCompoundButtonCompatLollipopV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCompoundButtonCompatLollipopV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCompoundButtonCompatLollipopV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCompoundButtonCompatLollipopV4("elementText"));
_click(_aCompoundButtonCompatLollipopV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCompoundButtonCompatLollipopV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aCompoundButtonCompatLollipopV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aListPopupWindowCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListPopupWindowCompatV4 in the UI)

//text
_aListPopupWindowCompatV4("elementText")
//contentDesc
_aListPopupWindowCompatV4("elementContentDesc")
//resourceId
_aListPopupWindowCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aListPopupWindowCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListPopupWindowCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListPopupWindowCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListPopupWindowCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListPopupWindowCompatV4("elementText"));
_click(_aListPopupWindowCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListPopupWindowCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aListPopupWindowCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aListPopupWindowCompatKitKatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListPopupWindowCompatKitKatV4 in the UI)

//text
_aListPopupWindowCompatKitKatV4("elementText")
//contentDesc
_aListPopupWindowCompatKitKatV4("elementContentDesc")
//resourceId
_aListPopupWindowCompatKitKatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aListPopupWindowCompatKitKatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListPopupWindowCompatKitKatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListPopupWindowCompatKitKatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListPopupWindowCompatKitKatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListPopupWindowCompatKitKatV4("elementText"));
_click(_aListPopupWindowCompatKitKatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListPopupWindowCompatKitKatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aListPopupWindowCompatKitKatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aListViewCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListViewCompatV4 in the UI)

//text
_aListViewCompatV4("elementText")
//contentDesc
_aListViewCompatV4("elementContentDesc")
//resourceId
_aListViewCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aListViewCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListViewCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListViewCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListViewCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListViewCompatV4("elementText"));
_click(_aListViewCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListViewCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aListViewCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aListViewCompatKitKatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListViewCompatKitKatV4 in the UI)

//text
_aListViewCompatKitKatV4("elementText")
//contentDesc
_aListViewCompatKitKatV4("elementContentDesc")
//resourceId
_aListViewCompatKitKatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aListViewCompatKitKatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListViewCompatKitKatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListViewCompatKitKatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListViewCompatKitKatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListViewCompatKitKatV4("elementText"));
_click(_aListViewCompatKitKatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListViewCompatKitKatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aListViewCompatKitKatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupMenuCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupMenuCompatV4 in the UI)

//text
_aPopupMenuCompatV4("elementText")
//contentDesc
_aPopupMenuCompatV4("elementContentDesc")
//resourceId
_aPopupMenuCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupMenuCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupMenuCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupMenuCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupMenuCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupMenuCompatV4("elementText"));
_click(_aPopupMenuCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupMenuCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupMenuCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupMenuCompatKitKatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupMenuCompatKitKatV4 in the UI)

//text
_aPopupMenuCompatKitKatV4("elementText")
//contentDesc
_aPopupMenuCompatKitKatV4("elementContentDesc")
//resourceId
_aPopupMenuCompatKitKatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupMenuCompatKitKatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupMenuCompatKitKatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupMenuCompatKitKatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupMenuCompatKitKatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupMenuCompatKitKatV4("elementText"));
_click(_aPopupMenuCompatKitKatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupMenuCompatKitKatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupMenuCompatKitKatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupWindowCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupWindowCompatV4 in the UI)

//text
_aPopupWindowCompatV4("elementText")
//contentDesc
_aPopupWindowCompatV4("elementContentDesc")
//resourceId
_aPopupWindowCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupWindowCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupWindowCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupWindowCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupWindowCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupWindowCompatV4("elementText"));
_click(_aPopupWindowCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupWindowCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupWindowCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupWindowCompatApi21V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupWindowCompatApi21V4 in the UI)

//text
_aPopupWindowCompatApi21V4("elementText")
//contentDesc
_aPopupWindowCompatApi21V4("elementContentDesc")
//resourceId
_aPopupWindowCompatApi21V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupWindowCompatApi21V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupWindowCompatApi21V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupWindowCompatApi21V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupWindowCompatApi21V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupWindowCompatApi21V4("elementText"));
_click(_aPopupWindowCompatApi21V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupWindowCompatApi21V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupWindowCompatApi21V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupWindowCompatApi23V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupWindowCompatApi23V4 in the UI)

//text
_aPopupWindowCompatApi23V4("elementText")
//contentDesc
_aPopupWindowCompatApi23V4("elementContentDesc")
//resourceId
_aPopupWindowCompatApi23V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupWindowCompatApi23V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupWindowCompatApi23V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupWindowCompatApi23V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupWindowCompatApi23V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupWindowCompatApi23V4("elementText"));
_click(_aPopupWindowCompatApi23V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupWindowCompatApi23V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupWindowCompatApi23V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupWindowCompatKitKatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupWindowCompatKitKatV4 in the UI)

//text
_aPopupWindowCompatKitKatV4("elementText")
//contentDesc
_aPopupWindowCompatKitKatV4("elementContentDesc")
//resourceId
_aPopupWindowCompatKitKatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupWindowCompatKitKatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupWindowCompatKitKatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupWindowCompatKitKatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupWindowCompatKitKatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupWindowCompatKitKatV4("elementText"));
_click(_aPopupWindowCompatKitKatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupWindowCompatKitKatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupWindowCompatKitKatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aScrollerCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aScrollerCompatV4 in the UI)

//text
_aScrollerCompatV4("elementText")
//contentDesc
_aScrollerCompatV4("elementContentDesc")
//resourceId
_aScrollerCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aScrollerCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aScrollerCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aScrollerCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aScrollerCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aScrollerCompatV4("elementText"));
_click(_aScrollerCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aScrollerCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aScrollerCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aSearchViewCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSearchViewCompatV4 in the UI)

//text
_aSearchViewCompatV4("elementText")
//contentDesc
_aSearchViewCompatV4("elementContentDesc")
//resourceId
_aSearchViewCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aSearchViewCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSearchViewCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSearchViewCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSearchViewCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSearchViewCompatV4("elementText"));
_click(_aSearchViewCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSearchViewCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aSearchViewCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextViewCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextViewCompatV4 in the UI)

//text
_aTextViewCompatV4("elementText")
//contentDesc
_aTextViewCompatV4("elementContentDesc")
//resourceId
_aTextViewCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextViewCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextViewCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextViewCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextViewCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextViewCompatV4("elementText"));
_click(_aTextViewCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextViewCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextViewCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextViewCompatApi23V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextViewCompatApi23V4 in the UI)

//text
_aTextViewCompatApi23V4("elementText")
//contentDesc
_aTextViewCompatApi23V4("elementContentDesc")
//resourceId
_aTextViewCompatApi23V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextViewCompatApi23V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextViewCompatApi23V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextViewCompatApi23V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextViewCompatApi23V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextViewCompatApi23V4("elementText"));
_click(_aTextViewCompatApi23V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextViewCompatApi23V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextViewCompatApi23V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextViewCompatJbV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextViewCompatJbV4 in the UI)

//text
_aTextViewCompatJbV4("elementText")
//contentDesc
_aTextViewCompatJbV4("elementContentDesc")
//resourceId
_aTextViewCompatJbV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextViewCompatJbV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextViewCompatJbV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextViewCompatJbV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextViewCompatJbV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextViewCompatJbV4("elementText"));
_click(_aTextViewCompatJbV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextViewCompatJbV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextViewCompatJbV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextViewCompatJbMr1V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextViewCompatJbMr1V4 in the UI)

//text
_aTextViewCompatJbMr1V4("elementText")
//contentDesc
_aTextViewCompatJbMr1V4("elementContentDesc")
//resourceId
_aTextViewCompatJbMr1V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextViewCompatJbMr1V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextViewCompatJbMr1V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextViewCompatJbMr1V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextViewCompatJbMr1V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextViewCompatJbMr1V4("elementText"));
_click(_aTextViewCompatJbMr1V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextViewCompatJbMr1V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextViewCompatJbMr1V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aTextViewCompatJbMr2V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTextViewCompatJbMr2V4 in the UI)

//text
_aTextViewCompatJbMr2V4("elementText")
//contentDesc
_aTextViewCompatJbMr2V4("elementContentDesc")
//resourceId
_aTextViewCompatJbMr2V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aTextViewCompatJbMr2V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTextViewCompatJbMr2V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTextViewCompatJbMr2V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTextViewCompatJbMr2V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTextViewCompatJbMr2V4("elementText"));
_click(_aTextViewCompatJbMr2V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTextViewCompatJbMr2V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aTextViewCompatJbMr2V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aTintableCompoundButtonV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aTintableCompoundButtonV4 in the UI)

//text
_aTintableCompoundButtonV4("elementText")
//contentDesc
_aTintableCompoundButtonV4("elementContentDesc")
//resourceId
_aTintableCompoundButtonV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aTintableCompoundButtonV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aTintableCompoundButtonV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aTintableCompoundButtonV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aTintableCompoundButtonV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aTintableCompoundButtonV4("elementText"));
_click(_aTintableCompoundButtonV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aTintableCompoundButtonV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aTintableCompoundButtonV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewPagerV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewPagerV4 in the UI)

//text
_aViewPagerV4("elementText")
//contentDesc
_aViewPagerV4("elementContentDesc")
//resourceId
_aViewPagerV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewPagerV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewPagerV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewPagerV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewPagerV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewPagerV4("elementText"));
_click(_aViewPagerV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewPagerV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewPagerV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aMenuCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMenuCompatV4 in the UI)

//text
_aMenuCompatV4("elementText")
//contentDesc
_aMenuCompatV4("elementContentDesc")
//resourceId
_aMenuCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aMenuCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMenuCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMenuCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMenuCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMenuCompatV4("elementText"));
_click(_aMenuCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMenuCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aMenuCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aMenuItemCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMenuItemCompatV4 in the UI)

//text
_aMenuItemCompatV4("elementText")
//contentDesc
_aMenuItemCompatV4("elementContentDesc")
//resourceId
_aMenuItemCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aMenuItemCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMenuItemCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMenuItemCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMenuItemCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMenuItemCompatV4("elementText"));
_click(_aMenuItemCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMenuItemCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aMenuItemCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aScrollingViewV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aScrollingViewV4 in the UI)

//text
_aScrollingViewV4("elementText")
//contentDesc
_aScrollingViewV4("elementContentDesc")
//resourceId
_aScrollingViewV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aScrollingViewV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aScrollingViewV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aScrollingViewV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aScrollingViewV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aScrollingViewV4("elementText"));
_click(_aScrollingViewV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aScrollingViewV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aScrollingViewV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatApi24V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatApi24V4 in the UI)

//text
_aViewCompatApi24V4("elementText")
//contentDesc
_aViewCompatApi24V4("elementContentDesc")
//resourceId
_aViewCompatApi24V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatApi24V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatApi24V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatApi24V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatApi24V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatApi24V4("elementText"));
_click(_aViewCompatApi24V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatApi24V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatApi24V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatBaseV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatBaseV4 in the UI)

//text
_aViewCompatBaseV4("elementText")
//contentDesc
_aViewCompatBaseV4("elementContentDesc")
//resourceId
_aViewCompatBaseV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatBaseV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatBaseV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatBaseV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatBaseV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatBaseV4("elementText"));
_click(_aViewCompatBaseV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatBaseV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatBaseV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatJBV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatJBV4 in the UI)

//text
_aViewCompatJBV4("elementText")
//contentDesc
_aViewCompatJBV4("elementContentDesc")
//resourceId
_aViewCompatJBV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatJBV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatJBV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatJBV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatJBV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatJBV4("elementText"));
_click(_aViewCompatJBV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatJBV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatJBV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatJellybeanMr1V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatJellybeanMr1V4 in the UI)

//text
_aViewCompatJellybeanMr1V4("elementText")
//contentDesc
_aViewCompatJellybeanMr1V4("elementContentDesc")
//resourceId
_aViewCompatJellybeanMr1V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatJellybeanMr1V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatJellybeanMr1V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatJellybeanMr1V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatJellybeanMr1V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatJellybeanMr1V4("elementText"));
_click(_aViewCompatJellybeanMr1V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatJellybeanMr1V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatJellybeanMr1V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatJellybeanMr2V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatJellybeanMr2V4 in the UI)

//text
_aViewCompatJellybeanMr2V4("elementText")
//contentDesc
_aViewCompatJellybeanMr2V4("elementContentDesc")
//resourceId
_aViewCompatJellybeanMr2V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatJellybeanMr2V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatJellybeanMr2V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatJellybeanMr2V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatJellybeanMr2V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatJellybeanMr2V4("elementText"));
_click(_aViewCompatJellybeanMr2V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatJellybeanMr2V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatJellybeanMr2V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatKitKatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatKitKatV4 in the UI)

//text
_aViewCompatKitKatV4("elementText")
//contentDesc
_aViewCompatKitKatV4("elementContentDesc")
//resourceId
_aViewCompatKitKatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatKitKatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatKitKatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatKitKatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatKitKatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatKitKatV4("elementText"));
_click(_aViewCompatKitKatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatKitKatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatKitKatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatLollipopV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatLollipopV4 in the UI)

//text
_aViewCompatLollipopV4("elementText")
//contentDesc
_aViewCompatLollipopV4("elementContentDesc")
//resourceId
_aViewCompatLollipopV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatLollipopV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatLollipopV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatLollipopV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatLollipopV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatLollipopV4("elementText"));
_click(_aViewCompatLollipopV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatLollipopV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatLollipopV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatMarshmallowV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatMarshmallowV4 in the UI)

//text
_aViewCompatMarshmallowV4("elementText")
//contentDesc
_aViewCompatMarshmallowV4("elementContentDesc")
//resourceId
_aViewCompatMarshmallowV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatMarshmallowV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatMarshmallowV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatMarshmallowV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatMarshmallowV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatMarshmallowV4("elementText"));
_click(_aViewCompatMarshmallowV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatMarshmallowV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatMarshmallowV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewGroupCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewGroupCompatV4 in the UI)

//text
_aViewGroupCompatV4("elementText")
//contentDesc
_aViewGroupCompatV4("elementContentDesc")
//resourceId
_aViewGroupCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewGroupCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewGroupCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewGroupCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewGroupCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewGroupCompatV4("elementText"));
_click(_aViewGroupCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewGroupCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewGroupCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewGroupCompatJellybeanMR2V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewGroupCompatJellybeanMR2V4 in the UI)

//text
_aViewGroupCompatJellybeanMR2V4("elementText")
//contentDesc
_aViewGroupCompatJellybeanMR2V4("elementContentDesc")
//resourceId
_aViewGroupCompatJellybeanMR2V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewGroupCompatJellybeanMR2V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewGroupCompatJellybeanMR2V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewGroupCompatJellybeanMR2V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewGroupCompatJellybeanMR2V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewGroupCompatJellybeanMR2V4("elementText"));
_click(_aViewGroupCompatJellybeanMR2V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewGroupCompatJellybeanMR2V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewGroupCompatJellybeanMR2V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewGroupCompatLollipopV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewGroupCompatLollipopV4 in the UI)

//text
_aViewGroupCompatLollipopV4("elementText")
//contentDesc
_aViewGroupCompatLollipopV4("elementContentDesc")
//resourceId
_aViewGroupCompatLollipopV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewGroupCompatLollipopV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewGroupCompatLollipopV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewGroupCompatLollipopV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewGroupCompatLollipopV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewGroupCompatLollipopV4("elementText"));
_click(_aViewGroupCompatLollipopV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewGroupCompatLollipopV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewGroupCompatLollipopV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewParentCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewParentCompatV4 in the UI)

//text
_aViewParentCompatV4("elementText")
//contentDesc
_aViewParentCompatV4("elementContentDesc")
//resourceId
_aViewParentCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewParentCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewParentCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewParentCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewParentCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewParentCompatV4("elementText"));
_click(_aViewParentCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewParentCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewParentCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewParentCompatKitKatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewParentCompatKitKatV4 in the UI)

//text
_aViewParentCompatKitKatV4("elementText")
//contentDesc
_aViewParentCompatKitKatV4("elementContentDesc")
//resourceId
_aViewParentCompatKitKatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewParentCompatKitKatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewParentCompatKitKatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewParentCompatKitKatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewParentCompatKitKatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewParentCompatKitKatV4("elementText"));
_click(_aViewParentCompatKitKatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewParentCompatKitKatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewParentCompatKitKatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewParentCompatLollipopV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewParentCompatLollipopV4 in the UI)

//text
_aViewParentCompatLollipopV4("elementText")
//contentDesc
_aViewParentCompatLollipopV4("elementContentDesc")
//resourceId
_aViewParentCompatLollipopV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewParentCompatLollipopV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewParentCompatLollipopV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewParentCompatLollipopV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewParentCompatLollipopV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewParentCompatLollipopV4("elementText"));
_click(_aViewParentCompatLollipopV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewParentCompatLollipopV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewParentCompatLollipopV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aWindowCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aWindowCompatV4 in the UI)

//text
_aWindowCompatV4("elementText")
//contentDesc
_aWindowCompatV4("elementContentDesc")
//resourceId
_aWindowCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aWindowCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aWindowCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aWindowCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aWindowCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aWindowCompatV4("elementText"));
_click(_aWindowCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aWindowCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aWindowCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewCompatV4 in the UI)

//text
_aViewCompatV4("elementText")
//contentDesc
_aViewCompatV4("elementContentDesc")
//resourceId
_aViewCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewCompatV4("elementText"));
_click(_aViewCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewConfigurationCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewConfigurationCompatV4 in the UI)

//text
_aViewConfigurationCompatV4("elementText")
//contentDesc
_aViewConfigurationCompatV4("elementContentDesc")
//resourceId
_aViewConfigurationCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewConfigurationCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewConfigurationCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewConfigurationCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewConfigurationCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewConfigurationCompatV4("elementText"));
_click(_aViewConfigurationCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewConfigurationCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewConfigurationCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewPropertyAnimatorCompatV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewPropertyAnimatorCompatV4 in the UI)

//text
_aViewPropertyAnimatorCompatV4("elementText")
//contentDesc
_aViewPropertyAnimatorCompatV4("elementContentDesc")
//resourceId
_aViewPropertyAnimatorCompatV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewPropertyAnimatorCompatV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewPropertyAnimatorCompatV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewPropertyAnimatorCompatV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewPropertyAnimatorCompatV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewPropertyAnimatorCompatV4("elementText"));
_click(_aViewPropertyAnimatorCompatV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewPropertyAnimatorCompatV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewPropertyAnimatorCompatV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewPropertyAnimatorCompatJBV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewPropertyAnimatorCompatJBV4 in the UI)

//text
_aViewPropertyAnimatorCompatJBV4("elementText")
//contentDesc
_aViewPropertyAnimatorCompatJBV4("elementContentDesc")
//resourceId
_aViewPropertyAnimatorCompatJBV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewPropertyAnimatorCompatJBV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewPropertyAnimatorCompatJBV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewPropertyAnimatorCompatJBV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewPropertyAnimatorCompatJBV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewPropertyAnimatorCompatJBV4("elementText"));
_click(_aViewPropertyAnimatorCompatJBV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewPropertyAnimatorCompatJBV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewPropertyAnimatorCompatJBV4("elementText")));

_aViewPropertyAnimatorCompatJellybeanMr2V4

Section titled “_aViewPropertyAnimatorCompatJellybeanMr2V4”
Since
Mobile Engine 7.5.0
API

_aViewPropertyAnimatorCompatJellybeanMr2V4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewPropertyAnimatorCompatJellybeanMr2V4 in the UI)

//text
_aViewPropertyAnimatorCompatJellybeanMr2V4("elementText")
//contentDesc
_aViewPropertyAnimatorCompatJellybeanMr2V4("elementContentDesc")
//resourceId
_aViewPropertyAnimatorCompatJellybeanMr2V4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewPropertyAnimatorCompatJellybeanMr2V4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewPropertyAnimatorCompatJellybeanMr2V4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewPropertyAnimatorCompatJellybeanMr2V4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewPropertyAnimatorCompatJellybeanMr2V4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewPropertyAnimatorCompatJellybeanMr2V4("elementText"));
_click(_aViewPropertyAnimatorCompatJellybeanMr2V4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewPropertyAnimatorCompatJellybeanMr2V4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewPropertyAnimatorCompatJellybeanMr2V4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewPropertyAnimatorCompatKKV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewPropertyAnimatorCompatKKV4 in the UI)

//text
_aViewPropertyAnimatorCompatKKV4("elementText")
//contentDesc
_aViewPropertyAnimatorCompatKKV4("elementContentDesc")
//resourceId
_aViewPropertyAnimatorCompatKKV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewPropertyAnimatorCompatKKV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewPropertyAnimatorCompatKKV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewPropertyAnimatorCompatKKV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewPropertyAnimatorCompatKKV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewPropertyAnimatorCompatKKV4("elementText"));
_click(_aViewPropertyAnimatorCompatKKV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewPropertyAnimatorCompatKKV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewPropertyAnimatorCompatKKV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aViewPropertyAnimatorCompatLollipopV4(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aViewPropertyAnimatorCompatLollipopV4 in the UI)

//text
_aViewPropertyAnimatorCompatLollipopV4("elementText")
//contentDesc
_aViewPropertyAnimatorCompatLollipopV4("elementContentDesc")
//resourceId
_aViewPropertyAnimatorCompatLollipopV4("com.sahipro.SahiTestApp:id/elementId")
//index
_aViewPropertyAnimatorCompatLollipopV4(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aViewPropertyAnimatorCompatLollipopV4("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aViewPropertyAnimatorCompatLollipopV4(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aViewPropertyAnimatorCompatLollipopV4("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aViewPropertyAnimatorCompatLollipopV4("elementText"));
_click(_aViewPropertyAnimatorCompatLollipopV4("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aViewPropertyAnimatorCompatLollipopV4("elementText"));
// Check if element is visible
_assert(_isVisible(_aViewPropertyAnimatorCompatLollipopV4("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionModeV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionModeV7 in the UI)

//text
_aActionModeV7("elementText")
//contentDesc
_aActionModeV7("elementContentDesc")
//resourceId
_aActionModeV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionModeV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionModeV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionModeV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionModeV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionModeV7("elementText"));
_click(_aActionModeV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionModeV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionModeV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCollapsibleActionViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCollapsibleActionViewV7 in the UI)

//text
_aCollapsibleActionViewV7("elementText")
//contentDesc
_aCollapsibleActionViewV7("elementContentDesc")
//resourceId
_aCollapsibleActionViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCollapsibleActionViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCollapsibleActionViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCollapsibleActionViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCollapsibleActionViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCollapsibleActionViewV7("elementText"));
_click(_aCollapsibleActionViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCollapsibleActionViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCollapsibleActionViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionMenuItemV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionMenuItemV7 in the UI)

//text
_aActionMenuItemV7("elementText")
//contentDesc
_aActionMenuItemV7("elementContentDesc")
//resourceId
_aActionMenuItemV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionMenuItemV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionMenuItemV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionMenuItemV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionMenuItemV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionMenuItemV7("elementText"));
_click(_aActionMenuItemV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionMenuItemV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionMenuItemV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionMenuItemViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionMenuItemViewV7 in the UI)

//text
_aActionMenuItemViewV7("elementText")
//contentDesc
_aActionMenuItemViewV7("elementContentDesc")
//resourceId
_aActionMenuItemViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionMenuItemViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionMenuItemViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionMenuItemViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionMenuItemViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionMenuItemViewV7("elementText"));
_click(_aActionMenuItemViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionMenuItemViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionMenuItemViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aBaseMenuPresenterV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aBaseMenuPresenterV7 in the UI)

//text
_aBaseMenuPresenterV7("elementText")
//contentDesc
_aBaseMenuPresenterV7("elementContentDesc")
//resourceId
_aBaseMenuPresenterV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aBaseMenuPresenterV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aBaseMenuPresenterV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aBaseMenuPresenterV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aBaseMenuPresenterV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aBaseMenuPresenterV7("elementText"));
_click(_aBaseMenuPresenterV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aBaseMenuPresenterV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aBaseMenuPresenterV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aBaseMenuWrapperV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aBaseMenuWrapperV7 in the UI)

//text
_aBaseMenuWrapperV7("elementText")
//contentDesc
_aBaseMenuWrapperV7("elementContentDesc")
//resourceId
_aBaseMenuWrapperV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aBaseMenuWrapperV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aBaseMenuWrapperV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aBaseMenuWrapperV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aBaseMenuWrapperV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aBaseMenuWrapperV7("elementText"));
_click(_aBaseMenuWrapperV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aBaseMenuWrapperV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aBaseMenuWrapperV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aBaseWrapperV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aBaseWrapperV7 in the UI)

//text
_aBaseWrapperV7("elementText")
//contentDesc
_aBaseWrapperV7("elementContentDesc")
//resourceId
_aBaseWrapperV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aBaseWrapperV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aBaseWrapperV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aBaseWrapperV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aBaseWrapperV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aBaseWrapperV7("elementText"));
_click(_aBaseWrapperV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aBaseWrapperV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aBaseWrapperV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCascadingMenuPopupV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCascadingMenuPopupV7 in the UI)

//text
_aCascadingMenuPopupV7("elementText")
//contentDesc
_aCascadingMenuPopupV7("elementContentDesc")
//resourceId
_aCascadingMenuPopupV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCascadingMenuPopupV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCascadingMenuPopupV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCascadingMenuPopupV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCascadingMenuPopupV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCascadingMenuPopupV7("elementText"));
_click(_aCascadingMenuPopupV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCascadingMenuPopupV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCascadingMenuPopupV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aExpandedMenuViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aExpandedMenuViewV7 in the UI)

//text
_aExpandedMenuViewV7("elementText")
//contentDesc
_aExpandedMenuViewV7("elementContentDesc")
//resourceId
_aExpandedMenuViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aExpandedMenuViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aExpandedMenuViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aExpandedMenuViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aExpandedMenuViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aExpandedMenuViewV7("elementText"));
_click(_aExpandedMenuViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aExpandedMenuViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aExpandedMenuViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aListMenuItemViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListMenuItemViewV7 in the UI)

//text
_aListMenuItemViewV7("elementText")
//contentDesc
_aListMenuItemViewV7("elementContentDesc")
//resourceId
_aListMenuItemViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aListMenuItemViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListMenuItemViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListMenuItemViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListMenuItemViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListMenuItemViewV7("elementText"));
_click(_aListMenuItemViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListMenuItemViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aListMenuItemViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aMenuAdapterV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMenuAdapterV7 in the UI)

//text
_aMenuAdapterV7("elementText")
//contentDesc
_aMenuAdapterV7("elementContentDesc")
//resourceId
_aMenuAdapterV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aMenuAdapterV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMenuAdapterV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMenuAdapterV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMenuAdapterV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMenuAdapterV7("elementText"));
_click(_aMenuAdapterV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMenuAdapterV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aMenuAdapterV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aMenuPopupV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMenuPopupV7 in the UI)

//text
_aMenuPopupV7("elementText")
//contentDesc
_aMenuPopupV7("elementContentDesc")
//resourceId
_aMenuPopupV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aMenuPopupV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMenuPopupV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMenuPopupV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMenuPopupV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMenuPopupV7("elementText"));
_click(_aMenuPopupV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMenuPopupV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aMenuPopupV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aMenuViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMenuViewV7 in the UI)

//text
_aMenuViewV7("elementText")
//contentDesc
_aMenuViewV7("elementContentDesc")
//resourceId
_aMenuViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aMenuViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMenuViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMenuViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMenuViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMenuViewV7("elementText"));
_click(_aMenuViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMenuViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aMenuViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAbsActionBarViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAbsActionBarViewV7 in the UI)

//text
_aAbsActionBarViewV7("elementText")
//contentDesc
_aAbsActionBarViewV7("elementContentDesc")
//resourceId
_aAbsActionBarViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAbsActionBarViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAbsActionBarViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAbsActionBarViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAbsActionBarViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAbsActionBarViewV7("elementText"));
_click(_aAbsActionBarViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAbsActionBarViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAbsActionBarViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionBarContainerV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionBarContainerV7 in the UI)

//text
_aActionBarContainerV7("elementText")
//contentDesc
_aActionBarContainerV7("elementContentDesc")
//resourceId
_aActionBarContainerV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionBarContainerV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionBarContainerV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionBarContainerV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionBarContainerV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionBarContainerV7("elementText"));
_click(_aActionBarContainerV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionBarContainerV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionBarContainerV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionBarContextViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionBarContextViewV7 in the UI)

//text
_aActionBarContextViewV7("elementText")
//contentDesc
_aActionBarContextViewV7("elementContentDesc")
//resourceId
_aActionBarContextViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionBarContextViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionBarContextViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionBarContextViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionBarContextViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionBarContextViewV7("elementText"));
_click(_aActionBarContextViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionBarContextViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionBarContextViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionBarOverlayLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionBarOverlayLayoutV7 in the UI)

//text
_aActionBarOverlayLayoutV7("elementText")
//contentDesc
_aActionBarOverlayLayoutV7("elementContentDesc")
//resourceId
_aActionBarOverlayLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionBarOverlayLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionBarOverlayLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionBarOverlayLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionBarOverlayLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionBarOverlayLayoutV7("elementText"));
_click(_aActionBarOverlayLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionBarOverlayLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionBarOverlayLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActionMenuViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActionMenuViewV7 in the UI)

//text
_aActionMenuViewV7("elementText")
//contentDesc
_aActionMenuViewV7("elementContentDesc")
//resourceId
_aActionMenuViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActionMenuViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActionMenuViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActionMenuViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActionMenuViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActionMenuViewV7("elementText"));
_click(_aActionMenuViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActionMenuViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActionMenuViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActivityChooserModelV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActivityChooserModelV7 in the UI)

//text
_aActivityChooserModelV7("elementText")
//contentDesc
_aActivityChooserModelV7("elementContentDesc")
//resourceId
_aActivityChooserModelV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActivityChooserModelV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActivityChooserModelV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActivityChooserModelV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActivityChooserModelV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActivityChooserModelV7("elementText"));
_click(_aActivityChooserModelV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActivityChooserModelV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActivityChooserModelV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aActivityChooserViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aActivityChooserViewV7 in the UI)

//text
_aActivityChooserViewV7("elementText")
//contentDesc
_aActivityChooserViewV7("elementContentDesc")
//resourceId
_aActivityChooserViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aActivityChooserViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aActivityChooserViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aActivityChooserViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aActivityChooserViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aActivityChooserViewV7("elementText"));
_click(_aActivityChooserViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aActivityChooserViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aActivityChooserViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAlertDialogLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAlertDialogLayoutV7 in the UI)

//text
_aAlertDialogLayoutV7("elementText")
//contentDesc
_aAlertDialogLayoutV7("elementContentDesc")
//resourceId
_aAlertDialogLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAlertDialogLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAlertDialogLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAlertDialogLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAlertDialogLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAlertDialogLayoutV7("elementText"));
_click(_aAlertDialogLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAlertDialogLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAlertDialogLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatAutoCompleteTextViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatAutoCompleteTextViewV7 in the UI)

//text
_aAppCompatAutoCompleteTextViewV7("elementText")
//contentDesc
_aAppCompatAutoCompleteTextViewV7("elementContentDesc")
//resourceId
_aAppCompatAutoCompleteTextViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatAutoCompleteTextViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatAutoCompleteTextViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatAutoCompleteTextViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatAutoCompleteTextViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatAutoCompleteTextViewV7("elementText"));
_click(_aAppCompatAutoCompleteTextViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatAutoCompleteTextViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatAutoCompleteTextViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatButtonV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatButtonV7 in the UI)

//text
_aAppCompatButtonV7("elementText")
//contentDesc
_aAppCompatButtonV7("elementContentDesc")
//resourceId
_aAppCompatButtonV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatButtonV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatButtonV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatButtonV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatButtonV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatButtonV7("elementText"));
_click(_aAppCompatButtonV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatButtonV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatButtonV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatCheckBoxV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatCheckBoxV7 in the UI)

//text
_aAppCompatCheckBoxV7("elementText")
//contentDesc
_aAppCompatCheckBoxV7("elementContentDesc")
//resourceId
_aAppCompatCheckBoxV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatCheckBoxV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatCheckBoxV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatCheckBoxV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatCheckBoxV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatCheckBoxV7("elementText"));
_click(_aAppCompatCheckBoxV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatCheckBoxV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatCheckBoxV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatCheckedTextViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatCheckedTextViewV7 in the UI)

//text
_aAppCompatCheckedTextViewV7("elementText")
//contentDesc
_aAppCompatCheckedTextViewV7("elementContentDesc")
//resourceId
_aAppCompatCheckedTextViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatCheckedTextViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatCheckedTextViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatCheckedTextViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatCheckedTextViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatCheckedTextViewV7("elementText"));
_click(_aAppCompatCheckedTextViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatCheckedTextViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatCheckedTextViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatEditTextV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatEditTextV7 in the UI)

//text
_aAppCompatEditTextV7("elementText")
//contentDesc
_aAppCompatEditTextV7("elementContentDesc")
//resourceId
_aAppCompatEditTextV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatEditTextV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatEditTextV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatEditTextV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatEditTextV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatEditTextV7("elementText"));
_click(_aAppCompatEditTextV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatEditTextV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatEditTextV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatImageButtonV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatImageButtonV7 in the UI)

//text
_aAppCompatImageButtonV7("elementText")
//contentDesc
_aAppCompatImageButtonV7("elementContentDesc")
//resourceId
_aAppCompatImageButtonV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatImageButtonV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatImageButtonV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatImageButtonV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatImageButtonV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatImageButtonV7("elementText"));
_click(_aAppCompatImageButtonV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatImageButtonV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatImageButtonV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatImageViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatImageViewV7 in the UI)

//text
_aAppCompatImageViewV7("elementText")
//contentDesc
_aAppCompatImageViewV7("elementContentDesc")
//resourceId
_aAppCompatImageViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatImageViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatImageViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatImageViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatImageViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatImageViewV7("elementText"));
_click(_aAppCompatImageViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatImageViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatImageViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatMultiAutoCompleteTextViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatMultiAutoCompleteTextViewV7 in the UI)

//text
_aAppCompatMultiAutoCompleteTextViewV7("elementText")
//contentDesc
_aAppCompatMultiAutoCompleteTextViewV7("elementContentDesc")
//resourceId
_aAppCompatMultiAutoCompleteTextViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatMultiAutoCompleteTextViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatMultiAutoCompleteTextViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatMultiAutoCompleteTextViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatMultiAutoCompleteTextViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatMultiAutoCompleteTextViewV7("elementText"));
_click(_aAppCompatMultiAutoCompleteTextViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatMultiAutoCompleteTextViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatMultiAutoCompleteTextViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatPopupWindowV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatPopupWindowV7 in the UI)

//text
_aAppCompatPopupWindowV7("elementText")
//contentDesc
_aAppCompatPopupWindowV7("elementContentDesc")
//resourceId
_aAppCompatPopupWindowV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatPopupWindowV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatPopupWindowV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatPopupWindowV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatPopupWindowV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatPopupWindowV7("elementText"));
_click(_aAppCompatPopupWindowV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatPopupWindowV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatPopupWindowV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatRadioButtonV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatRadioButtonV7 in the UI)

//text
_aAppCompatRadioButtonV7("elementText")
//contentDesc
_aAppCompatRadioButtonV7("elementContentDesc")
//resourceId
_aAppCompatRadioButtonV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatRadioButtonV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatRadioButtonV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatRadioButtonV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatRadioButtonV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatRadioButtonV7("elementText"));
_click(_aAppCompatRadioButtonV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatRadioButtonV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatRadioButtonV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatRatingBarV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatRatingBarV7 in the UI)

//text
_aAppCompatRatingBarV7("elementText")
//contentDesc
_aAppCompatRatingBarV7("elementContentDesc")
//resourceId
_aAppCompatRatingBarV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatRatingBarV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatRatingBarV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatRatingBarV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatRatingBarV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatRatingBarV7("elementText"));
_click(_aAppCompatRatingBarV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatRatingBarV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatRatingBarV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatSeekBarV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatSeekBarV7 in the UI)

//text
_aAppCompatSeekBarV7("elementText")
//contentDesc
_aAppCompatSeekBarV7("elementContentDesc")
//resourceId
_aAppCompatSeekBarV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatSeekBarV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatSeekBarV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatSeekBarV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatSeekBarV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatSeekBarV7("elementText"));
_click(_aAppCompatSeekBarV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatSeekBarV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatSeekBarV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatSpinnerV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatSpinnerV7 in the UI)

//text
_aAppCompatSpinnerV7("elementText")
//contentDesc
_aAppCompatSpinnerV7("elementContentDesc")
//resourceId
_aAppCompatSpinnerV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatSpinnerV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatSpinnerV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatSpinnerV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatSpinnerV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatSpinnerV7("elementText"));
_click(_aAppCompatSpinnerV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatSpinnerV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatSpinnerV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aAppCompatTextViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aAppCompatTextViewV7 in the UI)

//text
_aAppCompatTextViewV7("elementText")
//contentDesc
_aAppCompatTextViewV7("elementContentDesc")
//resourceId
_aAppCompatTextViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aAppCompatTextViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aAppCompatTextViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aAppCompatTextViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aAppCompatTextViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aAppCompatTextViewV7("elementText"));
_click(_aAppCompatTextViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aAppCompatTextViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aAppCompatTextViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aButtonBarLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aButtonBarLayoutV7 in the UI)

//text
_aButtonBarLayoutV7("elementText")
//contentDesc
_aButtonBarLayoutV7("elementContentDesc")
//resourceId
_aButtonBarLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aButtonBarLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aButtonBarLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aButtonBarLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aButtonBarLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aButtonBarLayoutV7("elementText"));
_click(_aButtonBarLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aButtonBarLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aButtonBarLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aContentFrameLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aContentFrameLayoutV7 in the UI)

//text
_aContentFrameLayoutV7("elementText")
//contentDesc
_aContentFrameLayoutV7("elementContentDesc")
//resourceId
_aContentFrameLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aContentFrameLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aContentFrameLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aContentFrameLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aContentFrameLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aContentFrameLayoutV7("elementText"));
_click(_aContentFrameLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aContentFrameLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aContentFrameLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aDecorToolbarV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDecorToolbarV7 in the UI)

//text
_aDecorToolbarV7("elementText")
//contentDesc
_aDecorToolbarV7("elementContentDesc")
//resourceId
_aDecorToolbarV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aDecorToolbarV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDecorToolbarV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDecorToolbarV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDecorToolbarV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDecorToolbarV7("elementText"));
_click(_aDecorToolbarV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDecorToolbarV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aDecorToolbarV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aDefaultItemAnimatorV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDefaultItemAnimatorV7 in the UI)

//text
_aDefaultItemAnimatorV7("elementText")
//contentDesc
_aDefaultItemAnimatorV7("elementContentDesc")
//resourceId
_aDefaultItemAnimatorV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aDefaultItemAnimatorV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDefaultItemAnimatorV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDefaultItemAnimatorV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDefaultItemAnimatorV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDefaultItemAnimatorV7("elementText"));
_click(_aDefaultItemAnimatorV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDefaultItemAnimatorV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aDefaultItemAnimatorV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aDialogTitleV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDialogTitleV7 in the UI)

//text
_aDialogTitleV7("elementText")
//contentDesc
_aDialogTitleV7("elementContentDesc")
//resourceId
_aDialogTitleV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aDialogTitleV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDialogTitleV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDialogTitleV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDialogTitleV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDialogTitleV7("elementText"));
_click(_aDialogTitleV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDialogTitleV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aDialogTitleV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aDropDownListViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aDropDownListViewV7 in the UI)

//text
_aDropDownListViewV7("elementText")
//contentDesc
_aDropDownListViewV7("elementContentDesc")
//resourceId
_aDropDownListViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aDropDownListViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aDropDownListViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aDropDownListViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aDropDownListViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aDropDownListViewV7("elementText"));
_click(_aDropDownListViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aDropDownListViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aDropDownListViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aFitWindowsFrameLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFitWindowsFrameLayoutV7 in the UI)

//text
_aFitWindowsFrameLayoutV7("elementText")
//contentDesc
_aFitWindowsFrameLayoutV7("elementContentDesc")
//resourceId
_aFitWindowsFrameLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aFitWindowsFrameLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFitWindowsFrameLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFitWindowsFrameLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFitWindowsFrameLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFitWindowsFrameLayoutV7("elementText"));
_click(_aFitWindowsFrameLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFitWindowsFrameLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aFitWindowsFrameLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aFitWindowsLinearLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFitWindowsLinearLayoutV7 in the UI)

//text
_aFitWindowsLinearLayoutV7("elementText")
//contentDesc
_aFitWindowsLinearLayoutV7("elementContentDesc")
//resourceId
_aFitWindowsLinearLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aFitWindowsLinearLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFitWindowsLinearLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFitWindowsLinearLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFitWindowsLinearLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFitWindowsLinearLayoutV7("elementText"));
_click(_aFitWindowsLinearLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFitWindowsLinearLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aFitWindowsLinearLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aFitWindowsViewGroupV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aFitWindowsViewGroupV7 in the UI)

//text
_aFitWindowsViewGroupV7("elementText")
//contentDesc
_aFitWindowsViewGroupV7("elementContentDesc")
//resourceId
_aFitWindowsViewGroupV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aFitWindowsViewGroupV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aFitWindowsViewGroupV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aFitWindowsViewGroupV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aFitWindowsViewGroupV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aFitWindowsViewGroupV7("elementText"));
_click(_aFitWindowsViewGroupV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aFitWindowsViewGroupV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aFitWindowsViewGroupV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aLinearLayoutCompatV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aLinearLayoutCompatV7 in the UI)

//text
_aLinearLayoutCompatV7("elementText")
//contentDesc
_aLinearLayoutCompatV7("elementContentDesc")
//resourceId
_aLinearLayoutCompatV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aLinearLayoutCompatV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aLinearLayoutCompatV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aLinearLayoutCompatV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aLinearLayoutCompatV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aLinearLayoutCompatV7("elementText"));
_click(_aLinearLayoutCompatV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aLinearLayoutCompatV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aLinearLayoutCompatV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aListPopupWindowV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListPopupWindowV7 in the UI)

//text
_aListPopupWindowV7("elementText")
//contentDesc
_aListPopupWindowV7("elementContentDesc")
//resourceId
_aListPopupWindowV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aListPopupWindowV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListPopupWindowV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListPopupWindowV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListPopupWindowV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListPopupWindowV7("elementText"));
_click(_aListPopupWindowV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListPopupWindowV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aListPopupWindowV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aListViewCompatV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aListViewCompatV7 in the UI)

//text
_aListViewCompatV7("elementText")
//contentDesc
_aListViewCompatV7("elementContentDesc")
//resourceId
_aListViewCompatV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aListViewCompatV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aListViewCompatV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aListViewCompatV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aListViewCompatV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aListViewCompatV7("elementText"));
_click(_aListViewCompatV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aListViewCompatV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aListViewCompatV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aMenuPopupWindowV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aMenuPopupWindowV7 in the UI)

//text
_aMenuPopupWindowV7("elementText")
//contentDesc
_aMenuPopupWindowV7("elementContentDesc")
//resourceId
_aMenuPopupWindowV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aMenuPopupWindowV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aMenuPopupWindowV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aMenuPopupWindowV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aMenuPopupWindowV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aMenuPopupWindowV7("elementText"));
_click(_aMenuPopupWindowV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aMenuPopupWindowV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aMenuPopupWindowV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aPopupMenuV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aPopupMenuV7 in the UI)

//text
_aPopupMenuV7("elementText")
//contentDesc
_aPopupMenuV7("elementContentDesc")
//resourceId
_aPopupMenuV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aPopupMenuV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aPopupMenuV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aPopupMenuV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aPopupMenuV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aPopupMenuV7("elementText"));
_click(_aPopupMenuV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aPopupMenuV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aPopupMenuV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aScrollingTabContainerViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aScrollingTabContainerViewV7 in the UI)

//text
_aScrollingTabContainerViewV7("elementText")
//contentDesc
_aScrollingTabContainerViewV7("elementContentDesc")
//resourceId
_aScrollingTabContainerViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aScrollingTabContainerViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aScrollingTabContainerViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aScrollingTabContainerViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aScrollingTabContainerViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aScrollingTabContainerViewV7("elementText"));
_click(_aScrollingTabContainerViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aScrollingTabContainerViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aScrollingTabContainerViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aSearchViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSearchViewV7 in the UI)

//text
_aSearchViewV7("elementText")
//contentDesc
_aSearchViewV7("elementContentDesc")
//resourceId
_aSearchViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aSearchViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSearchViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSearchViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSearchViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSearchViewV7("elementText"));
_click(_aSearchViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSearchViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aSearchViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aSwitchCompatV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSwitchCompatV7 in the UI)

//text
_aSwitchCompatV7("elementText")
//contentDesc
_aSwitchCompatV7("elementContentDesc")
//resourceId
_aSwitchCompatV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aSwitchCompatV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSwitchCompatV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSwitchCompatV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSwitchCompatV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSwitchCompatV7("elementText"));
_click(_aSwitchCompatV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSwitchCompatV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aSwitchCompatV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aToolbarV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aToolbarV7 in the UI)

//text
_aToolbarV7("elementText")
//contentDesc
_aToolbarV7("elementContentDesc")
//resourceId
_aToolbarV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aToolbarV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aToolbarV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aToolbarV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aToolbarV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aToolbarV7("elementText"));
_click(_aToolbarV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aToolbarV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aToolbarV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCardViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCardViewV7 in the UI)

//text
_aCardViewV7("elementText")
//contentDesc
_aCardViewV7("elementContentDesc")
//resourceId
_aCardViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCardViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCardViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCardViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCardViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCardViewV7("elementText"));
_click(_aCardViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCardViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCardViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCardViewApi21V7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCardViewApi21V7 in the UI)

//text
_aCardViewApi21V7("elementText")
//contentDesc
_aCardViewApi21V7("elementContentDesc")
//resourceId
_aCardViewApi21V7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCardViewApi21V7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCardViewApi21V7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCardViewApi21V7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCardViewApi21V7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCardViewApi21V7("elementText"));
_click(_aCardViewApi21V7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCardViewApi21V7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCardViewApi21V7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCardViewDelegateV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCardViewDelegateV7 in the UI)

//text
_aCardViewDelegateV7("elementText")
//contentDesc
_aCardViewDelegateV7("elementContentDesc")
//resourceId
_aCardViewDelegateV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCardViewDelegateV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCardViewDelegateV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCardViewDelegateV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCardViewDelegateV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCardViewDelegateV7("elementText"));
_click(_aCardViewDelegateV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCardViewDelegateV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCardViewDelegateV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCardViewImplV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCardViewImplV7 in the UI)

//text
_aCardViewImplV7("elementText")
//contentDesc
_aCardViewImplV7("elementContentDesc")
//resourceId
_aCardViewImplV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCardViewImplV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCardViewImplV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCardViewImplV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCardViewImplV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCardViewImplV7("elementText"));
_click(_aCardViewImplV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCardViewImplV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCardViewImplV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aCardViewJellybeanMr1V7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aCardViewJellybeanMr1V7 in the UI)

//text
_aCardViewJellybeanMr1V7("elementText")
//contentDesc
_aCardViewJellybeanMr1V7("elementContentDesc")
//resourceId
_aCardViewJellybeanMr1V7("com.sahipro.SahiTestApp:id/elementId")
//index
_aCardViewJellybeanMr1V7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aCardViewJellybeanMr1V7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aCardViewJellybeanMr1V7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aCardViewJellybeanMr1V7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aCardViewJellybeanMr1V7("elementText"));
_click(_aCardViewJellybeanMr1V7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aCardViewJellybeanMr1V7("elementText"));
// Check if element is visible
_assert(_isVisible(_aCardViewJellybeanMr1V7("elementText")));
Since
Mobile Engine 7.5.0
API

_aGridLayoutV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aGridLayoutV7 in the UI)

//text
_aGridLayoutV7("elementText")
//contentDesc
_aGridLayoutV7("elementContentDesc")
//resourceId
_aGridLayoutV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aGridLayoutV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aGridLayoutV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aGridLayoutV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aGridLayoutV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aGridLayoutV7("elementText"));
_click(_aGridLayoutV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aGridLayoutV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aGridLayoutV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aRecyclerViewV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aRecyclerViewV7 in the UI)

//text
_aRecyclerViewV7("elementText")
//contentDesc
_aRecyclerViewV7("elementContentDesc")
//resourceId
_aRecyclerViewV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aRecyclerViewV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aRecyclerViewV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aRecyclerViewV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aRecyclerViewV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aRecyclerViewV7("elementText"));
_click(_aRecyclerViewV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aRecyclerViewV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aRecyclerViewV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aLinearSmoothScrollerV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aLinearSmoothScrollerV7 in the UI)

//text
_aLinearSmoothScrollerV7("elementText")
//contentDesc
_aLinearSmoothScrollerV7("elementContentDesc")
//resourceId
_aLinearSmoothScrollerV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aLinearSmoothScrollerV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aLinearSmoothScrollerV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aLinearSmoothScrollerV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aLinearSmoothScrollerV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aLinearSmoothScrollerV7("elementText"));
_click(_aLinearSmoothScrollerV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aLinearSmoothScrollerV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aLinearSmoothScrollerV7("elementText")));
Since
Mobile Engine 7.5.0
API

_aSpaceV7(identifier [, relation1 [, relation2 ...]])

Identifiers

text, contentDesc, resourceId, index

Valid Accessors and alternatives: (Assume this is the 6th aSpaceV7 in the UI)

//text
_aSpaceV7("elementText")
//contentDesc
_aSpaceV7("elementContentDesc")
//resourceId
_aSpaceV7("com.sahipro.SahiTestApp:id/elementId")
//index
_aSpaceV7(5)
Relations

Relational APIs _in, _near, _leftOf, _rightOf, _under, _above can be used.

// with _in
_aSpaceV7("elementText", _in(_aScrollView("Container")))
// index with 2 relational APIs, _rightOf and _under
_aSpaceV7(0, _rightOf(_button("Name")), _under(_label("Action")))
// with regular expression and relations
_aSpaceV7("/elname/", _rightOf(_button("Name")), _under(_label("Action")))
Relations Sample
Actions

Default event recorded is

Example usage:

_click(_aSpaceV7("elementText"));
_click(_aSpaceV7("/Name/[1]", _rightOf(_label("Name"))));
Assertions

Example assertions:

// Check if element exists
_assertExists(_aSpaceV7("elementText"));
// Check if element is visible
_assert(_isVisible(_aSpaceV7("elementText")));