Does anyone know of a 4Test function (supported or otherwise) that would dynamically return a list of all window instances that are defined within the include files for a given test file? The WindowIsDefined() command seems to imply that such a function already exists.
As an example using:
window JavaDialogBox ZoneSets
window JavaMainwin Zone
the result of running:
ListPrint( WindowList() )
would be a list of windows with "ZoneSets" and "Zone" as members.
don't think there is. WindowChildren is great for identifying controls within a page (as defined) versus GetChildren (as seen at runtime), but I share your desire for the former on window declares cause right now we must keep these up manually when adding web pages to our frame. guessing you are doing the same...
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR></BLOCKQUOTE>
One thing I've done in the past is read the .inc file from a script, a parse the file, looking for 'window DialogBox' or 'window MainWin', then compiling a list of the window identifiers. Once you have the line, you could do w = Trim (GetField (sLine, " ", 3)). This will pull the identifier from the line.