views:

28

answers:

1

I want to use Selenium RC with a Perl client driver. How can I configure Selenium RC with Perl?

+1  A: 

Use the WWW::Selenium module to link up to Selenium RC.

You will need to have Selenium RC running in the background in order for it to operate. A technique that I have found useful to launch it from within Perl is to execute it on a separate thread and then immediately detach it:

use threads;

my $seleniumThread = # Assumes that your Selenium RC file is in the current dir
   threads->create( sub { system "java -jar selenium-server.jar"; } );

$seleniumThread->detach;
# Avoids the main program from having to wait for the system call to end

The following question may be useful as well:

Zaid