SeeTestAutomation - getNetworkConnection
info
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
GetNetworkConnection(Connection)
Description
The command gives the ability to getting the network connection for a device.
Execute any of the following connection type:
airplane_mode, wifi, mobile_data, bluetooth.
info
Note: Bluetooth is only supported on Android 5.* and above.
Parameters
- airplane_mode
- wifi
- **mobile_data
** - bluetooth
Usage
client.setDevice("adb:GT-I9505");
if(client.getNetworkConnection("airplane_mode")){
// If statement
}
Code Examples
Java Example
if(client.getNetworkConnection("airplane_mode")){
// If statement
}
C# Example Expand source
if(client.GetNetworkConnection("airplane_mode"))
{
// If statement
}
VBScript Example Expand source
If client.GetNetworkConnection("airplane_mode") Then
'If statement
Python Example Expand source
if(self.client.getNetworkConnection("airplane_mode")):
# If statement
pass
Perl Example Expand source
if($client->getNetworkConnection("airplane_mode")){
# If statement
}