Packages

Playwright is an Elixir library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast.

Current section

Files

Jump to
playwrightais lib playwright extra uri.ex
Raw

lib/playwright/extra/uri.ex

defmodule Playwright.Extra.URI do
@moduledoc false
def absolute?(uri) do
uri = URI.parse(uri)
present?(uri.host) && present?(uri.scheme)
end
defp present?(nil), do: false
defp present?(""), do: false
defp present?(_), do: true
end