Description
Pop-up a custom window with a text box or buttons at the mouse position or a UI Element.
Properties
Analyst
- Display Name: Optional friendly name used for debugging, validation, exception handling, and activity tracking.
- Description: Optional text for documentation purposes.
Common
-
Continue On Error: Continues the execution of the workflow even if an error occurs during the execution of the activity.
-
Delay Before: Delay time in milliseconds before the activity is executed. The default value is 250 milliseconds.
-
Delay After: Delay time in milliseconds after executing of the activity. The default value is 250 milliseconds.
-
Disable Log: Disables the logging functionality for this activity.
-
Disable Protocol: Disables the protocol functionality for this activity.
-
Exclude from Global Delay: Excludes this activity from the Global Delay functionality.
-
Timeout: Duration in milliseconds in which the activity tries to execute.
Input
- Buttons: A dictionary that is used for the generated view. Here the value is the content of the label and the key is an identifier for the button.
- Margin: Set the margin to change the distance to the UI element.
-
Target
- Artifact ID: If you have saved the selector value in an Artifact, you can reference it here. If the value is 0, it is not connected to any Artifact in the database.
- Automation Provider: The automation provider is usually automatically selected by the Smart Indicator depending on the application or browser you are automating. You can, however, change the automation provider manually while indicating by pressing Shift and Up or Down.
- Element: In case you already retrieved the UIElement in the process, you can simply insert it in this field.
- Selector Value: This is the field where the Smart Indicator will store your indication result. You can, of course, also adjust the selector value manually.
- Show Debug Borders: If true, a bounding rectangle is drawn around the element identified as the target.
- Window Title: Set the title of the window.
Options
- Button Result Key: The identifier defined in Buttons of the clicked button..
- Cancel Button Clicked: If the Cancel button is pressed, you will get a true otherwise false.
Example
This activity is dynamically filled by using a custom dictionary. So to use this activity, you first need to create a custom dictionary with the Create Dictionary activity. You can fill the created dictionary using Add or Replace Key Value Pair.
The values of the key-value pair will be taken to either label the input text boxes or the buttons of the pop-up window, depends on which DataTemplateType you have chosen (either Textbox or Button).
If you have chosen Button, the output will be a string with the button's label.
If you have chosen Textbox, the output will be a dictionary again, where the key is the one from your input dictionary and the value is what is put into the text box, so basically what you might want to work with. You can get the value by using Get Value and setting the dictionary as well as the key accordingly.