[Webtest] [webtest][JIRA] Created: (WT-460) selectWindow not storing original parent window

Chris Pitts (JIRA) Chris Pitts (JIRA)" <noreply@canoo.com
Tue, 2 Sep 2008 18:23:20 +0200 (CEST)

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')                        
            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?)


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see: