Skip to content

Commit f222788

Browse files
author
lukec
committed
little helper for debugging selenium-server calls
git-svn-id: http://svn.openqa.org/svn/selenium-rc/trunk/clients/perl-cpan@1585 0891141a-5dea-0310-ad27-ebc607f31677
1 parent 3917726 commit f222788

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

util/test_function.pl

+9-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
my ($function, @args) = @ARGV;
88
die 'no function' unless $function;
99

10-
my $sel = WWW::Selenium->new(browser_url => 'http://www.csc.uvic.ca', browser => '*chrome');
10+
my $sel = WWW::Selenium->new(browser_url => 'http://www.csc.uvic.ca', browser => '*chrome', verbose => 1);
1111
$sel->start;
12-
$sel->open('/~labspg/Reference/javascript/script4.4.html');
12+
$sel->open('http://www.csc.uvic.ca/~labspg/Reference/javascript/script4.9.html');
1313
my $content = $sel->get_body_text;
14-
die "No happy: ($content)" unless $content =~ /Happiness/;
14+
15+
$sel->select('name=order', 'a box of cereal');
16+
$sel->add_selection('name=order', '100 lbs. blueberries');
17+
print "$function=(", join(',', $sel->$function(@args)), ")\n";
18+
19+
20+
$sel->close;

0 commit comments

Comments
 (0)