{"id":15433754,"url":"https://github.com/yusukeiwaki/capybara-playwright-driver","last_synced_at":"2025-05-15T09:08:45.653Z","repository":{"id":42770226,"uuid":"360541753","full_name":"YusukeIwaki/capybara-playwright-driver","owner":"YusukeIwaki","description":"Playwright driver for Capybara","archived":false,"fork":false,"pushed_at":"2025-04-09T11:58:28.000Z","size":185,"stargazers_count":184,"open_issues_count":9,"forks_count":18,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-15T09:08:39.144Z","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/YusukeIwaki.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-22T14:08:54.000Z","updated_at":"2025-05-03T22:11:49.000Z","dependencies_parsed_at":"2024-01-13T20:37:29.588Z","dependency_job_id":"92f7e5b9-c3cb-4f26-81fa-84ec5f7a0d99","html_url":"https://github.com/YusukeIwaki/capybara-playwright-driver","commit_stats":{"total_commits":133,"total_committers":9,"mean_commits":"14.777777777777779","dds":0.07518796992481203,"last_synced_commit":"62ffa7b428819633dc79953a434b121f8dba052f"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeIwaki%2Fcapybara-playwright-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeIwaki%2Fcapybara-playwright-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeIwaki%2Fcapybara-playwright-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeIwaki%2Fcapybara-playwright-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YusukeIwaki","download_url":"https://codeload.github.com/YusukeIwaki/capybara-playwright-driver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310520,"owners_count":22049470,"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":"2024-10-01T18:35:19.523Z","updated_at":"2025-05-15T09:08:40.645Z","avatar_url":"https://github.com/YusukeIwaki.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/capybara-playwright-driver.svg)](https://badge.fury.io/rb/capybara-playwright-driver)\n\n# 🎭 Playwright driver for Capybara\n\nMake it easy to introduce Playwright into your Rails application.\n\n```ruby\ngem 'capybara-playwright-driver'\n```\n\n**NOTE**: If you want to use Playwright-native features (such as auto-waiting, various type of locators, ...), [consider using playwright-ruby-client directly](https://playwright-ruby-client.vercel.app/docs/article/guides/rails_integration_with_null_driver).\n\n## Examples\n\n```ruby\nrequire 'capybara-playwright-driver'\n\n# setup\nCapybara.register_driver(:playwright) do |app|\n  Capybara::Playwright::Driver.new(app, browser_type: :firefox, headless: false)\nend\nCapybara.default_max_wait_time = 15\nCapybara.default_driver = :playwright\nCapybara.save_path = 'tmp/capybara'\n\n# run\nCapybara.app_host = 'https://github.com'\nvisit '/'\nfirst('div.search-input-container').click\nfill_in('query-builder-test', with: 'Capybara')\n\n## [REMARK] We can use Playwright-native selector and action, instead of Capybara DSL.\n# first('[aria-label=\"Capybara, Search all of GitHub\"]').click\npage.driver.with_playwright_page do |page|\n  page.get_by_label('Capybara, Search all of GitHub').click\nend\n\nall('[data-testid=\"results-list\"] h3').each do |li|\n  #puts \"#{li.all('a').first.text} by Capybara\"\n  puts \"#{li.with_playwright_element_handle { |handle| handle.text_content }} by Playwright\"\nend\n```\n\nRefer the [documentation](https://playwright-ruby-client.vercel.app/docs/article/guides/rails_integration) for more detailed configuration.\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 Capybara::Playwright project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/capybara-playwright/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukeiwaki%2Fcapybara-playwright-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukeiwaki%2Fcapybara-playwright-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukeiwaki%2Fcapybara-playwright-driver/lists"}