Forum Discussion

DurgaPrasad's avatar
DurgaPrasad
Occasional Contributor
12 years ago

Object Does not Exist Exception having screen or button exist.

Hi,   The following is the exception "YOU ARE TRYING TO CALL THE  WinformsObject METHOD OR PROPERTY OF THE "WinformsObject("App")" object that does not exist.           Actually i am using WaitW...
  • TanyaYatskovska's avatar
    12 years ago

    Hi Durga,


     


    Modify your code in the following way:


     


    w = Sys.WaitProcess("Spectrum",5000).WaitWinFormsObject("Spectrum",5000);


    if (w.Exists)


    {


      w1=w.WinFormsObject("panelControl1").WinFormsObject("xtbcMenus");


    }


     


    BTW, the time in the WaitWinFormsObject method is measured in milliseconds. 500 means 0.5 sec. It's a very short period for a timeout.