Forum Discussion

iamraj09's avatar
iamraj09
Contributor
10 years ago
Solved

How to check for existence of the Object .?

Hello Everyone,   Currently, I am performing a test where I need to check for the existence of the object .......depending on that I need to return the value.   One of the functions in the test c...
  • TanyaYatskovska's avatar
    10 years ago

    Hi iamraj09,

     

    You need to use the WaitWinFormsObjects to obtain the object you need to check:

    if(!Sys.Process("Central").WinFormsObject("MainForm").WinFormsObject("DockContainer", "", 1).WaitWinFormsObject("Devices", 5000).Exists)