form.findChildText return null
form.findChildText return null
I run the program many times. sometime it can return the control, but sometime it just returns null. And at every first time when I open the VS2005 I run the program, it returns null.
You should consider that the tested app runs in an other process space. In some cases you should wait a little bit after finding the form. This is required if the controls in the tested app needs some time to be generated.
Please try following:
Best Regards
Gabor
Ranorex Team
Please try following:
Code: Select all
Form form = Application.FindFormTitle("MiniView");
Application.Sleep(200);
Control menuStrip = form.FindChildText("MenuStrip");
Gabor
Ranorex Team