Brownie::Driver::SeleniumServer - Selenium RemoteWebDriver bridge
# 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;
new( %args )
my $driver = Brownie::Driver::SeleniumServer->new(%args);
%args are:
%args
* browser_name: selenium-server's browser name (default: "firefox")
You can also set selenium-server parameters using %ENV:
%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)
status_code
response_headers
NAKAGAWA Masaki <masaki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Brownie::Driver, Selenium::Remote::Driver, Brownie::Node::SeleniumServer
http://code.google.com/p/selenium/wiki/RemoteWebDriver
http://code.google.com/p/selenium/wiki/RemoteWebDriverServer
To install Brownie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Brownie
CPAN shell
perl -MCPAN -e shell install Brownie
For more information on module installation, please visit the detailed CPAN module installation guide.