Click or drag to resize

LogScreenshot Method

Makes a screenshot and posts it to the test log.

Namespace:  SmartBear.TestLeft
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
public void Screenshot(
	IVisualObject objectforPicture,
	string text = "",
	string additional = ""
)

Parameters

objectforPicture
Type: SmartBear.TestLeft.TestObjectsIVisualObject
The IObject whose image should be posted to the log.
text (Optional)
Type: SystemString
The message text.
additional (Optional)
Type: SystemString
The text to display in the log's Additional Info. It can be plain or HTML-formatted text. In order for TestLeft to recognize the additional text as HTML code, the text must start with a tag.
See Also