Forum Discussion

TESTUS's avatar
TESTUS
Contributor
11 years ago
Solved

w.VisibleOnScreen does not exist

Hello SmartBear Support, I am using the attached code snippet from your [support site]. Sub Test   i = 0   Set p = TestedApps.myApp.Run   Do ...
  • simon_glet's avatar
    11 years ago
    Hi Oliver,



    From what you describe, I would not sure  that p is well defined when the loop starts.



    Just before the WaitWindow loop and after the Set p = TestApps.myApp.Run I would add



    Set p = WaitProcess(processName,20000). The timeout value can be very hight as the function returns as soon as it gets a grip on the process.



    It's worth a try ;-)



    Sincerely

    Simon Glet