How to set network condition in Emulator using Appium?
capability.setCapability(“networkSpeed”, “gprs”);
This capability will set the network condition which will be required for your test. For Ex. if you want to test your app in a cellular data condition you can mock it in the emulator with the help of given capability.
Note: This is not compatible for Real devices.