@Then("the CAPTCHA should be present")
public void checkCaptchaRequestPresent() {
if (!(app instanceof ICaptcha))
throw new RuntimeException(
"Application doesn't implement ICaptcha, can't run captcha scenarios");
ICaptcha captchaApp = (ICaptcha) app;
try {
assertThat(captchaApp.getCaptchaImage(), notNullValue());
} catch (NoSuchElementException nse) {
fail("Captcha image not found.");
}
}