EngineResultExtensions Methods
Gets the image information of the image instance that was found in IEngineResult.
This method only works for IEngineResults that are returned from a successful image search. If that is not the case, it will return null. Example for usage:
t.Testee.FindImage(imgFolderName).GetImageInfo().FileName
public static ImageInfo GetImageInfo(
this IEngineResult info
)
Parameter | Description |
info | Type: IEngineResult
The object on which the extension is called and for which the image info will be returned. |
The ImageInfo object (which contains the FileName) of the image instance that was found by the image search. If search was not successful, null is returned.
Checks whether a specific image reference was found in an image search for multiple image references. Returns true if an image contained within the referenced imageReference was found.
public static bool WasImageReferenceFound(
this IEngineResult info,
ImageReference imageReference
)
Parameter | Description |
info | Type: IEngineResult
The object on which the extension is called and for which the image info will be returned. |
imageReference |
True if an image contained within the referenced imageReference was found, false otherwise.
If image search was not successful or info was not an image search at all, returns false as well.
Last modified 2yr ago