Created
January 31, 2015 22:26
-
-
Save bootstraponline/3d9ccf603b8c01f877bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// id from R constant | |
String editTextUserInput = getTargetContext().getResources().getResourceName(R.id.editTextUserInput); | |
DroidDrivers.get().find(By.resourceId(editTextUserInput)); | |
// hard coded id (same as above) | |
DroidDrivers.get().find(By.resourceId("com.example.android.testing.espresso.BasicSample:id/editTextUserInput")); |
Did you call DroidDrivers#init
before calling get
?
@0x1mason yep, the full example is here. DroidDriver throws an exception if init isn't called.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both crash with: