rendered paste bodyuse 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->select_frame_ok("repository_tree");
sleep(5);
$sel->click_ok("link=Top Level");
$sel->wait_for_page_to_load_ok("30000");
$sel->select_frame_ok("relative=up");
$sel->select_frame_ok("repository_edit");
$sel->click_ok("link=Create a sub-folder inside this folder");
$sel->wait_for_page_to_load_ok("30000");
$sel->type_ok("subfolderName", "test");
$sel->click_ok("link=Create");
$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 \"test\" was created.");