LockDeviceByInfo Method
Obtains a device from the Digital Lab (UFT Mobile) lab by device information and locks it, so that only the current UFT Developer test can perform actions on it.
Remarks
If the lock operation fails, the LockDeviceByInfo method throws an exception.

C# Syntax

public static IDevice LockDeviceByInfo( 
   IDeviceInfo deviceInfo
)

Parameters

deviceInfo
An interface (IDeviceInfo) containing information about the device to lock.

Return Value

The locked device.