Executes a verification asset and returns whether the verification passed. Throws an ObjectNotFoundException if the UI object to verify cannot be found.
result = TryVerifyAsset(verificationAsset)
result = TryVerifyAsset(verificationAsset)
Variable | Description |
---|---|
result | Returns whether the verification passed. True if the verification passed, false if not. Boolean. |
verificationAsset | The name of the .verification file. The file extension can be omitted. String. |
To execute a verification of the image asset myImageAsset, type the following code:
bool result = Silk4NET.TryVerifyAsset("myImageAsset");
Dim result As Boolean = Silk4NET.TryVerifyAsset("myImageAsset")