Verify If Visible
Verb: verifyVisible
Verifies whether a particular user interface control, identified by a selector, is visible or hidden.
Controls are, in the context of Windows, elements that allow the user to interact with an application. Controls can be buttons, data entry fields, menus and various other elements.
Syntax
verifyVisible [--forcerefresh(Boolean)] --selector(ControlSelectors) --id(String) --name(String) --innertext(String) --tagname(String) --xpath(String) --classname(String) --elementvalue(String) --controltype(Nullable<ControlTypes>) --index(Numeric) --control(Control) [--usetable(Boolean)] [--searchbycolumn(Boolean)] --searchcolumn(String) --searchvalue(String) --returncolumn(String) --row(Numeric) [--timeout(TimeSpan)] (Boolean)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--forcerefresh | Update Screen Cache | Optional | Boolean | When enabled, performs a new reading of the screen before executing the command to identify new elements and update the screen cache.
This identification is necessary for the command to work, in case there are any changes on the screen. |
--selector | Selector | Required | ControlSelectors | Type of selector used to identify user interface controls. The following options are available:
|
--id | Id | Only whenSelector is Id, IdAndName | Text | Id of the user interface control. |
--name | Name | Only whenSelector is Name, NameAndValue, IdAndName, TypeAndName | Text | Name of the user interface control. |
--innertext | Text | Only whenSelector is InnerTextAndTag | Text | Inner text of the user interface control. |
--tagname | Element Type | Only whenSelector is InnerTextAndTag | Text | Type of the element or tag.
Example: “button”, “text box”. |
--xpath | XPath | Only whenSelector is XPath | Text | XPath leading to the user interface control. |
--classname | Class | Only whenSelector is ClassAndValue, ClassName | Text | Class of the user interface control. |
--elementvalue | Element Value | Only whenSelector is ClassAndValue, NameAndValue | Text | Current value of the user interface control. |
--controltype | Type | Only whenSelector is TypeAndIndex, TypeAndName | ControlTypes | User interface control type. Options:
|
--index | Index | Only whenSelector is TypeAndIndex | Number | Index of the user interface control. |
--control | Control | Only whenSelector is Instance | Control | Control instance.
This variable is obtained using the command Search Control. |
--usetable | Element in Table | Optional | Boolean | Searches for an element within a table when enabled. |
--searchbycolumn | Search by Column | Optional | Boolean | When enabled, searches for the element by column, not by line. |
--searchcolumn | Column | Only whenElement in Table is True | Text | Name or number of the column to obtain the element. |
--searchvalue | Value | Only whenSearch by Column is True | Text | Value used to find the element in the table. |
--returncolumn | Return Column | Only whenSearch by Column is True | Text | Column that contains the control. |
--row | Row | Only whenSearch by Column is False | Number | Table row from which the element is obtained. |
--timeout | Timeout | Optional | Time Span, Number, Text | Maximum time limit to execute the command.
In case no value is defined for the timeout parameter, the execution uses the context timeout defined by the Set Timeout command. If that command is not used on the script, the default timeout is 5 seconds. |
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Result | Boolean | Returns "True" if the UI control is visible, or "False" if it is hidden. |
Remarks
It is possible to use the IBM RPA Studio's recorder to obtain the following information: