Description
Wallaby is a library for browser tests in Elixir web applications. It simulates realistic user interactions, runs each test case concurrently, and manages the browsers for you. Because it manages several browsers, you can test several users interacting with the same page at once. Wallaby needs Elixir 1.17 or newer and OTP 26 or newer, and it requires bash. You add it to your dependencies in mix.exs, configure a driver, and install the browser driver you want to use: chromedriver for Chrome, selenium, or geckodriver for Firefox. For Phoenix applications you enable the endpoint to serve requests during tests and set a base URL in your test helper, so Wallaby knows how to resolve relative paths. If you use Ecto with a database that supports sandbox mode, you can run tests concurrently by adding the Ecto SQL sandbox plug to your endpoint and passing the user agent through connect_info, which lets the database and the browser session share data. A custom sandbox module can share other resources, such as Mox expectations, with the request process. The README also explains how to avoid stale assets during tests, which is a common source of confusion. The project is on GitHub at elixir-wallaby/wallaby, and its official documentation is linked from the README.…
Highlights
- Concurrent browser tests for Elixir apps
- Multi-user tests in one page
- Chrome, Selenium and Firefox drivers
- Phoenix and Ecto sandbox support
- Documentation for asset and setup issues
Ratings & Reviews
No ratings yet
Be the first to rate Wallaby.
People also visit
Ghost Inspector
Easily create automated browser tests for your websites and web apps
Wallaby FAQ
What is Wallaby?
A library for writing concurrent browser tests for Elixir web applications.
What versions does it need?
Elixir 1.17 or newer and OTP 26 or newer. It also requires bash.
Which browsers can it drive?
Chrome with chromedriver, Selenium, and Firefox with geckodriver, according to the setup section.
Can tests run in parallel?
Yes. Each test case runs concurrently, and with Ecto's sandbox the database is shared between the test and the browser.
Does it work with Phoenix?
Yes. You enable Phoenix to serve endpoints in tests and set a base URL in your test helper.
Where is the source?
On GitHub at elixir-wallaby/wallaby.
What are the best Wallaby alternatives?
Popular alternatives to Wallaby include Browser Run, Playwright and Live Debugger. See all Wallaby alternatives











