Class RemoteNetworkConnection
- java.lang.Object
-
- org.openqa.selenium.remote.mobile.RemoteNetworkConnection
-
- All Implemented Interfaces:
NetworkConnection
public class RemoteNetworkConnection extends java.lang.Object implements NetworkConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openqa.selenium.mobile.NetworkConnection
NetworkConnection.ConnectionType
-
-
Constructor Summary
Constructors Constructor Description RemoteNetworkConnection(ExecuteMethod executeMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkConnection.ConnectionType
getNetworkConnection()
Query the driver for the Airplane Mode setting stateNetworkConnection.ConnectionType
setNetworkConnection(NetworkConnection.ConnectionType type)
Set the Connection type Not all connection type combinations are valid for an individual type of device and the remote endpoint will make a best effort to set the type as requested
-
-
-
Constructor Detail
-
RemoteNetworkConnection
public RemoteNetworkConnection(ExecuteMethod executeMethod)
-
-
Method Detail
-
getNetworkConnection
public NetworkConnection.ConnectionType getNetworkConnection()
Description copied from interface:NetworkConnection
Query the driver for the Airplane Mode setting state- Specified by:
getNetworkConnection
in interfaceNetworkConnection
- Returns:
NetworkConnection.ConnectionType
indicating if the device is in Airplane Mode
-
setNetworkConnection
public NetworkConnection.ConnectionType setNetworkConnection(NetworkConnection.ConnectionType type)
Description copied from interface:NetworkConnection
Set the Connection type Not all connection type combinations are valid for an individual type of device and the remote endpoint will make a best effort to set the type as requested- Specified by:
setNetworkConnection
in interfaceNetworkConnection
- Parameters:
type
- ConnectionType of what the network connection should be- Returns:
NetworkConnection.ConnectionType
of what the device's network connection is
-
-