From cb922ce87fe3b83d11b62e87c1d4f028fdf529ba Mon Sep 17 00:00:00 2001 From: Corey Innis Date: Tue, 8 Oct 2024 20:19:46 -0700 Subject: [PATCH] Fix: return refreshed `Page` from `Browser.new_page/2` It's the newly "patched" (co-dependent w/ its related `BrowserContext` that needs to be returned. --- lib/playwright/browser.ex | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/playwright/browser.ex b/lib/playwright/browser.ex index 35e7df0..0367ca2 100644 --- a/lib/playwright/browser.ex +++ b/lib/playwright/browser.ex @@ -722,7 +722,6 @@ defmodule Playwright.Browser do # establish co-dependency Channel.patch(session, {:guid, context.guid}, %{owner_page: page}) Channel.patch(session, {:guid, page.guid}, %{owned_context: context}) - page end end