Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jul 26, 2018 10:07

Perfecto Command

mobile:pwa:start

Purpose

For iOS devices, use this function at the beginning of a script, to ensure a known starting point for the user.

Limitation

Command is not supported for iPad in Landscape mode.

Parameters

NameTypePossible ValuesDescription
displayNameString
The PWA icon display name as it is displayed on the device screen.

Return Value

None

Exceptions

None

Examples

Java sample
//declare the Map for script parameters
Map<String, Object> params = new HashMap<>();
  
params.put("displayName", "mySite");
driver.executeScript("mobile:pwa:start", params);
C# sample
//declare the Map for script parameters
Dictionary<String, Object> pars = new Dictionary<String, Object>();
  
pars.Add("displayName", "mySite");
driver.ExecuteScript("mobile:pwa:start", pars);