All pastes #1878558 Raw Edit

Unnamed

public text v1 · immutable
#1878558 ·published 2010-06-07 18:16 UTC
rendered paste body
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://change-this-to-the-site-you-are-testing/" );

$sel->open_ok("/repository.php");
$sel->click_ok("link=My Files");
$sel->wait_for_page_to_load_ok("30000");
sleep(5);
$sel->click_ok("link=test2");
$sel->wait_for_page_to_load_ok("30000");
$sel->select_frame_ok("relative=up");
$sel->select_frame_ok("repository_edit");
$sel->click_ok("link=Delete this folder");
$sel->wait_for_page_to_load_ok("30000");
$sel->click_ok("link=Yes");
$sel->wait_for_page_to_load_ok("30000");
sleep(10);
$sel->select_frame_ok("relative=up");
$sel->click_ok("//img[\@onclick='historyDisplay()']");
$sel->wait_for_page_to_load_ok("30000");
$sel->is_text_present_ok("The folder \"test2\" was deleted.");