I have an application under tests that uses each of its windows in two separate flavors: modal and MDI child. As an example, the "customer detail" window can be called
* independently through the menus, thus becoming a normal MDI child window of the main window frame
* or as a quick-reference modal window from a button on the invoice window, designed to be consulted once and discarded to return to the invoice
Those two windows have exactly the same structure but their Ranorex Paths differ from their root elements:
// MDI Window /form[@controlname='Main']/element[@controltypename='MdiClient']/form[@controlname='Customer'] //Modal window /form[@controlname='Customer']I'm using RxRep files that export to C# (not the recorder) and custom testing code. For lots of reasons I'd like to handle those two windows with the same CustomerWindow generated class, but I'm reluctant to try to hack Ranorex generated code for doing this.
Is there a "good" way to proceed?
Thanks in advance for any clue on this