Hot to get active dialog

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
ggaspari
Posts: 26
Joined: Tue Apr 10, 2012 8:40 am

Hot to get active dialog

Post by ggaspari » Wed May 09, 2012 9:02 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Hot to get active dialog

Post by Support Team » Wed May 09, 2012 9:23 am

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
.
Image

ggaspari
Posts: 26
Joined: Tue Apr 10, 2012 8:40 am

Re: Hot to get active dialog

Post by ggaspari » Wed May 09, 2012 1:21 pm

great!!
thanx