It seems the screenshot process is taking the default procedure (FOR_EACH_ACTION)
The optionalScreenshotPreference object is not being created as the function
private Optional<TakeScreenshots> classOverride() {
if (StepEventBus.getParallelEventBus().isBaseStepListenerRegistered()) {
Optional<Method> currentStepMethod = StepEventBus.getParallelEventBus().getBaseStepListener().getCurrentStepMethod();
if (currentStepMethod != null && currentStepMethod.isPresent()) {
return overriddenScreenshotPreferenceForClass(currentStepMethod.get().getDeclaringClass());
}
}
return Optional.empty();
}
is returning always Optional.empty();

That makes unnecessary screenshots are being saved

It seems the screenshot process is taking the default procedure (FOR_EACH_ACTION)
The optionalScreenshotPreference object is not being created as the function
is returning always Optional.empty();
That makes unnecessary screenshots are being saved