How to Access and Save HTTP Request Responses Generated from .http File in Visual Studio Using WebView2?
I am developing a Visual Studio 2022 extension and need to interact with a WebView2 control that displays HTTP request responses generated from a .http file within Visual Studio. This WebView2 instance is not directly controlled by my extension but is part of another component or dynamically loaded by Visual Studio. I have successfully identified the WebView2 control using UI Automation with AutomationElement, but I’m facing challenges in accessing the CoreWebView2 to retrieve the content of HTTP responses.