0.0
No commit activity in last 3 years
No release in over 3 years
This gem removes the need of creating an extra module with methods creating or reusing site prism pages instances
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

 Project Readme

PageCreator

This gem removes the need of creating an extra module or class with methods initialising or reusing site prism page instances. For example if you have class HomePage < SitePrism::Page with element :login_link, '#login', you can call this page and it's methods from your step definitions by using home_page.login_link.click without the need to add any extra code to your test framework.

Installation

Add this line to your application's Gemfile:

gem 'page_creator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install page_creator

Usage

This gem is to be used with cucumber and site_prism gems. After bundle install require gem:

# project_folder/features/support/env.rb

require 'page_creator'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/raditotev/page_creator.

License

The gem is available as open source under the terms of the MIT License.