You can add image verifications to your scripts to check if controls which are otherwise not recognizable exist in the UI
of the application under test. To add an image verification during the recording of a script, perform the following steps:
-
Begin recording.
-
Move the mouse cursor over the image that you want to verify and click
Ctrl + Alt.
Silk4NET asks you if you want to verify a property or an image.
-
Select
Create or Insert an Image Verification.
-
Perform one of the following steps:
- To create a new image verification in the image verification UI, select
New from the list box.
- To insert an existing image verification asset, select the image verification asset from the list box.
-
Click
OK.
- If you have chosen to create a new image verification, the image verification UI opens.
- If you have chosen to use an existing image verification, the image verification is added to your script. You can skip the
remaining steps in this topic.
-
To create a new image verification, click
Verify in the image verification UI.
-
Move the mouse cursor over the image in the AUT and click
CTRL+ALT.
The image verification UI displays the new image verification.
-
Click
OK.
The new image verification is added to the current project.
-
Continue recording.