Skip to content

Commit

Permalink
Update worker.ex w/ placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyti committed May 25, 2024
1 parent 1796dbc commit 5f10ddd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/playwright/worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ defmodule Playwright.Worker do
"""
use Playwright.ChannelOwner

# @spec evaluate(Worker.t(), function() | binary(), EvaluationArgument.t()) :: Serializable.t()
# def evaluate(worker, page_function, arg \\ nil)

# @spec evaluate_handle(Worker.t(), function() | binary(), EvaluationArgument.t()) :: JSHandle.t()
# def evaluate_handle(worker, page_function, arg \\ nil)

# @spec expect_event(t(), binary(), function(), options()) :: map()
# def expect_event(worker, event, predicate \\ nil, options \\ %{})
# ...delegate wait_for_event -> expect_event

# on(...):
# - close
# @spec on(t(), binary(), function()) :: nil
# def on(worker, event, callback)

# @spec url(Worker.t()) :: binary()
# def url(worker)
end

0 comments on commit 5f10ddd

Please sign in to comment.