caperr takes 2 params: the number for which error screenshot to show and as the second one, the file extension. Previously caperr only showed the html screenshot but in some cases it's more informative to check the png