Pherkin::Extension::Weasel - Pherkin extension for web-testing
0.15
# In the pherkin config file t/.pherkin.yaml: default: extensions: Pherkin::Extension::Weasel: default_session: selenium screenshots_dir: img screenshot_events: pre_step: 1 post_step: 1 post_scenario: 1 post_feature: 1 sessions: selenium: base_url: http://localhost:5000 driver: drv_name: Weasel::Driver::Selenium2 wait_timeout: 3000 window_size: 1024x1280 caps: port: 4420 # Which makes the S->{ext_wsl} field available, # pointing at the default session, in steps of features or scenarios # marked with the '@weasel' tag so in the steps you can use: use Weasel::FindExpanders::HTML; Then qr/I see an input element with label XYZ/, sub { S->{ext_wsl}->page->find('*labeled', text => 'XYZ'); };
URL part to be used for prefixing URL arguments in steps
Erik Huelsmann
Bugs can be filed in the GitHub issue tracker for the Weasel project: https://github.com/perl-weasel/weasel-driver-selenium2/issues
The source code repository for Weasel is at https://github.com/perl-weasel/weasel-driver-selenium2
Community support is available through perl-weasel@googlegroups.com.
(C) 2016-2020 Erik Huelsmann
Licensed under the same terms as Perl.
To install Pherkin::Extension::Weasel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pherkin::Extension::Weasel
CPAN shell
perl -MCPAN -e shell install Pherkin::Extension::Weasel
For more information on module installation, please visit the detailed CPAN module installation guide.