Waitforpopup

Waits for a popup window to appear and load up.

Required Attributes
windowID
the JavaScript window "name" of the window that will appear (not the text of the title bar) If unspecified, or specified as "null", this command will wait for the first non-top window to appear (don't rely on this if you are working with multiple popups simultaneously).
timeout
the amount of time in milliseconds to wait for a page to load after which an error will be thrown and the current execution would terminate.
Usage Examples
Example #1
<selenium baseurl="http://www.yahoo.com">
   
<open url="/" />
   
<openWindow url="http://www.yahoo.com/finance" windowID="other" />
   
<waitForPopUp timeout="30000" windowID="other" />
</selenium>