Open maestroant opened 1 year ago
Try it. ResponseReceived
devTools.Network.ResponseReceived += async (sender, e) =>
{
try
{
var responseBody = await devTools.Network.GetResponseBody(
new DevToolsVer.Network.GetResponseBodyCommandSettings { RequestId = e.RequestId });
Console.WriteLine(responseBody.Body);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
};
Thank you! You are a great magician! :)
The task is to send a request and use DevTools to intercept the response. I try like this:
exception: System.InvalidOperationException: "A command response was not received: Network.getResponseBody"
Does anyone know how to get the body of the page???