The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Jifty::Test::WebDriver - Subclass of Test::WebDriver with extra Jifty integration

SYNOPSIS

  use Jifty::Test::WWW::WebDriver;
  my $server  = Jifty::Test->make_server;
  my $sel = Jifty::Test::WWW::WebDriver->rc_ok( $server, lang => 'en_US.UTF-8' );
  my $URL = $server->started_ok;

  $sel->get_ok( $URL ));

DESCRIPTION

Jifty::Test::WWW::WebDriver creates a Test::WebDriver object associated with your jifty application to test. In addition, it starts Selenium server for you, unless it finds a server already running.

You can specify where to look for the Selenium server using environment variables: $TWD_HOST, $TWD_PORT, $TWD_BROWSER. See Test::WebDriver for all the options, and see Selenium::Remote::Driver for their meanings.

You may want to set TEST_CLASS to a subclass of Test::WebDriver to refactor methods common to your application.

rc_ok