I create an additional method:
public boolean exampleEdTxt1(){
try{
solo.getCurrentActivity().getResources().getDrawable(R.drawable.action_drw);
return true;
}
catch(AssertionError e){
return false;
}
}
But, when test is runing, code
assertTrue(exampleEdTxt1());
always returns success and code
assertFalse(exampleEdTxt1());
always returns fail.
How to check from Robotium that my png is present on the screen?