Start PWA (FR)

Perfecto Command

mobile:pwa:start

Purpose

Launches a progressive web application (PWA) on the device. To use this command, the display name of the PWA icon is required.

Limitation

Command is not supported for Android devices and for iPad in Landscape mode.

Parameters

Name Type Possible Values Description
displayName String
The PWA icon display name as it is displayed on the device screen.

Return Value

None

Exceptions

None

Examples

Copy

Java sample

//declare the Map for script parameters
Map<String, Object> params = new HashMap<>();
  
params.put("displayName", "mySite");
driver.executeScript("mobile:pwa:start", params);
Copy

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);