How to turn off Data / Bluetooth / WIFI in IOS?

Hi All,

to automate my testcases for IOS, I need to turn off my wifi.
In android I am using below code and it is working perfectly as per my requirement.

await driver.toggleWiFi();
await driver.toggleData();

but in case of IOS none of the below functions are working:

await driver.toggleWiFi();
await driver.toggleData();
await driver.getNetworkConditions();
await driver.getNetworkConnection();
All of them are throwing below error in case of IOS:

TypeError: driver.<ABOVE_MENTIONED_FUNCTIONS> is not a function

Can someone please suggest how can I unblock myself in this case?

Thanks :slight_smile:

Hey @Harsha , did you find the solution to on and off the wifi in iOS?