{"id":31029726,"url":"https://github.com/darkswoop/selenium_to_capybara","last_synced_at":"2026-04-16T11:03:08.166Z","repository":{"id":56894764,"uuid":"161949650","full_name":"DarkSwoop/selenium_to_capybara","owner":"DarkSwoop","description":"translates selenium tests to capybara","archived":false,"fork":false,"pushed_at":"2018-12-15T22:48:25.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T18:41:52.024Z","etag":null,"topics":["capybara","selenium"],"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/DarkSwoop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T22:46:04.000Z","updated_at":"2018-12-19T09:09:08.000Z","dependencies_parsed_at":"2022-08-21T01:20:27.339Z","dependency_job_id":null,"html_url":"https://github.com/DarkSwoop/selenium_to_capybara","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DarkSwoop/selenium_to_capybara","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSwoop%2Fselenium_to_capybara","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSwoop%2Fselenium_to_capybara/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSwoop%2Fselenium_to_capybara/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSwoop%2Fselenium_to_capybara/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarkSwoop","download_url":"https://codeload.github.com/DarkSwoop/selenium_to_capybara/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSwoop%2Fselenium_to_capybara/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275038263,"owners_count":25394640,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["capybara","selenium"],"created_at":"2025-09-13T22:48:03.148Z","updated_at":"2026-04-16T11:03:08.133Z","avatar_url":"https://github.com/DarkSwoop.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SeleniumToCapybara\n\nselenium2capybara translates a Selenium `.side` file into executable capybara tests. It is by no way meant to write the final system tests for you but take it as a good starting point.\n\nIf you do this:\n\n`selenium2capybara path/to/saved/*.side`\n\nyou may get that:\n\n```ruby\ntest 'checkout' do\n  visit('/')\n\n  # css: .tile:nth-child(4)\n  # xpath: //a[contains(@href, '/products/P23A-S_FW1819')]\n  # xpath: //a[4]\n  find('.tile:nth-child(4)').click\n\n  # linkText: Buy now\n  # css: .buy\n  # xpath: //a[contains(text(),'Buy now')]\n  # xpath: //form[@id='new_product_item']/div/a\n  # xpath: //a[contains(@href, '#')]\n  # xpath: //form/div/a\n  click_on('Buy now')\n\n  # css: tr:nth-child(11) \u003e td:nth-child(3)\n  # xpath: //form[@id='new_order']/div/div[3]/div/table/tbody/tr[11]/td[3]\n  # xpath: //tr[11]/td[3]\n  assert_selector('tr:nth-child(11) \u003e td:nth-child(3)', text: '123.45 €')\nend\n```\n\n## Installation\n\n### ... as executable\n\nTo run `selenium2capybara` install:\n\n    $ gem install selenium_to_capybara\n\n\n### ... as a library\n\nAdd this line to your Gemfile:\n\n```ruby\ngem 'selenium_to_capybara'\n```\n\nAnd then execute:\n\n    $ bundle\n\n\n### Required Additional Installation\n\nIn order to create the needed .side files the Selenium IDE plugin must be installed in your webbrowser.\n\n- [Chrome](https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd)\n- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/)\n\n## Usage\n\n1. Create a test with the Selenium IDE plugin\n2. Save the test to the disk\n3. run `selenium2capybara path/to/saved/*.side`\n\n## Translation contribution\n\nThe translations for minitest are currently placed in `lib/selenium_to_capybara/minitest.rb`. Feel free to add more or update the existing translations. To add a new translation open the `.side` file in your favourite text editor. It's a JSON file. Search for the command you want to add and define a new method with the name of the command in `minitest.rb`. For a more detailed description of how to add a new command translation please look at the `minitest.rb` file.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also 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`, which will 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\nBug reports and pull requests are welcome on GitHub at https://github.com/DarkSwoop/selenium_to_capybara. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the SeleniumToCapybara project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/DarkSwoop/selenium_to_capybara/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkswoop%2Fselenium_to_capybara","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkswoop%2Fselenium_to_capybara","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkswoop%2Fselenium_to_capybara/lists"}