Page 1 of 1

Hot to get active dialog

Posted: Wed May 09, 2012 9:02 am
by ggaspari
Hi guys,
Is there a way to get the active dialog?
I have a main form with some options. For example,I click on "Contacts" button and a "Contact" dialog appears ( this is the active form right now)
I need to get that active dialog , it's title,etc
Is it possible and how?

thanx

Re: Hot to get active dialog

Posted: Wed May 09, 2012 9:23 am
by Support Team
Hi,
ggaspari wrote: I need to get that active dialog , it's title,etc
Is it possible and how?
This can be done using the following code:
Form myForm = "/form[@active='True']";
Report.Info(myForm.Title);
Regards,
Tobias
Ranorex Team

Re: Hot to get active dialog

Posted: Wed May 09, 2012 1:21 pm
by ggaspari
great!!
thanx