i try to enhance a Selenium-Perl-Script which i've recorded with the Selenium IDE.
use Time::HiRes qw(sleep);
use Test::More "no_plan";
my $sel = Test::WWW::Selenium->new( host => "localhost",
port => 4444,
browser => "*chrome",
browser_url => "http://192.168.1.2
my @elements = $sel->find_elements('//*');
print Dumper @elements;
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".
I know find_elements is part of Selenium::Remote::Driver, therfore i included the "user Selenium::Remote::Driver" line to the script, but that's not working. Can you please tell me how to use Selenium::Remote::Driver and Test::WWW::Selenium together in one script?