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

TIPS

Use external selenium server

If you secify "SELENIUM_REMOTE_SERVER_HOST" and "SELENIUM_REMOTE_SERVER_PORT" enviromnent valiables, Brownie uses its server for selenium server. By this, you can quicken the execution of your tests.

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