Skip to content

Commit

Permalink
Fix: return refreshed Page from Browser.new_page/2
Browse files Browse the repository at this point in the history
It's the newly "patched" (co-dependent w/ its related `BrowserContext` that needs to be returned.
  • Loading branch information
coreyti committed Oct 9, 2024
1 parent d9a1313 commit cb922ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/playwright/browser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cb922ce

Please sign in to comment.