Skip to content

masaki/p5-Selenium-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Selenium::Server - A wrapper of selenium-server-standalone.jar

SYNOPSIS

use Selenium::Server;

# (default) download and use latest version jar
my $server = Selenium::Server->new;
# specify jar
my $server = Selenium::Server->new(jar => '/path/to/selenium-server.jar');
# specify version
my $server = Selenium::Server->new(version => '2.11.0');

$server->start;
# with arguments
$server->start('-timeout 60 -trustAllSSLCertificates');

my $host = $server->host; # '127.0.0.1'
my $port = $server->port;

$server->stop;

DESCRIPTION

Selenium::Server is a wrapper of Selenium RemoteWebDriver Server; selenium-server-standalone-{version}.jar file.

METHODS

  • new()

    Creates a selenium-server wrapper instance.

  • start($args)

    Starts selenium-server, with $args if specified.

  • stop()

    Stops selenium-server.

  • host()

    Returns selenium-server host. (127.0.0.1)

  • port()

    Returns selenium-server port.

  • jar()

    Returns selenium-server JAR file path.

  • latest_version()

    Returns selenium-server latest version string.

  • download($version, $path)

    Downloads selenium-server jar file specified by $version to $path.

AUTHOR

NAKAGAWA Masaki <masaki@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Alien::SeleniumRC

http://selenium.googlecode.com/svn/trunk/rb/lib/selenium/server.rb

About

A wrapper of selenium-server.jar

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages