Hello,
Is it possible to capture the Dev tools console output and display it in my .NET app ?
Thanks
There is nothing specific for it in CefSharp. But as Devtools is implemented in JavaScript it's "just" a matter of injecting some JS and using EvaluateScriptAsync
.
So it's more of an upstream CEF/Chromium question and you have to dig around there to see if there's a sensible API exposed. A few starting points:
WebRequest
might be an alternative depending on what you really want/needFor basic console messages there is of course https://github.com/cefsharp/CefSharp/blob/master/CefSharp/IWebBrowser.cs#L14
Good catch @amaitland :smile: I completely forgot about that one!
Exactly what I need - Thank you!
The DevTools
reference in the initial question was a little misleading. Initially I read the question the same way @jornh did :smile:
@amaitland
For basic console messages there is of course https://github.com/cefsharp/CefSharp/blob/master/CefSharp/IWebBrowser.cs#L14
Awesome. I was looking for this all over the internet full day.
Most helpful comment
For basic console messages there is of course https://github.com/cefsharp/CefSharp/blob/master/CefSharp/IWebBrowser.cs#L14