Added support for retrying page transitions and checking the
results; normal behaviour should be a bit faster since it doesn't
check every page element every time.