Interface NetworkConnection


  • public interface NetworkConnection
    Control a device's network connection

    Example usage:

     NetworkConnection mobileDriver = (NetworkConnection) driver;
     if (mobileDriver.getNetworkConnection() != ConnectionType.AIRPLANE_MODE) {
       // enabling Airplane mode
       mobileDriver.setNetworkConnection(ConnectionType.AIRPLANE_MODE);
     }