Method GetPlatformType
Retrieves the platform type name and returns it in a string. Use this method only after you had executed the Launch or SetPlatformType method at least once per executionUsage
Function GetPlatformType(
Boolean Report [Optional]
)
Parameters
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
The type of the platform
Example
VBScript
Application("Demo").GetPlatformType(True)
JavaScript
Application("Demo").GetPlatformType(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 Platform type and save it to variable