NAME

Brownie::Driver::SeleniumServer - Selenium RemoteWebDriver bridge

SYNOPSIS

# use default browser (firefox)
my $driver = Brownie::Driver::SeleniumServer->new;

# specify browser
my $driver = Brownie::Driver::SeleniumServer->new(browser_name => 'chrome');

$driver->visit($url);
my $title = $driver->title;

METHODS

IMPLEMENTED

  • new( %args )

    my $driver = Brownie::Driver::SeleniumServer->new(%args);

    %args are:

    * browser_name: selenium-server's browser name (default: "firefox")

    You can also set selenium-server parameters using %ENV:

    * SELENIUM_BROWSER_NAME
  • browser

  • visit($url)

  • current_url

  • current_path

  • title

  • source

  • screenshot($filename)

  • execute_script($javascript)

  • evaluate_script($javascript)

  • find($locator)

  • all($locator)

NOT SUPPORTED

  • status_code

  • response_headers

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

Brownie::Driver, Selenium::Remote::Driver, Brownie::Node::SeleniumServer

http://code.google.com/p/selenium/wiki/RemoteWebDriver

http://code.google.com/p/selenium/wiki/RemoteWebDriverServer