Skip to content

Commit

Permalink
Fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Nov 15, 2023
1 parent 589fb05 commit 88b45a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/IsolatedWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ internal override async Task<IJSHandle> AdoptHandleAsync(IJSHandle handle)

var nodeInfo = await Client.SendAsync<DomDescribeNodeResponse>("DOM.describeNode", new DomDescribeNodeRequest
{
ObjectId = ((ElementHandle)handle).RemoteObject.ObjectId,
ObjectId = ((JSHandle)handle).RemoteObject.ObjectId,
}).ConfigureAwait(false);
return await AdoptBackendNodeAsync(nodeInfo.Node.BackendNodeId).ConfigureAwait(false);
}
Expand Down

0 comments on commit 88b45a0

Please sign in to comment.