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/channel/session_id.ex
defmodule Playwright.Channel.SessionID do
@moduledoc false
use Agent
def start_link(_arg) do
Agent.start_link(fn -> 0 end, name: __MODULE__)
end
def next do
Agent.get_and_update(__MODULE__, fn state -> {state + 1, state + 1} end)
end
end