It is possible to have even finer control on capturing screenshots in the tests. Using the takeScreenshot
method, you can instruct Thucydides to take a screenshot at any arbitrary point in the step irrespective of the screenshot level set using configuration or annotations.
Simply call Thucydides.takeScreenshot()
in the step methods whenever you want a screenshot to be captured.