{"id":13878880,"url":"https://github.com/percy/percy-selenium-ruby","last_synced_at":"2025-10-26T02:06:48.669Z","repository":{"id":48361403,"uuid":"355339277","full_name":"percy/percy-selenium-ruby","owner":"percy","description":"Visual testing with Selenium Ruby and Percy","archived":false,"fork":false,"pushed_at":"2024-10-08T05:54:00.000Z","size":33,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-11T10:55:18.619Z","etag":null,"topics":["percy","percy-sdk","ruby-selenium","screenshots","testing","visual-testing"],"latest_commit_sha":null,"homepage":"https://docs.percy.io/docs/selenium-for-ruby","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/percy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-06T21:54:31.000Z","updated_at":"2024-10-08T05:54:02.000Z","dependencies_parsed_at":"2024-01-13T20:51:10.787Z","dependency_job_id":"67e4158d-f4a4-4dbd-b563-689d8052e912","html_url":"https://github.com/percy/percy-selenium-ruby","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"91d3d1ac00536b17448ac8cba9be0140b4b21747"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percy%2Fpercy-selenium-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percy%2Fpercy-selenium-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percy%2Fpercy-selenium-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percy%2Fpercy-selenium-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/percy","download_url":"https://codeload.github.com/percy/percy-selenium-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226138849,"owners_count":17579496,"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":["percy","percy-sdk","ruby-selenium","screenshots","testing","visual-testing"],"created_at":"2024-08-06T08:02:03.088Z","updated_at":"2025-10-26T02:06:43.635Z","avatar_url":"https://github.com/percy.png","language":"Ruby","readme":"# percy-selenium-ruby\n[![Gem Version](https://badge.fury.io/rb/percy-selenium.svg)](https://badge.fury.io/rb/percy-selenium)\n![Test](https://github.com/percy/percy-selenium-ruby/workflows/Test/badge.svg)\n\n[Percy](https://percy.io) visual testing for Ruby Selenium.\n\n## Installation\n\nnpm install `@percy/cli`:\n\n```sh-session\n$ npm install --save-dev @percy/cli\n```\n\ngem install Percy selenium package:\n\n```ssh-session\n$ gem install percy-selenium\n```\n\n## Usage\n\nThis is an example test using the `Percy.snapshot` method.\n\n``` ruby\nrequire 'percy'\n\ndriver = Selenium::WebDriver.for :firefox\ndriver.navigate.to \"https://example.com\"\n\n# Take a snapshot\nPercy.snapshot(driver, 'homepage')\n\ndriver.quit\n```\n\nRunning the test above normally will result in the following log:\n\n```sh-session\n[percy] Percy is not running, disabling snapshots\n```\n\nWhen running with [`percy\nexec`](https://github.com/percy/cli/tree/master/packages/cli-exec#percy-exec), and your project's\n`PERCY_TOKEN`, a new Percy build will be created and snapshots will be uploaded to your project.\n\n```sh-session\n$ export PERCY_TOKEN=[your-project-token]\n$ percy exec -- [ruby test command]\n[percy] Percy has started!\n[percy] Created build #1: https://percy.io/[your-project]\n[percy] Snapshot taken \"Ruby example\"\n[percy] Stopping percy...\n[percy] Finalized build #1: https://percy.io/[your-project]\n[percy] Done!\n```\n\n## Configuration\n\n`Percy.snapshot(driver, name[, options])`\n\n- `driver` (**required**) - A selenium-webdriver driver instance\n- `name` (**required**) - The snapshot name; must be unique to each snapshot\n- `options` - [See per-snapshot configuration options](https://www.browserstack.com/docs/percy/take-percy-snapshots/overview#per-snapshot-configuration)\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercy%2Fpercy-selenium-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercy%2Fpercy-selenium-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercy%2Fpercy-selenium-ruby/lists"}