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/