Interface NetworkConnection

  • All Known Implementing Classes:
    ChromeDriver, ChromiumDriver, EdgeDriver, RemoteNetworkConnection

    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);
     }