Ranorex.Form newForm = Ranorex.Host.Local.FindSingle<Ranorex.Form>(new RxPath("/form[@"automationid='myForm']"), new Duration(duration)); // I want to close any forms that may be opened from the main form newForm.Children.Close()
Ask general questions here.
3 posts • Page 1 of 1
Is it possible to close a child form from the parent object? For example, under the parent from there is a child form object. I want to call a .Close() on that child form but am not able to. The only way I have been able to close that form is to find it by itself and then i can call .Close() on it. I want to get the parent and close any child forms that might be opened.