General Web component methods
Methods
Method | Description |
DestroyTooltip | Deletes a tool tip from a control to which it has been assigned. |
Detach | Un-matches this control from the target that it is matched to. This method is used when an automation might need to force a control to un-match before calling the Rematch or RematchChildren method to re-match controls. Rematch or RematchChildren should only be used when there is an issue that prevents matching from working correctly. |
Disable | Disables the control so the user cannot interact with it. |
Enable | Enables the control for user interaction, if it was previously disabled. |
Focus | Causes the control to receive the focus and executes the code specified by the GotFocus event. |
GetClones | Returns a collection of cloned objects. Use the GetClones method in combination with a ListLoop component to iterate over the list of cloned objects to extract individual list items. |
GetEvent | Initiates downstream logic pending the occurrence of a particular event. Click the Name parameter in the GetEvent design block to view a list of events applicable for the control. Select the event, and then create a proxy from the GetEvent result. |
Hide | Removes the control from view. Avoid using this method when automating applications because some applications and controls must be on an active desktop and visible. |
HideTooltip | Causes the tool tip for the control to be hidden from view. |
IsKeyAssigned | Returns True if a key has been set for the control. This method applies when the UseKeys property is True, indicating that cloned controls are created for multiple target instances. For more information, see Cloned controls and the UseKeys property. |
PerformClick | Simulates a click by causing the Click event to fire. |
PerformDoubleClick | Simulates a double-click by causing the DoubleClick event to fire. |
RaiseEvent | Fires a specified event on the control. HtmlEvent evt. |
Rematch | Refreshes matching on the cell control and all controls under the cell. If the control is currently matched, Studio detaches (unmatches) the control and children before attempting to rematch. If the control is currently unmatched, you can only call Rematch if the parent is matched. Boolean. |
RematchChildren | Refreshes matching on all objects under the cell control. Set the detach property to True to unmatch all targets before attempting to rematch. Boolean detach. |
RemoveFocus | Removes the focus from the control. |
ResetState | Reserved for .NET use. |
SetNextKey | Sets the key for the control when the UseKeys property is True, indicating that clones of this control can be created when multiple matching targets are found. For more information, see Cloned controls and the UseKeys property. |
Show | Makes the control visible after the Hide method has been called. See the UnmatchOnHidden property to understand how hiding an application changes control matching. |
ShowTooltip | Creates a tool tip for the control. There are five overloads of
this method (1, 2, 3, 5, 7 parameters). Parameters are String text, String title, ToolTipAnchorPosition anchorPosition, Color textColor, Color backgroundColor, Int32 maxWidth, and ToolTipIcon icon. |
WaitForCreate (2 methods) | Waits for the control to be created (matched), based on the
following parameters:
For more information, see WaitAll and WaitAny components. |
Previous topic General Web component properties Next topic General Web control events