You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: This package is currently in "preview" (or "alpha"). The features are not yet at parity with other Playwright implementations. Once playwright-elixir is at or near parity with playwright, the version number will be updated to mirror the supported version of playwright.
Overview
Playwright is an Elixir library to automate Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast. See how Playwright is better.
Installation
The package can be installed by adding playwright to your list of dependencies in mix.exs:
defmoduleTest.ExampleTestdouseExUnit.Case,async: trueusePlaywrightTest.Casedescribe"Navigating to playwright.dev"dotest"works",%{browser: browser}dopage=Playwright.Browser.new_page(browser)Playwright.Page.goto(page,"https://playwright.dev")text=Playwright.Page.text_content(page,".navbar__title")asserttext=="Playwright"Playwright.Page.close(page)endendend
Releases
This project aims to track the release versioning found in Playwright proper.
Contributing
Getting started
Clone the repo
Run bin/dev/doctor and for each problem, either use the suggested remedies or fix it some other way
Run bin/dev/test to run the test suite make sure everything is working
Day-to-day
Get latest code: bin/dev/update
Run tests: bin/dev/test
Start server: bin/dev/start
Run tests and push: bin/dev/shipit
Releasing
Update the version in mix.exs
a. Search for and update the version anywhere it appears in the repo, such as this README
git tag -a v${version_number} such that the tag look like v1.49.1-alpha.2 or v1.49.1