Packages
playwrightais
1.32.1-rc
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
Current section
Files
lib/playwright/api_response.ex
defmodule Playwright.APIResponse do
@moduledoc false
use Playwright.ChannelOwner
alias Playwright.APIResponse
@property :fetchUid
@property :headers
@property :status
@property :status_text
@property :url
@spec ok(t()) :: boolean()
def ok(%APIResponse{} = response) do
response.status === 0 || (response.status >= 200 && response.status <= 299)
end
end