> 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 =>
> "www.seaatguru.com" );
>
> $sel->open_ok("http://www.seatguru.com/");
> $sel->title_is("Airline Seating Charts - Best Airplane Seats -
> SeatGuru");
> $sel->select_ok("sgs-airline-number", "label=Emirates");
> $sel->type_ok("sgs-flight", "003");
> $sel->click_ok("go-button-number");
> $sel->click_ok("//table[\@id='flightTable']/tbody/tr[4]/td[2]");
> $sel->wait_for_page_to_load_ok("30000");
>
------------------------------------------------------------------------
--
> Need your help, if the script above was sufficient then why do I face
> compilation error at line 4?
It is looking for selenium.pm in C:\camelbox\site\lib\Test\WWW\, which
is where it is installed on my system. Is that module installed on
yours?
Also, if the pm file in the Selenium client library is newer than the
one installed from CPAN, replace the installed file with the newer one.
CPAN had not been updated with that release the last time I checked.
Bob McConnell
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
> Thanks so much
>
> I am able to successfully install selenium RC and run test script in
Perl
>
> On Fri, Jan 7, 2011 at 11:35 PM, naveen v
<venkata...@googlemail.com> wrote:
>>
>>
>> thanks so much i tried copying selenium.pm which is around 91kb
>> from perl client driver to c:camelbox/site/lib/test/www/
>>
>> i get below error
>>
>> C:\camelbox\bin>PERL gtest.PL
>> Can't locate object method "new" via package
"Test::WWW::Selenium" (perhaps you
>> forgot to load "Test::WWW::Selenium"?) at gtest.PL line 8.
>> # Looks like your test died before it could output anything.
>>
>> any advice would be of great help
> > Need your help, if the script above was sufficient
then why do I face
> > compilation error at line 4?
>
> It is looking for selenium.pm in
C:\camelbox\site\lib\Test\WWW\, which
> is where it is installed on my system. Is that module
installed on
> yours?
>
> Also, if the pm file in the Selenium client library is
newer than the
> one installed from CPAN, replace the installed file with
the newer one.
> CPAN had not been updated with that release the last
time I checked.
What were the final steps to get it running?
You might find a few more ideas about using Se with Perl on the Wiki
page I wrote at
<http://wiki.openqa.org/display/SRC/Selenium+RC+and+Perl>. You are
welcome to add your own thoughts and suggestions there.
There is also a blog at
<http://quicksilver1183.com/2010/09/07/setting-up-selenium-with-perl/>
you may find useful.
Bob McConnell