Vanish

This activity helps the user validate whether an image, elements, files, icons, or
applications have disappeared from the screen display.

Technical Reference

Accuracy

Accuracy: This parameter helps the user find the similarity between the images that need to be identified. The accuracy range starts from 0 and ends at 1. The highest accuracy achievable is 0.8. This parameter accepts values of the 'Double' data type.

FindImage: Indicates to find the image based on the accuracy provided. Choose from the drop down,
Normal – It searches for the image until the specified accuracy is met.

Dynamic - It searches for the image more than the specified accuracy range.

Boundary

Height: It gets automatically filled once the 'Image' has been selected. It indicates the 'Height' of the image snippet. If left blank, it will not be considered. This parameter accepts values of the 'Int32' data type.

 

You can also adjust the height of the image to be identified during runtime, increasing, or decreasing it.

 

This field will be automatically filled and required when 'Advanced Automation' is enabled.(Refer the Advanced Automation document.)

InBoundary: It gets automatically filled once the 'Image' has been selected. It indicates whether the image snippet is within the boundary or not. If left blank, it will not be considered. This parameter accepts values of the “Boolean” data type.

 

True: Indicates that the image snippet is within the boundary chosen.

 

False: Indicates that the image snippet is within the boundary chosen.

 

This field will be automatically filled and required when 'Advanced Automation' is enabled.(Click here to know about the boundary.)

Width: It gets automatically filled once the 'Image' has been selected. It indicates the “Width” of the image snippet. If left blank, it will not be considered. This parameter accepts values of the 'Int32' data type.

 

You can also adjust the width of the image to be identified during runtime, increasing, or decreasing it.

 

This field will be automatically filled and required when 'Advanced Automation' is enabled.(Refer the Advanced Automation document.)

X: It gets automatically filled once the 'Image' has been selected. It indicates the “horizontal position” of the image snippet from left side of the page. If left blank, it will not be considered. This parameter accepts values of the 'Int32' data type.

 

You can also adjust the range to be identified during runtime, increasing, or decreasing it.

 

This field will be automatically filled and required when 'Advanced Automation' is enabled.(Refer the Advanced Automation document.)

Y: It gets automatically filled once the 'Image' has been selected. It indicates the “Vertical position” of the image snippet from top of the page. If left blank, it will not be considered. This parameter accepts values of the 'Int32' data type.

 

You can also adjust the range to be identified during runtime, increasing, or decreasing it.

 

This field will be automatically filled and required when 'Advanced Automation' is enabled.(Refer the Advanced Automation document.)

Image

UseWindowTitle: It allows the user to perform actions only within the specified 'Window' title when the box is checked.

When this option is left unchecked, it will not be considered.

WaitTime: It enables the user to introduce a delay before initiating subsequent activities. The delay is specified in milliseconds.

 

By default, it is set to 10000 milliseconds. Leaving the option blank will result in no delay being applied.

WindowTitle: It gets automatically filled once the 'Image' has been captured within the application. It represents the 'title' of the application from which the image has been captured.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the "Boolean" value as "True" or "False."

 

True: Continue executing the workflow regardless of any errors thrown.

False: Halt the workflow if it encounters any errors.

None: If the option is left blank, the activity will, by default, behave as if "False" were chosen.

Version: It indicates the version of the feature being used.

Output

Result: It provides the ability to view the execution status of the activity. It returns values in "Boolean."

 

True: Indicates that the activity has been executed successfully without any errors.

False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

Represents mandatory fields to execute the workflow

Here's an example of how the “Vanish” function works in the workflow –

1.       Drag and drop the "Vanish" activity onto the designer pane and set it as the
“Start Node.

a.       Here I am checking whether the “snipped image” has vanished to proceed
execution.

b.       Double-click the activity.

c.       Here, choose the "Highlight image on screen" option.

d.       Snip the image once the timer goes off that you want to hold; in this case,
I am snipping the image from the “Sutherland” website.

e.       Once you have snipped the image, the image pixels will be stored in the
properties window.

 

2.       Now, navigating to the “Result” in the properties of the activity to declare a
variable to view the state of the activity.

i.      There are two ways to create a variable –

ii.       Method 1 – Click on the "Result" property within the "Vanish" activity and enter
the variable name. In this case, we are using "Image_Vanished." Then, press
"Ctrl+Q," which is a shortcut key to create a variable.

iii.      Method 2 - Click on the Variables pane and enter the name "Image_Vanished ".
Then, in the "Variable Types" column, select "Boolean" from the dropdown menu.

3.       Add a “Writeline” activity to view the output.

a.       Enter the text as “Image_Vanished.To String” on the text box.

b.       The “.ToString” is advised to use along with any other data types other than
string format. It converts any data type into string.

The workflow will execute and returns the value in “Boolean” format, if the image has
been vanished it will be returned as “True”.