 | ReportScreenshot Method (Element, Boolean) |
Logs a message containing a screenshot of a specified element.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static void Screenshot(
Element target,
bool highlightWithinSurroundingArea
)
Public Shared Sub Screenshot (
target As Element,
highlightWithinSurroundingArea As Boolean
)
Parameters
- target
- Type: Ranorex.CoreElement
The element to make the screenshot from. - highlightWithinSurroundingArea
- Type: SystemBoolean
If set to true the screenshot will not only
contain the element, but also its surrounding area and will highlight the element
within it.
RemarksScreenshots will not show up in the console logger.
See Also