How can I execute JavaScript and get its result in DCEF3? I would appreciate if someone could write a simple example of how this can be done.
I can execute JavaScript with the code below, but it doesn't provide the result.
Browser.MainFrame.ExecuteJavaScript('app.doit(''foo'')', '', 0);
Here is my workaroud : use 'console.log()' JS command. The idea is to run the desired JS code and log the result to the console ; after this, you can intercept the console message and get the result.
Example :
It's not the ideal but worked for me.