public void displayTextView(View view) {
    TextView textview = ((TextView) findViewById(io.selendroid.testapp.R.id.visibleTextView));
    if (textview.isShown()) {
      textview.setVisibility(View.INVISIBLE);
    } else {
      textview.setVisibility(View.VISIBLE);
    }
  }
Demo project to verify selendroid actions.

@author ddary
selendroid-test-app/src/main/java/io/selendroid/testapp/HomeScreenActivity.java