I'm having a problem with selenium perl using popup window
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
I tried select_window_ok , get_all_window_ids, get_all_window_names combining them but no luck
Please use Perl code not Javascript 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->new( host => "localhost",
port => 4444,
browser => "*chrome",
browser_url => "http://www.electrotank.com/" );
$sel->open_ok("/docs/es5/live-examples/FacebookConnect/");
$sel->click_ok("//a[\@class='fb_button fb_button_medium']/span");
sleep 10;
$sel->wait_for_pop_up_ok("", "30000",'Log in | Facebook');
$sel->select_pop_up("null");
$sel->type_ok("email", "email\@email.com",'User enters Facebook credentials - Username');
$sel->type_ok("pass", "password",'User enters Facebook credentials - Password');
$sel->click_ok("name=login");
$sel->select_window("null");
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
thank you
i have updated the code so any can have a try and debug the code why its not working in IE9
Edited 18/june/2012