A solution has been found! use async/await solve.
private async void button1_Click(object sender, EventArgs e)
{
DevToolsClient devTool = chromiumWebBrowser1.GetBrowser().GetDevToolsClient();
DevToolsMethodResponse resp = await devTool.ExecuteDevToolsMethodAsync("DOM.getDocument");
Console.WriteLine(resp.ResponseAsJsonString);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…