Не видит текущее окно

В проекте кликаю на кнопку - открывается попап. Я выбираю его selectWindow, произвожу там некоторые действия, нажимаю на кнопку и он автоматом закрывается. Далее делаю selectWindow(NULL) для выбора основного окна. Операции в этом окне могу производить, но когда делаю открытие другой страницы open(other_page)  - пишет current window or frame is closed. Гугл подсказывал делать еще такое
    $this->selenium->windowFocus();
    $this->selenium->waitForCondition("selenium.browserbot.getCurrentWindow()",15);
Но всеравно ниче не помогло.

Что это может быть, может кто-то сталкивался с таким?

В каком браузере выполняете эти действия? В IE, я замечал баг по работе с попапами.

Это в ФФ

Попробуйте другие подходы с этим попапом, например

deselectPopUp ( )

close()

selectWindow (title="My homewindow bla bla bla")

 

Еще, что можно попробовать это открывать окно со своим кастомным ID - openWindow("", "myFunnyWindow").

Так же попробуйте запускать Firefox в режиме *chrome

вот тут обсуждается тоже эта проблема http://www.linkedin.com/groups/HI-All-Problem-In-our-961927.S.73770301?view=&srchtype=discussedNews&gid=961927&item=73770301&type=member&trk=eml-anet_dig-b_pd-ttl-cn&ut=1369O4oSq4jQY1

{syntaxhighlighter brush: java;fontsize: 100; first-line: 1; }//**** open the url that you want selenium.open("http://www.your.address.com/"); //** click over the link that open the new window selenium.click("//a[@href='linkthatopen_anotherwindow']");

//**** say selenium to wait for the new windows
selenium.waitForPopUp(“null”, String.valueOf(getConfig().getTimeout()));
pause(5000);
//**** capture the new window name
String lastWindowName = Common.getRecentPopupWindowName(selenium);
//**** select that new windows by name
selenium.selectWindow(lastWindowName);
//**** focus on the new window selected
selenium.windowFocus();

//**** do something with the new window, like printing the url text
System.out.println(“url:”+selenium.getLocation());

//**** close the conection of selenium with the new window
selenium.close();
//**** Unselect the new window
selenium.deselectPopUp();
//**** select the original window
selenium.selectWindow(null);{/syntaxhighlighter}

а как узнать кастомный ID окна? Где он отображается?
Вижу только title, но по нему не выбирается.

обычно он указыается в html коде откуда вызывается окно. посмотри там

а если окно уже открылось то его нигде не найдешь на этой странице