lets take an example of i open a screen, click an image that opens a
popup window, do a selection on popup window that closes it, then click
next, select an image that opens another popup window, if you do a
browser.childBrowserCount() it reports 2 child windows as being
available when there is only 1, which means that we would have to keep
a count of how many childwindows we open during a test which is not
very feasible.
and access them as
browser.childBrowser(count);
we have always accessed them all as browser.childBrowser();
This is an issue in both IE6 and IE7,
i made a change to IE.java
so that when calls browser.childBrowser(); instead of returning childBrowser(0); it returns childBrowser(childBrowserCount()-1);
I cannot reproduce the problem. Please answer ALL of the following questions:
1. What operating system do you run (XP, Vista, Windows Server 2003, Windows Advanced Server 2003, Windows Server 2008, be specific),
2. Is it a 32 or 64 bit O/S,
3. Do you have a 32 or 64 bit processor and
4. What Service Pack of the operating system are you on?
5. What is the long version number for your browser from the About popup (mine is 7.0.6001.18000)?
I have the same issue:
From my main window 'pagentBrowser' I open a pop-up child window:
When I close child window by pagentBrowser.childBrowser().close() method it displays that pagentBrowser.childBrowserCount() = 0 - IT IS CORRECT
When I click close link (<a href='javascript:CloseWindows ()'....) from my parent page the behaviour is the following:
1. Child page is closed
2. pagentBrowser.childBrowserCount() = 1 - IT IS NOT CORRECT - count should be 0
Any ideas how to fix it???
With best regards,
Alexey Bulat