I want to test a menustrip on the GUI. I ran the code I attached, the program could not find the type of the control. I mean, it did find a control which text is "MenuStrip", but it didn't tell me it's a menustrip. Is there any problem? Thanks.
[STAThread]
static void Main()
{
Application.Start("C:\\000virginroot\\software\\source\\MiniTof\\MiniView\\bin\\Debug\\MiniView.exe");
Form form = Application.FindFormTitle("MiniView");
Control menuStrip = form.FindChildText("MenuStrip");
}