| 程序包 | 说明 |
|---|---|
| org.openqa.selenium.mobile | |
| org.openqa.selenium.remote.mobile |
| 类和说明 |
|---|
| NetworkConnection.ConnectionType
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.
|
| 类和说明 |
|---|
| NetworkConnection
Control a device's network connection Example usage:
NetworkConnection mobileDriver = (NetworkConnection) driver;
if (mobileDriver.getNetworkConnection() !
|
| NetworkConnection.ConnectionType
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.
|