This is a working example of using the Page Object pattern to support Automated Acceptance Tests of browser functionality.
The examples provide some minimal tests of www.synacor.net to show how to use the Page Object pattern for automated acceptance tests.
This uses the following main gems:
- cucumber => BDD that talks to domain experts first and code second
- capybara => Acceptance test framework for web applications
- site_prism => A Page Object Model DSL for Capybara
See also:
Download to a local folder
bundle install
cucumber
It is currently configured for headless testing using PhantomJS. To run using a real browser edit features/support/env.rb and set:
config.default_driver = :chrome
or
config.default_driver = :firefox
or
config.default_driver = :safari