Tuesday, May 5, 2009

Perl Client for Selenium Install

Ok, so finally I got Selenium with Perl to work again!! And this time I am going to jot down the steps.
1. Install Perl
2. Download Selenium Perl "CLIENT" from Luke Cross, located here - http://search.cpan.org/~lukec/Test-WWW-Selenium-1.13
3. Unzip the download and follow the instructions in readme file.
"
To install:

perl Makefile.PL
make
make test
make install
"
Note: Instead of 'make' use 'nmake' on windows machine.
4. Now is the tricky part - selenium.pm is available in multiple places and we have to be careful to be using the right one. File located at C:\Installs\Selenium\Test-WWW-Selenium-1.13\Test-WWW-Selenium-1.13\lib\Test\WWW is a 7kb file that is different from the 65kb file located at C:\Installs\Selenium\Test-WWW-Selenium-1.13\Test-WWW-Selenium-1.13\lib\WWW. Make sure to be using/pointing to the 7kb file and you are good to go!

More info on how to use the Perl Client driver is available at -
http://seleniumhq.org/documentation/remote-control/languages/perl.html

-V

No comments: