Skip to content

Commit

Permalink
Fix another test
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Apr 15, 2023
1 parent f5b4c9e commit f612658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public async Task ShouldThrowIfElementHandlesAreFromOtherFrames()
{
await FrameUtils.AttachFrameAsync(Page, "frame1", TestConstants.EmptyPage);
var bodyHandle = await Page.FirstChildFrame().QuerySelectorAsync("body");
var exception = await Assert.ThrowsAsync<EvaluationFailedException>(()
var exception = await Assert.ThrowsAnyAsync<PuppeteerException>(()
=> Page.EvaluateFunctionAsync<string>("body => body.innerHTML", bodyHandle));
Assert.Contains("JSHandles can be evaluated only in the context they were created", exception.Message);
}
Expand Down

0 comments on commit f612658

Please sign in to comment.