RobotActions

interface RobotActions

Robot actions for performing common view actions.

Extensions

Link copied to clipboard

Clear the text in the edit text associated with viewId.

Link copied to clipboard

Click the navigation up button in the current toolbar.

Link copied to clipboard
fun RobotActions.clickRadioButton(@IdRes radioGroupId: Int, buttonText: String)

Click on the radio button with buttonText within the radio group associated with radioGroupId.

Link copied to clipboard
fun RobotActions.clickRecyclerViewItem(@IdRes recyclerViewId: Int, position: Int)

Click on the item at position within the recycler view associated with recyclerViewId.

Link copied to clipboard

Click the action button on the currently displayed Snackbar.

Link copied to clipboard

Click on the end icon on the TextInputLayout associated with viewId.

Link copied to clipboard

Click on the error icon on the TextInputLayout associated with viewId.

Link copied to clipboard

Click on the start icon on the TextInputLayout associated with viewId.

Link copied to clipboard

Click on the view associated with viewId.

Link copied to clipboard

Close the drawer associated with drawerId.

Link copied to clipboard

Close the soft keyboard.

Link copied to clipboard

Enter text into the edit text associated with viewId.

Link copied to clipboard

Hide the password toggle button in the TextInputLayout associated with viewId.

Link copied to clipboard

Intercept the future intent and respond with Activity.RESULT_OK.

Link copied to clipboard

Long click on the end icon on the TextInputLayout associated with viewId.

Link copied to clipboard

Long click on the error icon on the TextInputLayout associated with viewId.

Link copied to clipboard

Long click on the start icon on the TextInputLayout associated with viewId.

Link copied to clipboard

Long-click on the view associated with viewId.

Link copied to clipboard
fun RobotActions.openDrawer(@IdRes drawerId: Int)

Open the drawer associated with drawerId.

Link copied to clipboard

Press the Android back button.

Link copied to clipboard

Press the action button on the keyboard.

Link copied to clipboard

Replace the text in the edit text associated with viewId with text.

Link copied to clipboard
fun RobotActions.selectCheckBox(@IdRes layoutId: Int, text: String)

Select the checkbox with text within the view group associated with layoutId.

Link copied to clipboard
fun RobotActions.selectNavigationBarItem(@IdRes navigationBarViewResId: Int, navItemTitle: String)

Select the navigation bar item with navItemTitle from the navigation bar view associated with navigationBarViewResId.

Link copied to clipboard
fun RobotActions.selectNavigationItem(@IdRes navigationViewResId: Int, @IdRes menuItemResId: Int)

Select the navigation item associated with menuItemResId from the navigation view associated with navigationViewResId.