6161import org .openqa .selenium .json .TypeToken ;
6262import org .openqa .selenium .logging .EventType ;
6363import org .openqa .selenium .logging .HasLogEvents ;
64- import org .openqa .selenium .mobile .NetworkConnection ;
6564import org .openqa .selenium .remote .CommandExecutor ;
6665import org .openqa .selenium .remote .FileDetector ;
6766import org .openqa .selenium .remote .RemoteWebDriver ;
7069import org .openqa .selenium .remote .http .ClientConfig ;
7170import org .openqa .selenium .remote .http .ConnectionFailedException ;
7271import org .openqa .selenium .remote .http .HttpClient ;
73- import org .openqa .selenium .remote .mobile .RemoteNetworkConnection ;
7472
7573/**
7674 * A {@link WebDriver} implementation that controls a Chromium browser running on the local machine.
@@ -87,7 +85,6 @@ public class ChromiumDriver extends RemoteWebDriver
8785 HasNetworkConditions ,
8886 HasPermissions ,
8987 LocationContext ,
90- NetworkConnection ,
9188 WebStorage {
9289
9390 public static final Predicate <String > IS_CHROMIUM_BROWSER =
@@ -97,7 +94,6 @@ public class ChromiumDriver extends RemoteWebDriver
9794 private final Capabilities capabilities ;
9895 private final RemoteLocationContext locationContext ;
9996 private final RemoteWebStorage webStorage ;
100- private final RemoteNetworkConnection networkConnection ;
10197 private final HasNetworkConditions networkConditions ;
10298 private final HasPermissions permissions ;
10399 private final HasLaunchApp launch ;
@@ -115,7 +111,6 @@ protected ChromiumDriver(
115111 locationContext = new RemoteLocationContext (getExecuteMethod ());
116112 webStorage = new RemoteWebStorage (getExecuteMethod ());
117113 permissions = new AddHasPermissions ().getImplementation (getCapabilities (), getExecuteMethod ());
118- networkConnection = new RemoteNetworkConnection (getExecuteMethod ());
119114 networkConditions =
120115 new AddHasNetworkConditions ().getImplementation (getCapabilities (), getExecuteMethod ());
121116 launch = new AddHasLaunchApp ().getImplementation (getCapabilities (), getExecuteMethod ());
@@ -317,19 +312,6 @@ public void setLocation(Location location) {
317312 locationContext .setLocation (location );
318313 }
319314
320- @ Override
321- @ Deprecated
322- public ConnectionType getNetworkConnection () {
323- return networkConnection .getNetworkConnection ();
324- }
325-
326- @ Override
327- @ Deprecated
328- public ConnectionType setNetworkConnection (ConnectionType type ) {
329- Require .nonNull ("Network Connection Type" , type );
330- return networkConnection .setNetworkConnection (type );
331- }
332-
333315 @ Override
334316 public void launchApp (String id ) {
335317 Require .nonNull ("Launch App ID" , id );
0 commit comments