0

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

B_B
  • 95
  • 1
  • 9
  • This should be your answer http://stackoverflow.com/questions/8845614/testing-a-facebook-connect-application-using-selenium – Amey Jun 13 '12 at 18:03
  • Thank you for pointing me to the right direction it really help =) – B_B Jun 14 '12 at 09:05
  • i have a question i tried to run the code in IE9 and it doesn't work what is the work around or its just me Problem 1. it can't detect the popup thank you – B_B Jun 14 '12 at 14:47
  • what errors do you see? Also that is somewhat old, written for selenium RC as perl is not supported by the selenium team anymore. ALso update your question with your code. – Amey Jun 14 '12 at 15:03

0 Answers0