Set network settings (FR)
Perfecto command
mobile:network.settings:set
Purpose
Sets the status of the specified network settings.
Parameters
| Name | Type | Possible Values | Description |
|---|---|---|---|
| wifi | String | enabled | disabled | Enable/disable the device WiFi. |
Return value
None
Exceptions
None
Examples
Copy
Java sample
Map<String, Object> pars = new HashMap<>();
pars.put("wifi", "enabled");
driver.executeScript("mobile:network.settings:set", pars);
Copy
C# sample
Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("wifi", "enabled");
driver.ExecuteScript("mobile:network.settings:set", pars);