mechanical-orchard / playwright-elixir

An Elixir library for Playwright web automation
MIT License
119 stars 23 forks source link

Error message for missing browser executables should be friendlier #38

Open coreyti opened 2 years ago

coreyti commented 2 years ago

A trace example:

** (FunctionClauseError) no function clause matching in Playwright.Browser.new_page/2
    (playwright 1.18.0-alpha.1) lib/playwright/browser.ex:153: Playwright.Browser.new_page({:error, %Playwright.Channel.Error{message: "Executable doesn't exist at <redacted>/chrome-mac/Chromium.app/Contents/MacOS/Chromium"}}, %{})
    <redacted>
    (elixir 1.13.2) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
    (elixir 1.13.2) lib/task/supervised.ex:34: Task.Supervised.reply/4
    (stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3