Device Info (FR)
Perfecto Command
mobile:device:info
Purpose
Retrieves the specified device property and inserts its value into a defined variable. Use the Property parameter to specify the device property to retrieve.
Parameters
Name |
Type |
Possible Values |
Description |
---|---|---|---|
property |
String |
manufacturer | model | phoneNumber | deviceId | resolution | |
Device property to retrieve. Only one property is retrieved in a single call. |
Return Value
String value of the retrieved property
Exceptions
None
Examples
Java sample
Map<String, Object> params = new HashMap<>();
params.put("property", "model");
String model = (String) driver.executeScript("mobile:device:info", params);
C# code snippet
Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("property", "model");
String model = (String) driver.ExecuteScript("mobile:device:info", pars);