Application opens in popup window.

View: New views
2 Messages — Rating Filter:   Alert me  

Application opens in popup window.

by svm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I am new to selenium, i am facing problem with the popup window. My application opens in popup window after entering the URL. The script works till it opens the login screen,after that follwing error is displayed.

Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Current window or frame is closed!

Can any one know what could be the problem here?

Thanks in advance!

Re: Application opens in popup window.

by VipinK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


svm wrote:
Hi All,

I am new to selenium, i am facing problem with the popup window. My application opens in popup window after entering the URL. The script works till it opens the login screen,after that follwing error is displayed.

Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Current window or frame is closed!

Can any one know what could be the problem here?

Thanks in advance!
try selenium.selectWindow(null); It should solve your problem. URL for your reference http://www.markhneedham.com/blog/2008/10/25/selenium-selecting-the-original-window/