| || |
How to declare multiple parent
Iím working on the web base application created on Sharepoint, which consist of the various dialog Boxes and Selection panel screens. We open these dialog boxes and selection panel screens directly from main browser window as well as we open these dialog boxes and selection panel screens by clicking on the navigation buttons on the dialog boxes and selection panel screens.
When we open any dialog box in main browser window and record its window declaration its parent is Browser. And when we try to open the same dialog box through another dialog box and record its window declaration it shows its parent is Dialog box thorough which we have open it.
Browser --> DialogBox2 [parent Browser]
Browser --> DailogBox1 [parent Browser] -->DailogBox2 [parent DialogBox1]
[Note: Parent changes as navigation/hierarchy changes, DialogBox1 and DialogBox2 can be interchanged]
So, my problem is that I have to run the test case on the dialog box which I can access through both the ways which I have discussed in above paragraph. And every time I have to open this dialog box by different methods, some time directly in main browser window and some time through another dialog boxes and its parent get changed when hierarchy changes.
So, is there any way through which we can declare multiple
parents for the same window in frame file.
How to get a parent value dynamically at run time in a .inc file.
I have tried (~ActiveApp , ~ and ../) options but in my case it didnít work due to setactive error.
Below are the declaration of the dialog boxes..
[-] WINDOW DialogBox A_DialogBox
[ ] tag "A -- Webpage Dialog"
[ ] parent Browser
[-] WINDOW BrowserChild A_BrowserChild
[ ] tag "A"
[ ] parent A_DialogBox
[-] window DialogBox B_DialogBox
[ ] tag "B -- Webpage Dialog"
[ ] parent Browser
[-] WINDOW BrowserChild B_BrowserChild
[ ] tag "B"
[ ] parent B_DialogBox
Please suggest accordingly.
Re: How to declare multiple parent
You can extend the BrowserChild class for particular window and then have 2 different declarations..