diff --git a/lib/playwright/sdk/channel/response.ex b/lib/playwright/sdk/channel/response.ex index 211c4f59..b9ba64d5 100644 --- a/lib/playwright/sdk/channel/response.ex +++ b/lib/playwright/sdk/channel/response.ex @@ -93,6 +93,18 @@ defmodule Playwright.SDK.Channel.Response do values end + defp parse([{:matches, matches}], _catalog) do + matches + end + + defp parse([{:matches, matches}, {:received, _}], _catalog) do + matches + end + + defp parse([{:log, _}, {:matches, matches}, {:received, _}, {:timedOut, true}], _catalog) do + matches + end + defp parse([], _catalog) do nil end