Skip to content

Instantly share code, notes, and snippets.

@kimihito
Created July 10, 2023 12:44
Show Gist options
  • Save kimihito/8abf207da30502d2c89db3ce259c04af to your computer and use it in GitHub Desktop.
Save kimihito/8abf207da30502d2c89db3ce259c04af to your computer and use it in GitHub Desktop.
Mix.install([{:playwright, "~> 1.18.0-alpha.1"}])
Playwright.CLI.install_deps()
Playwright.CLI.install()
browser = Playwright.launch()
page = browser |> Playwright.Browser.new_page()
page |> Playwright.Page.goto("https://google.com")
page |> Playwright.Page.title() |> IO.puts()
browser |> Playwright.Browser.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment