Giter VIP home page Giter VIP logo

capypage's Introduction

Capypage

Page Object Model for Capybara

Build Status

Installation

Add this line to your application's Gemfile:

gem 'capypage'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capypage

Usage

See examples

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

capypage's People

Contributors

selvakn avatar siliconsenthil avatar sriv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capypage's Issues

Handling iFrames

This isn't so much an issue as it is a question about a potential issue. In using Capypage, what's the preferred idiom for accessing elements in an iframe? Or more generally the idea of the "within" construct from Capybara.

add a default selector when defining elements

Right now the selector has to be explicit i.e.

element :foo, "#foo"

Add a convention so that by default the element name is same as the ID of the equivalent html element. So if I have an element with id=foo, capypage should default to use that for selection.

Exception: can't modify frozen String

Getting the following exception when using # frozen_string_literal: true

Error Message: can't modify frozen String
Stacktrace:
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:39:in `gsub!'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:39:in `block (2 levels) in load'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:39:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:39:in `block in load'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:39:in `tap'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:39:in `load'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:34:in `tap'
/usr/local/lib/ruby/gems/2.3.0/gems/capypage-0.2.7/lib/capypage/page.rb:34:in `visit'

Provide support to capybara latest version (2.7)

Hi,

When i try to update capybara gem, i am getting the below message

capypage was resolved to 0.2.6, which depends on
      capybara (~> 2.1.0)

Could you please make capypage support to latest versions of capybara?

Thanks,
Gowtham

how to find element by text

I have a scenario to locate an element by its containing text.
For example,
page.find("#product",:text => "shampoo")
How can I define this element in Capypage?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.