Hiya
I have an MDI application
I perform some menu select, that opens a new MDI child form
How can i detect and get a reference to the new MDI child form, without knowing its Title ?
Thanks
Detect a new window is opened
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Hi,
First of all I need to know how do you want to search for the form.
- using a RanoreXPath expression or
- some sort of FindChild methods?
In case of RanoreXPath based search you have to consider the following:
If you have only one MDI child form within your application there is no need to specify the title with RanoreXPath.
If you have two or more MDI child forms opened at the same time you should use the controlid within your RanoreXPath expression.
When using the FindChild or FindChildren method you'll have to distinguish between different MDI children manually in code.
RanoreXPath would be the more comfortable way to identify a MDI child form without knowing its title.
best regards,
Christoph
Ranorex Support Team
First of all I need to know how do you want to search for the form.
- using a RanoreXPath expression or
- some sort of FindChild methods?
In case of RanoreXPath based search you have to consider the following:
If you have only one MDI child form within your application there is no need to specify the title with RanoreXPath.
Code: Select all
/form[@title='MDI Windows Application']/container/form
Code: Select all
/form[@title='MDI Windows Application']/container/form[@controlid='65282']
RanoreXPath would be the more comfortable way to identify a MDI child form without knowing its title.
best regards,
Christoph
Ranorex Support Team