JD - Forgot to add wait for ajax in a Then implementation