or download this
$sel->select_window($window_id)
...
If you're having trouble figuring out the name of a window that yo
+u want to manipulate, look at the Selenium log messages which identif
+y the names of windows created via window.open (and therefore interce
+pted by Selenium). You will see messages like the following for each
+ window as it is opened:
debug: window.open call intercepted; window ID (which you can use with
+ selectWindow()) is "myNewWindow"