{"id":13508349,"url":"https://github.com/stuart/elixir-webdriver","last_synced_at":"2026-02-21T01:31:01.228Z","repository":{"id":9476161,"uuid":"11362212","full_name":"stuart/elixir-webdriver","owner":"stuart","description":"WebDriver client for Elixir.","archived":false,"fork":false,"pushed_at":"2020-03-03T16:25:39.000Z","size":14294,"stargazers_count":119,"open_issues_count":10,"forks_count":31,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-02-16T14:25:12.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/stuart.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":null,"security":null,"support":null}},"created_at":"2013-07-12T06:29:28.000Z","updated_at":"2025-05-29T14:42:37.000Z","dependencies_parsed_at":"2022-08-31T18:02:55.276Z","dependency_job_id":null,"html_url":"https://github.com/stuart/elixir-webdriver","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/stuart/elixir-webdriver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuart%2Felixir-webdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuart%2Felixir-webdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuart%2Felixir-webdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuart%2Felixir-webdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuart","download_url":"https://codeload.github.com/stuart/elixir-webdriver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuart%2Felixir-webdriver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29670124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-01T02:00:51.818Z","updated_at":"2026-02-21T01:31:01.203Z","avatar_url":"https://github.com/stuart.png","language":"Elixir","funding_links":[],"categories":["HTTP"],"sub_categories":[],"readme":"# Web Driver for Elixir\n[![Build Status](https://travis-ci.org/stuart/elixir-webdriver.png?branch=master)](https://travis-ci.org/stuart/elixir-webdriver)\n\n[Current Version 0.8.2](https://github.com/stuart/elixir-webdriver/tree/0.7.0)\n\nThis is an implementation of the WebDriver protocol client.\nIt currently supports PhantomJS, FireFox, ChromeDriver and remote webdriver\nservers (e.g. Selenium).\n\nMost of the basic functionality of the WebDriver JSON wire protocol works with\nall three browsers. Notable missing elements are touch events, local storage and\nsession storage.\n\n## Installation\n\nThis library has been set up as a Mix application, so just\nadd this to mix.exs deps:\n\n    {:webdriver, github: \"stuart/elixir-webdriver\"}\n\nor if you do Hex.pm:\n\n    {:webdriver, \"~\u003e0.8.0\"}\n\nand make sure the application block of mix.exs includes:\n    applications: [ :webdriver ]\nor call\n    :application.start :webdriver\nin your code.\n\nGenerate documentation with `mix docs`.\nRun the tests with `mix test`.\nThe tests will check if PhantomJS, ChromeDriver and Firefox are installed and\nonly run the appropriate ones. It uses the\n`:os.find_executable` function to find the appropriate paths so check\nthat if a browser is not found.\n\n##[Documentation](http://hexdocs.pm/webdriver)\n\n## Usage\n\nWhen the application starts it will fire up a supervision tree for\nthe browsers to be run under.\n\nYou can start a browser instance with `WebDriver.start_browser config`\nwhere `config` is a WebDriver.Config record.\n\nCurrently the config is very simple it just consists of two or three fields:\n * :browser - the type of browser to open, one of\n      - :phantomjs\n      - :firefox\n      - :chrome\n      - :remote\n * :name - an atom to refer to the browser in later calls.\n * :root_url - Only used for with the :remote browser. This is the base url for\n web driver calls.\n\nYou can then start up a session on the browser with\n\n    WebDriver.start_session browser_name, session_name\n\nOnce the session is started you can do commands on it, see the edoc documentation\nfor more on specific commands.\n\nAn example session is shown here:\n\n```Elixir\n    iex(1)\u003e config = %WebDriver.Config{name: :browser}\n    %WebDriver.Config{browser: :phantomjs, name: :browser, root_url: \"\"}\n    iex(2)\u003e WebDriver.start_browser config\n    {:ok, #PID\u003c0.302.0\u003e}\n    iex(3)\u003e WebDriver.start_session :browser, :session\n    {:ok, #PID\u003c0.306.0\u003e}\n    iex(4)\u003e WebDriver.Session.url :session\n    \"about:blank\"\n    iex(5)\u003e WebDriver.Session.url :session, \"http://elixir-lang.org\"\n    {:ok,\n     %WebDriver.Protocol.Response{request: %WebDriver.Protocol.Request{body: \"{\\\"url\\\":\\\"http://elixir-lang.org\\\"}\",\n       headers: [\"Content-Type\": \"application/json;charset=UTF-8\",\n        \"Content-Length\": 32], method: :POST,\n       url: \"http://localhost:56946/wd/hub/session/4dc12b20-2121-11e4-ace2-119365bfea27/url\"},\n      session_id: \"4dc12b20-2121-11e4-ace2-119365bfea27\", status: 0, value: [{}]}}\n    iex(6)\u003e element =  WebDriver.Session.element :session, :css, \".news\"\n    %WebDriver.Element{id: \":wdc:1407738793120\", session: :session}\n    iex(7)\u003e WebDriver.Element.text element\n    \"News: Elixir v0.15.0 released\"\n    iex(8)\u003e WebDriver.stop_browser :browser\n    :ok\n```\n\n## Requirements\n\nYou will need one or more of the following installed in the usual place\nfor your OS:\n\n* PhantomJS version 1.9.7: http://phantomjs.org/\nNote that PhantomJS version 2.0 has issues with GhostDriver and may not work.\nSee: https://github.com/detro/ghostdriver/issues/394\n\n* FireFox: Get a recent version, please... https://www.mozilla.org/en-US/firefox/new/\nIf you installed webdriver with hex you will not have the firefox plugin.\nRun `mix webdriver.firefox.install` to get the plugin.\n\n* ChromeDriver version 2.9 or later and Chrome (or Chromium): http://chromedriver.storage.googleapis.com/index.html\n\n* Remote Driver: This driver does not manage starting and stopping the browser for you. To\nuse this you must have a webdriver server such as Selenium or PhantomJS running at a known url.\n\nCurrently I have only tested extensively on OSX, and Ubuntu Linux.\nIt should work on most UNIX like platforms. There is some rudimentary\nWindows support code in here, but I'm pretty sure that it won't work.\n\n## Support\nPlease report any issues you have with using this library in the Github\nissues for the project:\n  https://github.com/stuart/elixir-webdriver/issues\n\n\n## Changelog\n* 2015-12-12\n    - Version 0.8.1\n    - Support for Elixir 1.1.1\n    - Support for Erlang OTP 18\n    - Fix Firefox and Chrome issues with new versions of these browsers.\n\n* 2014-10-23\n    - Version 0.7.0\n    - Added Alert handling\n\n* 2014-10-21\n    - Version 0.6.1\n    - Update deps to new syntax\n\n* 2014-08-18\n    - Version 0.6.0\n    - Changed JSON library to Jazz\n    - Converted responses to be maps rather than Keywords\n    - Use hex.pm dependencies as much as possible\n    - Stability fixes to tests\n    - Documentation updates and cleanup.\n\n* 2014-08-17\n    - Version 0.5.2\n    - Moved webdriver.xpi out of hex accessed path\n    - Added mix task to get the FireFox plugin.\n\n* 2014-08-11\n    - Version 0.5.0\n    - Fixed Firefox Mouse\n    - Updated to support Elixir v0.15.0\n\n* 2014-02-24\n    - Added Remote driver\n    - Added listing of browsers\n    - Added listing of sessions\n    - Added stop_all_browsers function\n\n* 2014-02-14\n    - Update to version 0.3.0\n    - Added non-text key support\n    - Added ChromeDriver support\n\n* 2014-02-09\n    - Update to version 0.2.2.\n    - Fixes Firefox issues with window sizing.\n    - Added mouse support for PhantomJS.\n\n* 2014-02-08\n    - Update to version 0.2.0\n    - Supports Elixir 0.12.3\n    - Latest ibrowse, which fixes a phantomjs issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuart%2Felixir-webdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuart%2Felixir-webdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuart%2Felixir-webdriver/lists"}