I am trying to capture a screenshot after any step failure in a called feature. I tried using
configure afterScenario = function(){ if (karate.info.errorMessage) driver.screenshot() }
for that but realized that the hooks don't work for the called feature files. Is there any other way to achieve this?