Skip to content

Instantly share code, notes, and snippets.

@modalsoul
Created August 30, 2012 15:42
Show Gist options
  • Select an option

  • Save modalsoul/3531257 to your computer and use it in GitHub Desktop.

Select an option

Save modalsoul/3531257 to your computer and use it in GitHub Desktop.
// Wait for it to start...
final Activity mCurrentActivity = getInstrumentation().waitForMonitorWithTimeout(monitor, 5);
runTestOnUiThread(new Runnable() {
@Override
public void run() {
View v = mCurrentActivity.findViewById(jp.modal.soul.uiTestSample.R.id.mainTextView);
v.performClick();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment