Method GetProperty (API)
Retrieves object property valueUsage
Function GetProperty(
String Name,
Boolean Report [Optional]
)
Parameters
Name
Type: String
Property Name (i.e. "Name")
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Property value
Example
VBScript
msgbox Server("API Server").Method("Method").GetProperty("Name", True);
JavaScript
alert(Server("API Server").Method("Method").GetProperty("Name", true));
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 API Server Method and save it to variable