-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture Devtools Console output #1130
Comments
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 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:
|
For basic console messages there is of course https://github.com/cefsharp/CefSharp/blob/master/CefSharp/IWebBrowser.cs#L14 |
Good catch @amaitland 😄 I completely forgot about that one! |
Exactly what I need - Thank you! |
The |
Awesome. I was looking for this all over the internet full day. |
browser.ConsoleMessage += (s, e) =>
{
Logger.Debug("chrome_console", $"{e.Message}\t{e.Source}");
}; |
Hello,
Is it possible to capture the Dev tools console output and display it in my .NET app ?
Thanks
The text was updated successfully, but these errors were encountered: