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
.
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.
The package can be installed by adding playwright
to your list of dependencies in mix.exs
:
def deps do
[
{:playwright, "~> 1.44.0-alpha.4"}
]
end
defmodule Test.ExampleTest do
use ExUnit.Case, async: true
use PlaywrightTest.Case
describe "Navigating to playwright.dev" do
test "works", %{browser: browser} do
page = Playwright.Browser.new_page(browser)
Playwright.Page.goto(page, "https://playwright.dev")
text = Playwright.Page.text_content(page, ".navbar__title")
assert text == "Playwright"
Playwright.Page.close(page)
end
end
end
This project aims to track the release versioning found in Playwright proper.
bin/dev/doctor
and for each problem, either use the suggested remedies or fix it some other waybin/dev/test
to run the test suite make sure everything is workingbin/dev/update
bin/dev/test
bin/dev/start
bin/dev/shipit
mix.exs
a. Search for and update the version anywhere it appears in the repo, such as this READMEgit tag -a v${version_number}
such that the tag look like v1.44.0-alpha.3
or v1.44.0
git push --tags
mix hex.publish