Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
SEO Metadata
titleSeeTest Automation- Get Connected Devices

This command will return a string of all devices currently available in the device list (on ready mode).

GetConnectedDevices()

Supported_os
SupportIOStrue
SupportAndroidtrue
SupportWPtrue
SupportBBtrue

Description

This command will return a string of all devices currently available in the device list (on ready mode).

Parameters

No parameters.

Info
Note: Command will not return name of devices in offline mode.

Usage

Check the status of available devices on the device list.

Step 1: Add GetConnectedDevices() after initially setting a device.

Step 2: When script will run, we will get the string of all connected devices available on the devices list that are on ready mode.


Code Examples

Code Block
languagejava
titleJava Example
linenumberstrue
String str1 = client.getConnectedDevices();
Code Block
languagec#
titleC# Example
linenumberstrue
collapsetrue
string str1 = client.GetConnectedDevices();
Code Block
languagevb
titleVBScript Example
linenumberstrue
collapsetrue
str0 = client.GetConnectedDevices (  )
Report
Code Block
languagepy
titlePython Example
linenumberstrue
collapsetrue
var1 = self.client.getConnectedDevices()
Code Block
languageperl
titlePerl Example
linenumberstrue
collapsetrue
my $str1 = $client->getConnectedDevices();