{"id":13846970,"url":"https://github.com/bernerdschaefer/akephalos","last_synced_at":"2025-04-12T23:33:35.208Z","repository":{"id":56842338,"uuid":"644997","full_name":"bernerdschaefer/akephalos","owner":"bernerdschaefer","description":"Headless HTMLUnit powered browser for Capybara","archived":false,"fork":false,"pushed_at":"2011-02-08T11:07:03.000Z","size":29723,"stargazers_count":336,"open_issues_count":34,"forks_count":47,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T02:10:06.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"bernerdschaefer.github.com/akephalos","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/bernerdschaefer.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":"2010-05-03T19:37:36.000Z","updated_at":"2024-10-19T18:24:33.000Z","dependencies_parsed_at":"2022-08-20T18:20:41.255Z","dependency_job_id":null,"html_url":"https://github.com/bernerdschaefer/akephalos","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernerdschaefer%2Fakephalos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernerdschaefer%2Fakephalos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernerdschaefer%2Fakephalos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernerdschaefer%2Fakephalos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernerdschaefer","download_url":"https://codeload.github.com/bernerdschaefer/akephalos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647259,"owners_count":21139081,"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-08-04T18:00:51.475Z","updated_at":"2025-04-12T23:33:35.177Z","avatar_url":"https://github.com/bernerdschaefer.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Akephalos\nAkephalos is a full-stack headless browser for integration testing with\nCapybara. It is built on top of [HtmlUnit](http://htmlunit.sourceforge.net),\na GUI-less browser for the Java platform, but can be run on both JRuby and\nMRI with no need for JRuby to be installed on the system.\n\n## Installation\n\n    gem install akephalos\n\n## Setup\n\nConfiguring akephalos is as simple as requiring it and setting Capybara's\njavascript driver:\n\n    require 'akephalos'\n    Capybara.javascript_driver = :akephalos\n\n## Basic Usage\n\nAkephalos provides a driver for Capybara, so using Akephalos is no\ndifferent than using Selenium or Rack::Test. For a full usage guide, check\nout Capybara's DSL [documentation](http://github.com/jnicklas/capybara). It\nmakes no assumptions about the testing framework being used, and works with\nRSpec, Cucumber, and Test::Unit.\n\nHere's some sample RSpec code:\n\n    describe \"Home Page\" do\n      before { visit \"/\" }\n      context \"searching\" do\n        before do\n          fill_in \"Search\", :with =\u003e \"akephalos\"\n          click_button \"Go\"\n        end\n        it \"returns results\" { page.should have_css(\"#results\") }\n        it \"includes the search term\" { page.should have_content(\"akephalos\") }\n      end\n    end\n\n## Configuration\n\nThere are now a few configuration options available through Capybara's new\n`register_driver` API.\n\n### Using a different browser\n\nHtmlUnit supports a few browser implementations, and you can choose which\nbrowser you would like to use through Akephalos. By default, Akephalos uses\nFirefox 3.6.\n\n    Capybara.register_driver :akephalos do |app|\n      # available options:\n      #   :ie6, :ie7, :ie8, :firefox_3, :firefox_3_6\n      Capybara::Driver::Akephalos.new(app, :browser =\u003e :ie8)\n    end\n\n### Ignoring javascript errors\n\nBy default HtmlUnit (and Akephalos) will raise an exception when an error\nis encountered in javascript files. This is generally desireable, except\nthat certain libraries aren't supported by HtmlUnit. If possible, it's\nbest to keep the default behavior, and use Filters (see below) to mock\noffending libraries. If needed, however, you can configure Akephalos to\nignore javascript errors.\n\n    Capybara.register_driver :akephalos do |app|\n      Capybara::Driver::Akephalos.new(app, :validate_scripts =\u003e false)\n    end\n\n## More\n\n* [bin/akephalos](http://bernerdschaefer.github.com/akephalos/akephalos-bin.html)\n  allows you to start an interactive shell or DRb server, as well as perform\n  other maintenance features.\n\n* [Filters](http://bernerdschaefer.github.com/akephalos/filters.html) allows\n  you to declare mock responses for external resources and services requested\n  by the browser.\n\n## Resources\n\n* [API Documentation](http://bernerdschaefer.github.com/akephalos/api)\n* [Source code](http://github.com/bernerdschaefer/akephalos) and\n  [issues](http://github.com/bernerdschaefer/akephalos/issues) are hosted on\n  github.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernerdschaefer%2Fakephalos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernerdschaefer%2Fakephalos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernerdschaefer%2Fakephalos/lists"}