title: Selenium Perl munti popup
body: <p>I'm having a problem with selenium perl using popup window</p>
  
  <p>The problem: Its a Facebook problem anyone have problem targeting Facebook popup when you click facebook connect or any popup that is show when click event is done</p>
  
  <p>I tried <code>select_window_ok</code> , <code>get_all_window_ids</code>, <code>get_all_window_names</code> combining them but no luck</p>
  
  <p>Please use Perl code not Javascript code.</p>
  
  <hr>
  
  <pre><code>use strict;
  use warnings;
  use Time::HiRes qw(sleep);
  use Test::WWW::Selenium;
  use Test::More "no_plan";
  use Test::Exception;
  
  my $sel = Test::WWW::Selenium-&gt;new( host =&gt; "localhost", 
                                      port =&gt; 4444, 
                                      browser =&gt; "*chrome", 
                                      browser_url =&gt; "http://www.electrotank.com/" );
  
  $sel-&gt;open_ok("/docs/es5/live-examples/FacebookConnect/");
  $sel-&gt;click_ok("//a[\@class='fb_button fb_button_medium']/span");
  sleep 10;
  $sel-&gt;wait_for_pop_up_ok("", "30000",'Log in | Facebook');
  $sel-&gt;select_pop_up("null");
  $sel-&gt;type_ok("email", "email\@email.com",'User enters Facebook credentials - Username');
  $sel-&gt;type_ok("pass", "password",'User enters Facebook credentials - Password');
  $sel-&gt;click_ok("name=login");
  $sel-&gt;select_window("null");
  </code></pre>
  
  <p>here are the code i tried in IE9 Win7 and its not working properly can't detect the popup and when i run it in FireFox it work's fine</p>
  
  <p>thank you</p>
  
  <p>i have updated the code so any can have a try and debug the code why its not working in IE9</p>
  
  <p>Edited 18/june/2012</p>