Share this page

TryLockDeviceByInfo Method
Checks whether a device is available in the UFT Mobile lab and, if so, locks it so that only the current UFT Developer test can perform actions on it.
Remarks
If this method fails, the test continues without an exception.

C# Syntax

    public static bool TryLockDeviceByInfo(
       IDeviceInfo deviceInfo,
       out IDevice device
    )

Parameters

deviceInfo
  An interface (IDeviceInfo) containing information about the device to lock.
device
  If the method returns True, this parameter contains the locked IDevice. If the method returns False, the parameter contains a null value.

Return Value

True if the locking operation succeeded, otherwise false.

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: