screenshot

Returns a screenshot for this result, annotated with the bounds of the associated element.

NOTE: A screenshot may not be available if no element is associated with the result.

NOTE: A screenshot is only available for results that have a result type of ResultType.ERROR or ResultType.WARNING.