platform, name, scriptless, script-less, scripted, step, view, stepview

Method GetPlatformName

Retrieves the platform name and returns it in a string. Use this method only after you had executed the Launch or SetPlatformName method at least once per execution

Android Platform Names: "Phone", "Tablet", "Other"

iOS Platform Names: "iPhone", "iPad", "iPod", "TV", "Other"

Windows Platform Names: "Win2000", "WinXp", "WinServer2003", "WinServer2003R2", "WinVista", "WinServer2008", "WinServer2008R2", "Win7", "WinServer2012", "Win8", "WinServer2012R2", "Win8.1", "WinServer2016", "Win10"

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function GetPlatformName()

Step

GetPlatformName

Parameters

This method does not take parameters

Returns

The name of the platform

Example

VBScript

Application("Demo").GetPlatformName()

JavaScript

Application("Demo").GetPlatformName();

Comment

Get Platform name and save it to variable

Variable

platformName

GetPlatformName

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227