* Get latest Nightly built for Selenium from the link here.
* Follow the instructions here to install Selenium Server and a Client. I use Perl so installed a perl client using CPAN like below:
% cpan
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled
cpan> install Test::WWW::Selenium
* Now in order to use your perl script with Firefox3 following worded for me;
my $sel = Test::WWW::Selenium->new( host => "localhost",
port => 4444,
browser => "*custom /usr/lib/firefox-3.0.1/firefox -p selenium",
browser_url => "http://change-this-to-the-site-you-are-testing/" );
* "-p selenium" option tells firefox to open "selenium" profile that I have created specifically for testing. if you need help with firefox profiles, here is a great tutorial.
* NOTE: The first time you may have to configure proxy of firefox browser to point 127.0.0.1:4444.
Have Fun!!
2 comments:
If you're really lazy or just want to postpone this, you can download ff-2 from http://packages.ubuntu.com/hardy/i386/firefox-2/download
USe dpkg -i and then just use the
old sudo ln -s /usr/lib/firefox/firefox-2-bin /usr/lib/firefox/firefox-bin trick to run firefox 2.
Note: in your command to start firefox with the selenium profile, non-windows platforms will expect that to be a capital P, as in "firefox -P selenium". On Linux, at least, you get a cryptic error message if you use a lower case p.
Post a Comment