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 websocket.ex
Raw

lib/playwright/websocket.ex

defmodule Playwright.WebSocket do
@moduledoc """
...
"""
use Playwright.ChannelOwner
@property :is_closed
@property :url
# ---
# @spec expect_event(t(), binary(), function(), options()) :: map()
# def expect_event(web_socket, event, predicate \\ nil, options \\ %{})
# ...delegate wait_for_event -> expect_event
# @spec on(t(), binary(), function()) :: nil
# def on(web_socket, event, callback)
# ---
end