nubbel has asked for the wisdom of the Perl Monks concerning the following question:
When i run it i get folowing error: "Can't locate object method "find_elements" via package "Test::WWW::Selenium" (also tried "WWW::Selenium") at 1.pl line 20".use strict; use warnings; use Time::HiRes qw(sleep); use Test::WWW::Selenium; use Test::More "no_plan"; use Test::Exception; use Data::Dumper; use Selenium::Remote::Driver; my $sel = Test::WWW::Selenium->new( host => "localhost", port => 4444, browser => "*chrome", browser_url => "http://192.168.1.2 +/" ); $sel->open_ok("/portfolio/"); $sel->window_maximize(); $sel->title_like(qr/Catalog/); my @elements = $sel->find_elements('//*'); print Dumper @elements; $sel->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Test::WWW::Selenium and Selenium::Remote::Driver together
by daxim (Curate) on Jul 17, 2013 at 13:43 UTC | |
by nubbel (Novice) on Jul 17, 2013 at 14:15 UTC |