testIDDir.mkdirs();
assert testIDDir.isDirectory();
}
String filename = generateFileName(ofType);
File screenshotFile = new File(testIDDir, filename);
<BUG>Optional<Alert> alert = getAlert(driver);
if (alert.isPresent()) {
log.error("ChromeDriver screenshot({}) prevented by browser " +
</BUG>
"alert. Attempting Robot screenshot instead. " +

testIDDir.mkdirs();
assert testIDDir.isDirectory();
}
String filename = generateFileName(ofType);
File screenshotFile = new File(testIDDir, filename);
Optional<Alert> alert = getAlert(driver);
BufferedImage capture;
if (alert.isPresent()) {
log.error("[Screenshot]: ChromeDriver screenshot({}) prevented by browser " +
"alert. Attempting Robot screenshot instead. " +
