selectWindow not storing original parent window
-----------------------------------------------

         Key: WT-460
         URL: http://webtest-community.canoo.com/jira/browse/WT-460
     Project: WebTest
        Type: Bug

 Environment: Windows XP, Grails 1.0.3, Groovy 1.5.6, Grails WebTest plugin 0.3 
& 0.5.1
    Reporter: Chris Pitts


We are having problems with selectWindow while trying to test that a popup does 
indeed popup and not wipe out the original page.

In Groovy/Grails:

            invoke(url: '/')
            verifyTitle(text: 'MyHomePage')
            clickLink(label: 'Launch popup')
            verifyText(text: 'MyPopup')                        
            selectWindow(index:0)
            verifyTitle(text: 'MyHomePage')

...expecting index 0 to be the base page. Instead it is finding the popup so 
the final verifyTitle fails. 

So we tried index 1, and get a 'No window found' message from selectWindow. In 
the details:
'available windows      index: 0, name: ><, title: ><, url: 
http://localhost:8080/myapp/mypopup'

It looks like only the popup is on the windows 'stack'.


The popup is being launched with javascript as follows:
window.open('http://localhost:8080/myapp/MyHomePage, 'MyPopup');return false;


Any ideas?

The version of WebTest jar in the 0.5.1 plugin seems to be R_1708 (is this a 
formal release?)

Cheers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to