Assume a scenario has a example table with 4 examples
Lets say the scenario fails for 2nd and 3rd example set.
The screenshot is taken only after the execution for the last example set. (And in the above case its of no use as the scenario passed with the last example set).
the screenshot should be taken everytime the scenario failes with a particular example set.