Welcome Guest Search | Active Topics | Sign In | Register

Best way to capture\log DOM\script events, in html i can't edit Options
Optum
Posted: Friday, December 1, 2017 2:43:57 PM
Rank: Newbie
Groups: Member

Joined: 10/9/2017
Posts: 7
I'm trying to determine the best way to capture\log DOM\script events, in html that i can't edit.

We have 3rd party html5 content providers, who's content does not always seem to function correctly. (functions don't execute,
missing click\touch events, etc.,.)

So, i am trying to log events in order to demonstrate that our eo.webbrowser is functioning correctly.

I saw "Collecting Runtime Logs", but that appears to just capture exceptions?

I tried setting command line switches;

EO.WebEngine.Engine.Default.Options.ExtraCommandLineArgs = "--touch-events --allow-file-access-from-files --log-net-log=c:\\temp\\chnet.log --log-level=0 --enable-logging --v=0 --no-sandbox --blink-platform-log-channels";

but that doesn't seem to produce any logs either?

Also dabbled with using WebView.JSInitCode() to inject something, but that seems to get whacked by any injection stuff
the client page may be doing.

Anyone have some ideas how to pull this off?

thx much!
eo_support
Posted: Friday, December 1, 2017 2:57:23 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

There is no direct support for this --- you will need to use WebView.JSInitCode to inject JavaScript code into the page and do it with your JavaScript. Even so it is not recommended for performance reasons. We would recommend you to debug the page on the regular Chrome browser (or use the built-in debug UI for EO.WebBrowser, which is the same as Chrome's Developer Tools) to find out what's wrong with the page instead of trying to capture and logging everything.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.