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

C# Syntax

public static IDevice LockDeviceByInfo( 
   IDeviceInfo deviceInfo


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

Return Value

The locked device.