{"id":22363097,"url":"https://github.com/lambdatest/capybara-cucumber-ruby","last_synced_at":"2025-07-30T15:31:02.785Z","repository":{"id":38355372,"uuid":"173710675","full_name":"LambdaTest/Capybara-Cucumber-Ruby","owner":"LambdaTest","description":"Run test automation on cloud with Capybara and LambdaTest. This is a sample repo to help you execute Capybara framework based test scripts in parallel with LambdaTest automation testing cloud","archived":false,"fork":false,"pushed_at":"2022-06-29T11:52:44.000Z","size":45,"stargazers_count":15,"open_issues_count":0,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2023-03-27T17:27:44.345Z","etag":null,"topics":["automation","lambdatest","ruby-capybara","selenium","selenium-capybara","selenium-webdriver","test-automation","testing","web-testing"],"latest_commit_sha":null,"homepage":"https://www.lambdatest.com/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LambdaTest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-04T09:06:47.000Z","updated_at":"2023-03-27T17:27:44.346Z","dependencies_parsed_at":"2022-08-26T15:50:56.821Z","dependency_job_id":null,"html_url":"https://github.com/LambdaTest/Capybara-Cucumber-Ruby","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FCapybara-Cucumber-Ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FCapybara-Cucumber-Ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FCapybara-Cucumber-Ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FCapybara-Cucumber-Ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LambdaTest","download_url":"https://codeload.github.com/LambdaTest/Capybara-Cucumber-Ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228154023,"owners_count":17877704,"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":["automation","lambdatest","ruby-capybara","selenium","selenium-capybara","selenium-webdriver","test-automation","testing","web-testing"],"created_at":"2024-12-04T17:13:37.092Z","updated_at":"2024-12-04T17:13:37.781Z","avatar_url":"https://github.com/LambdaTest.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run Selenium Tests With Capybara On LambdaTest\n\n![Group 7552](https://user-images.githubusercontent.com/95698164/174256293-77d3c07c-0455-4671-bc07-4657ec3b03c7.png)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.lambdatest.com/blog/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby\" target=\"_bank\"\u003eBlog\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/support/docs/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby\" target=\"_bank\"\u003eDocs\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/learning-hub/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby\" target=\"_bank\"\u003eLearning Hub\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/newsletter/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby\" target=\"_bank\"\u003eNewsletter\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/certifications/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby\" target=\"_bank\"\u003eCertifications\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.youtube.com/c/LambdaTest\" target=\"_bank\"\u003eYouTube\u003c/a\u003e\n\u003c/p\u003e\n\u0026emsp;\n\u0026emsp;\n\u0026emsp;\n\n*Learn how to use Capybara framework to configure and run your Java automation testing scripts on the LambdaTest platform*\n\n[\u003cimg height=\"58\" width=\"200\" src=\"https://user-images.githubusercontent.com/70570645/171866795-52c11b49-0728-4229-b073-4b704209ddde.png\"\u003e](https://accounts.lambdatest.com/register)\n\n## Table Of Contents\n\n* [Pre-requisites](#pre-requisites)\n* [Run-Your-First-Test](#run-your-first-test)\n* [Executing-The-Test](#executing-the-test)\n* [Running Your Parallel Tests Using Capybara Framework](#running-your-parallel-tests-using-capybara-framework)\n* [Testing Locally Hosted or Privately Hosted Projects](#testing-locally-hosted-or-privately-hosted-projects)\n\n## Pre-requisites \n\nBefore you can start performing Ruby automation testing with Selenium, you would need to:\n\n* Install Ruby and gem on your local system. Follow these instructions to install on different operating systems.\n  * For **Windows**, you can download from the [official website](https://rubyinstaller.org/downloads/).\n  * For **Linux** or **Ubuntu**, you can run a simple apt command like below:\n  ```bash\n  sudo apt-get install ruby-full\n  ```\n  * For **macOS**, you can run a [Homebrew](https://brew.sh/) command like this:\n  ```bash\n  brew install ruby\n  ```\n* To run tests in parallel you will require the [parallel_tests](https://github.com/grosser/parallel_tests) gem.\n* LambdaTest binary file for running tests on your locally hosted web pages.\n\n### Installing Selenium Dependencies and Tutorial Repo\n\n**Step 1:** Clone the LambdaTest’s [Capybara-Ruby repository](https://github.com/LambdaTest/Capybara-Cucumber-Ruby) and navigate to the code directory as shown below:\n```bash\ngit clone https://github.com/LambdaTest/Capybara-Cucumber-Ruby.git\ncd Capybara-Cucumber-Ruby\n```\n**Step 2:** After navigating to the cloned directory, install project dependencies using the below commands:\n```bash\nbundle install\n```\n### Setting up Your Authentication\nMake sure you have your LambdaTest credentials with you to run test automation scripts with Capybara on LambdaTest Selenium Grid. You can obtain these credentials from the [LambdaTest Automation Dashboard](https://automation.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby) or through LambdaTest Profile.\n\nSet LambdaTest Username and Access Key in environment variables.\n * For Linux/macOS:\n `export LT_USERNAME=\"YOUR_USERNAME\" export LT_ACCESS_KEY=\"YOUR ACCESS KEY\"`\n * For Windows:\n `set LT_USERNAME=\"YOUR_USERNAME\" set LT_ACCESS_KEY=\"YOUR ACCESS KEY\"`\n\n## Run Your First Test \n\n### Sample Test with Capybara Ruby\n**Test Scenario:** The example mentioned in the [lambdatest.rb](https://github.com/LambdaTest/Capybara-Cucumber-Ruby/blob/master/features/support/lambdatest.rb) sample file would help you to execute your automation test using CapyBara Ruby.\n\n### Configuration of Your Test Capabilities\n\nIn the test script, you need to update your test capabilities. In this code, we are passing browser, browser version, and operating system information, along with LambdaTest Selenium grid capabilities via capabilities object. The capabilities in the above code are defined as:\n```ruby\n@caps = {                       \n            \"browserName\"=\u003elt_browser, \n            \"version\"=\u003elt_browser_version, \n            \"platform\"=\u003elt_os, \n            \"resolution\"=\u003elt_res, \n            \"build\"=\u003e\"capybara-lambdatest\", \n            \"name\"=\u003e\"single-Test-Jenkins\",\n            \"video\"=\u003etrue, \n            \"network\"=\u003etrue, \n            \"console\"=\u003etrue, \n            \"visual\"=\u003etrue \n        }  \n```\n\u003e You can generate capabilities for your test requirements with the help of our inbuilt **[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby)**.\n\n## Executing The Test\n\n Navigate to the directory where you cloned the sample of CapyBara Ruby and run the following command.\n```bash\nbundle exec rake single\n```\nYour test results would be displayed on the test console (or command-line interface if you are using terminal/cmd) and on LambdaTest automation dashboard. [LambdaTest Automation Dashboard](https://automation.lambdatest.com/build/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby) will help you view all your text logs, screenshots and video recording for your entire automation tests.\n\n## Running Your Parallel Tests Using Capybara Framework\n\n### Executing Parallel Tests Using Capybara\nNavigate to the directory where you cloned the sample of CapyBara Ruby and run the following command.\n```bash\nbundle exec rake parallel\n```\n\n## Testing Locally Hosted or Privately Hosted Projects\n\nYou can test your locally hosted or privately hosted projects with [LambdaTest Selenium grid cloud](https://www.lambdatest.com/selenium-automation/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby) using LambdaTest Tunnel app. All you would have to do is set up an SSH tunnel using LambdaTest Tunnel app and pass toggle `tunnel = True` via desired capabilities. LambdaTest Tunnel establishes a secure SSH protocol based tunnel that allows you in testing your locally hosted or privately hosted pages, even before they are made live.\n\n\u003eRefer our [LambdaTest Tunnel documentation](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/) for more information.\n\nHere’s how you can establish LambdaTest Tunnel.\n\n\u003eDownload the binary file of:\n* [LambdaTest Tunnel for Windows](https://downloads.lambdatest.com/tunnel/v3/windows/64bit/LT_Windows.zip)\n* [LambdaTest Tunnel for Mac](https://downloads.lambdatest.com/tunnel/v3/mac/64bit/LT_Mac.zip)\n* [LambdaTest Tunnel for Linux](https://downloads.lambdatest.com/tunnel/v3/linux/64bit/LT_Linux.zip)\n\nOpen command prompt and navigate to the binary folder.\n\nRun the following command:\n```bash\nLT -user {user’s login email} -key {user’s access key}\n```\nSo if your user name is lambdatest@example.com and key is 123456, the command would be:\n```bash\nLT -user lambdatest@example.com -key 123456\n```\nOnce you are able to connect **LambdaTest Tunnel** successfully, you would just have to pass on tunnel capabilities in the code shown below :\n\n**Tunnel Capability**\n```ruby\ncaps = {             \n            ...          \n            :tunnel =\u003e true,         \n            ...\n        }  \n```\n## Additional Links\n\n* [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/selenium-automation-capabilities/)\n* [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/)\n* [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/)\n\n## Documentation \u0026 Resources :books:\n\n      \nVisit the following links to learn more about LambdaTest's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing.\n\n* [LambdaTest Documentation](https://www.lambdatest.com/support/docs/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby)\n* [LambdaTest Blog](https://www.lambdatest.com/blog/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby)\n* [LambdaTest Learning Hub](https://www.lambdatest.com/learning-hub/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby)    \n\n## LambdaTest Community :busts_in_silhouette:\n\nThe [LambdaTest Community](https://community.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby) allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎\n\n## What's New At LambdaTest ❓\n\nTo stay updated with the latest features and product add-ons, visit [Changelog](https://changelog.lambdatest.com/) \n      \n## About LambdaTest\n\n[LambdaTest](https://www.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby) is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs.    \n\n### Features\n\n* Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments.\n* Real-time cross browser testing on 3000+ environments.\n* Test on Real device cloud\n* Blazing fast test automation with HyperExecute\n* Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale.\n* Smart Visual Regression Testing on cloud\n* 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more.\n* Automated Screenshot testing across multiple browsers in a single click.\n* Local testing of web and mobile apps.\n* Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems.\n* Geolocation testing of web and mobile apps across 53+ countries.\n* LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports\n\n    \n[\u003cimg height=\"58\" width=\"200\" src=\"https://user-images.githubusercontent.com/70570645/171866795-52c11b49-0728-4229-b073-4b704209ddde.png\"\u003e](https://accounts.lambdatest.com/register)\n\n\n## We are here to help you :headphones:\n\n* Got a query? we are available 24x7 to help. [Contact Us](support@lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby)\n* For more info, visit - [LambdaTest](https://www.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Capybara-Cucumber-Ruby)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Fcapybara-cucumber-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdatest%2Fcapybara-cucumber-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Fcapybara-cucumber-ruby/lists"}