handlingException = true;
try {
createScreenshot("_exc");
Optional<Alert> alert = getAlert(driver);
if (alert.isPresent()) {
<BUG>log.error("dismissing unexpected alert with text: ", alert.get().getText());
alert.get().dismiss();</BUG>
}
} catch (Throwable screenshotThrowable) {
<BUG>log.error("unable to create exception screenshot", screenshotThrowable);
</BUG>
} finally {

handlingException = true;
try {
createScreenshot("_exc");
Optional<Alert> alert = getAlert(driver);
if (alert.isPresent()) {
log.error("[Screenshot]: dismissing unexpected alert with text: ",
alert.get().getText());
alert.get().dismiss();
}
} catch (Throwable screenshotThrowable) {
log.error("[Screenshot]: Unable to create exception screenshot", screenshotThrowable);
} finally {
