This project is read-only.

Modal Window with Modal Window

Oct 17, 2008 at 8:43 PM
We have a modal window (call it 'A') that opens a modal window (call it 'A-Child').  To give a context of why this is needed, the first modal window ('A') asks the user to review some data and if they don't like it and say they want to cancel the activity a second modal window ('A-Child') opens to ask them to specify a reason for canceling. 

We make a ModalWindow("A") call and it succeeeds but the second ModalWindow('A-Child') call fails to attach to 'A-Child'.  When the exception is thrown it doesn't list the 'A-Child' window and does list the 'A' window indendented under the parent.  'A-Child' is open and we loop multiple times before giving up.  We can make calls to do things to control on the 'A-Child', e.g., click a button, in spite of the ModalWindow ("A-Child") call not working.  Is there a limit on attaching to second level modal windows or some other way to approach this?

At a minimum we'd at least like to get the 'A-Child' window handle because we use this to grab a bitmap of the window to record as part of our test evidence.



Oct 18, 2008 at 7:01 PM
Are you making the second modalwindow method call on the first modal window object?
Oct 19, 2008 at 3:17 PM
Yes I believe we are making the second ModalWindow call to get 'A-Child' on the first modal window 'A'.  Should it be made on the main / primary window?
Oct 20, 2008 at 8:21 AM
Can you do a Desktop.Instance.LogStructure() and send me the output?
Warning: Having too many windows open would cause LogStructure to take a lot of time.