Package org.openqa.selenium.mobile
Class NetworkConnection.ConnectionType
java.lang.Object
org.openqa.selenium.mobile.NetworkConnection.ConnectionType
- Enclosing interface:
- NetworkConnection
ConnectionType is a bitmask to represent a device's network connection
Data | WIFI | Airplane 0 0 1 == 1 1 1 0 == 6 1 0 0 == 4 0 1 0 == 2 0 0 0 == 0
Giving "Data" the first bit positions in order to give room for the future of enabling specific types of data (Edge / 2G, 3G, 4G, LTE, etc) if the device allows it.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NetworkConnection.ConnectionType
static final NetworkConnection.ConnectionType
static final NetworkConnection.ConnectionType
static final NetworkConnection.ConnectionType
static final NetworkConnection.ConnectionType
-
Constructor Summary
ConstructorDescriptionConnectionType
(int mask) ConnectionType
(Boolean wifi, Boolean data, Boolean airplaneMode) -
Method Summary
-
Field Details
-
WIFI
-
DATA
-
AIRPLANE_MODE
-
ALL
-
NONE
-
-
Constructor Details
-
ConnectionType
-
ConnectionType
public ConnectionType(int mask)
-
-
Method Details