Method GetProperty
Retrieves object property valueUsage
Function GetProperty(
String Name,
Boolean Report [Optional]
)
Parameters
Name
Type: String
Property Name
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Property value
Example
Get property text from object DemoObject and show its result in message box
VBScript
msgbox Application("Demo").View("DemoView").Object("DemoObject").GetProperty("Text")
JavaScript
alert(Application("Demo").View("DemoView").Object("DemoObject").GetProperty("text"));
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Get Text property from object and save it to variable