(I'm using Selenium RC + Java in Eclipse IDE)

Consider the following scenario:

1. Script clicks a link on window1 that opens a new window(window2)
2. Script clicks a link on window2 that opens a new window(window3)

Selenium doesn't recognize the third window - This is a known issue, and if anyone has found a solution or work-around to it, posting that will be highly appreciated.

Another issue, in the same scenario is - Once the script closes window2, selenium does not recognize even the first window (default window).

Here, the script explicitly select the main window and the top frame before performing any action on window1

// select main window
selenium.selectWindow(selenium.getAllWindowTitles( )[0]);

// select top frame

Please reply if you have a <u>tested</u> solution.