GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - coreyti/playwright-elixir: An Elixir library for Playwright web automation

BranchesTags
Open more actions menu

Latest commit

 

History

588 Commits
588 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.medic
.medic
 
 
bin/dev
bin/dev
 
 
config
config
 
 
lib
lib
 
 
man
man
 
 
priv/static
priv/static
 
 
test
test
 
 
.credo.exs
.credo.exs
 
 
.envrc
.envrc
 
 
.formatter.exs
.formatter.exs
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.tool-versions
.tool-versions
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mix.exs
mix.exs
 
 
mix.lock
mix.lock
 
 

Repository files navigation

Playwright for Elixir

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:

def deps do
  [
    {:playwright, "~> 1.49.1-alpha.2"}
  ]
end

Usage

  • README
  • Getting started
  • API Reference

Example

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

Releases

This project aims to track the release versioning found in Playwright proper.

Contributing

Getting started

  1. Clone the repo
  2. Run bin/dev/doctor and for each problem, either use the suggested remedies or fix it some other way
  3. 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

  1. Update the version in mix.exs a. Search for and update the version anywhere it appears in the repo, such as this README
  2. git tag -a v${version_number} such that the tag look like v1.49.1-alpha.2 or v1.49.1
  3. git push --tags
  4. mix hex.publish

About

An Elixir library for Playwright web automation

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

191 stars

Watchers

18 watching

Forks

38 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.