DurgaPrasad
12 years agoOccasional Contributor
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 WaitWinformsObject("form") function but it showing as the above exception. i had also tried to use refresh function Sys.Property("App").refresh(), as i found in the forum as solution but it failed.Also i cannot use Exist property as there are many objects like buttons,combo box,etc,. so,please provide any other solution.
Thanks and regards,
Durga.
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 WaitWinformsObject("form") function but it showing as the above exception. i had also tried to use refresh function Sys.Property("App").refresh(), as i found in the forum as solution but it failed.Also i cannot use Exist property as there are many objects like buttons,combo box,etc,. so,please provide any other solution.
Thanks and regards,
Durga.
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.