Skip to content

Commit

Permalink
Fix transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Nov 16, 2023
1 parent 0379af6 commit 4501f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/ElementHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public Task<IJSHandle> QuerySelectorAllHandleAsync(string selector)

var handles = await handle.QuerySelectorAllAsync(selector).ConfigureAwait(false);

var elements = await EvaluateFunctionHandleAsync(
var elements = await handle.EvaluateFunctionHandleAsync(
@"(_, ...elements) => {
return elements;
}",
Expand Down
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/IsolatedWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ internal override async Task<IElementHandle> AdoptBackendNodeAsync(object backen

internal override async Task<IJSHandle> TransferHandleAsync(IJSHandle handle)
{
if ((handle as JSHandle)?.Realm == this)
if ((handle as JSHandle)?.Realm.Client == Client)
{
return handle;
}
Expand Down

0 comments on commit 4501f85

Please sign in to comment.