Property

Returns a window or control property value.

Use this statement instead of checkpoints when you want to continue running a script if the property value does not match an expected value or when you do not know the expected value until the script runs. You can also use this statement to verify values used in conditional statements.

Note: To return the value of a specified property in a PropertyMap, use the Property - PropertyMap statement.

Syntax

Property("PropertyName")

Arguments

Argument Description
PropertyName Name of the property to return the value from. You can view a list of all properties captured for the window or control when it was added to the application repository in the Properties dialog box. See Modifying window and control properties.

Supported objects

Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window

Return value

Value Description
Value Window or control property value.

Example

loginBtnProp = Window("Report a Bug").Button("Login").Property("Enabled")