Skip to content

Purple-Magic/capybara_helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CapybaraHelpers

Gem adds some useful features for capybara.

Installation

Add this line to your application's Gemfile:

group :test do
  gem 'capybara-helpers'
end

And then execute:

$ bundle install

spec/spec_helper.rb

require 'capybara_helpers'

Usage

Parent node

You can get parent node of capybara node

find('some_selector').parent_node

Also you can get parent node by level number

find('some_selector').parent_node level: 3

Development

Todo

  • Write tests

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capybara-helpers.

About

Some new helpers for capybara

Resources

Stars

Watchers

Forks

Packages

No packages published