{"id":24716731,"url":"https://github.com/baylorrae/capybara-pompom","last_synced_at":"2025-03-22T09:21:02.276Z","repository":{"id":62555101,"uuid":"41598828","full_name":"BaylorRae/capybara-pompom","owner":"BaylorRae","description":"A Capybara inspired DSL for page object models.","archived":false,"fork":false,"pushed_at":"2017-09-01T15:29:29.000Z","size":37,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T03:00:37.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaylorRae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-29T16:01:20.000Z","updated_at":"2016-11-21T15:03:27.000Z","dependencies_parsed_at":"2022-11-03T05:15:47.822Z","dependency_job_id":null,"html_url":"https://github.com/BaylorRae/capybara-pompom","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2Fcapybara-pompom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2Fcapybara-pompom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2Fcapybara-pompom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2Fcapybara-pompom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaylorRae","download_url":"https://codeload.github.com/BaylorRae/capybara-pompom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244932947,"owners_count":20534259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-27T09:14:03.808Z","updated_at":"2025-03-22T09:21:02.256Z","avatar_url":"https://github.com/BaylorRae.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capybara::PomPom\n\n[![Build Status](https://travis-ci.org/BaylorRae/capybara-pompom.svg?branch=master)](https://travis-ci.org/BaylorRae/capybara-pompom) [![Code Climate](https://codeclimate.com/github/BaylorRae/capybara-pompom/badges/gpa.svg)](https://codeclimate.com/github/BaylorRae/capybara-pompom) [![Test Coverage](https://codeclimate.com/github/BaylorRae/capybara-pompom/badges/coverage.svg)](https://codeclimate.com/github/BaylorRae/capybara-pompom/coverage)\n\nThe goal of this gem is to create a DSL for the [Page Object\nModel][page_object_model].\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'capybara-pompom'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install capybara-pompom\n\n## Usage\n\n**Given:** we have the following page defined.\n\n```ruby\nclass LoginPage \u003c Capybara::PomPom::Page\n\n  # uses capybara's find_field(locator)\n  field :username, \"Username\"\n  field :password, \"Password\"\n\n  # uses capybara's find_button(locator)\n  button :login_button, \"Log In\"\n\n  # this page acts on the '/login' url\n  def initialize\n    visit '/login'\n  end\n\n  # Actions\n  # login as a user\n  def login_as(login, pass)\n    username.set(login)\n    password.set(pass)\n    login_button.click\n  end\n\nend\n```\n\n**Then:** it can be used like this.\n\n```ruby\n# login steps\nLoginPage.login_as('bob', 'password123')\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/capybara-pompom/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n[page_object_model]: https://code.google.com/p/selenium/wiki/PageObjects\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaylorrae%2Fcapybara-pompom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaylorrae%2Fcapybara-pompom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaylorrae%2Fcapybara-pompom/lists"}