NAME
Pherkin::Extension::Weasel - Pherkin extension for web-testing
VERSION
version 0.17
SYNOPSIS
# 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');
};
Test::BDD::Cucumber::Extension protocol implementation
- step_directories
- pre_execute
- pre_feature
- post_feature
- pre_scenario
ATTRIBUTES
- default_session
- sessions
- base_url
-
URL part to be used for prefixing URL arguments in steps
- screenshots_dir
- screenshot_events
- _weasel
INTERNALS
CONTRIBUTORS
Erik Huelsmann
MAINTAINERS
Erik Huelsmann
BUGS
Bugs can be filed in the GitHub issue tracker for the Weasel project: https://github.com/perl-weasel/weasel-driver-selenium2/issues
SOURCE
The source code repository for Weasel is at https://github.com/perl-weasel/weasel-driver-selenium2
SUPPORT
Community support is available through perl-weasel@googlegroups.com.
COPYRIGHT
(C) 2016-2023 Erik Huelsmann
Licensed under the same terms as Perl.