Hi there,
Just wanted to know ... when I use Ranorex Spy and track a form object, the list of properties includes a 'Modal' property indicating if the form is modal or not.
How can I access this 'Modal' value in code?
Basically I want to search through all forms and close all modal forms.
Brad.
Modal property of form
Modal property of form
- Attachments
-
- Modal.png (4.39 KiB) Viewed 1100 times
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Modal property of form
Hello,
Could you please try to use the following code to achieve this:
Markus (T)
Could you please try to use the following code to achieve this:
var forms = Host.Local.Find<Form>("/form[@Modal='true']"); foreach (var myForm in forms) myForm.Close();Regards,
Markus (T)
Re: Modal property of form
This works perfectly. Thanks Markus 
