Skip to content

Instantly share code, notes, and snippets.

View Emeritus-DarranKelinske's full-sized avatar

Darran Kelinske Emeritus-DarranKelinske

View GitHub Profile
@Emeritus-DarranKelinske
Emeritus-DarranKelinske / gist:3ed580732dc36cebdb7bc9059e4a5efe
Created January 26, 2017 00:19
idling resource that waits for child count to be greater than 0
public QuestionOptionIdlingResource(ViewInteraction viewInteraction, long timeout) {
this.timeout = timeout;
startTime = System.currentTimeMillis();
viewInteraction.check(new ViewAssertion() {
@Override
public void check(View view, NoMatchingViewException noViewFoundException) {
questionView = (LinearLayout) view;
}
});