Click or drag to resize
Ranorex

ElementSnapshotCreateFromFile Method

Load a snapshot from a file and create an instance for it.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static ElementSnapshot CreateFromFile(
	string fileName
)

Parameters

fileName
Type: SystemString
The file (optionally including a path) to load the snapshot from.

Return Value

Type: ElementSnapshot
The newly created instance loaded from the specified file.
Exceptions
ExceptionCondition
RanorexExceptionIf loading the snapshot fails.
Remarks
The snapshot contained in the specified file can both be compressed or non-compressed.
See Also