The reason i am asking is, the following lines of code do not seem to work i.e. not really retrying the command. I was able to handle the popup (your example was spot on as that is one failure I was struggling with on how to handle). The code handles the popup but does not retry the failed step but moves on to the next step which obviously fails the test.
commandTracker.setException(null);
//request retry
commandTracker.setRetry(true);
is there any way I can check the command index like you showed with the stepExecutionTracker? Are the 2 onFailure methods work in tandem (which goes back to my original question above)?