title: How to disable wi-fi on Android device in Appium?
body: <p>In our test case: I need to disable Wi-Fi at some specific point/action.</p>
  
  <p>I have verified:</p>
  
  <pre><code>driver[deviceIndex].setConnection(Connection.NONE);
  assertEquals(Connection.ALL, driver[deviceIndex].getConnection());
  </code></pre>
  
  <p>But it's not doing anything.</p>
  
  <p>My expectation is "turning OFF wi-fi" and keeping Mobile Data ON.</p>
  
  <p>Current code is doing no action.</p>