title: Viewing DOM using CEF
body: <p>I'm in need for help with being able to access and manipulate DOM using CEF.  I've been researching and have found that CEF only provides readability of the DOM with methods such as CefDOMDocument, ViewDOM, etc.  These are to be called only on the render process main thread, however, I'm not well versed in threading and am not sure where to implement methods within the CEF code (which .cpp file and under which class, etc.).  From there, I know CEF doesn't support manipulating the DOM directly but allows this ability through the use of JavaScript.</p>
  
  <p>So my question...</p>
  
  <p>Can someone please provide the information (an example would be extremely helpful) on where/how to access the DOM using CEF?  I have been attempting under this piece of code within cefclient_win.cpp...</p>
  
  <pre><code>CefBrowserHost::CreateBrowser(info, g_handler.get(),
        g_handler-&gt;GetStartupURL(), settings, NULL);
  </code></pre>
  
  <p>But I believe this is part of the browser process and not the render process...</p>
  
  <p>If you were to also know how to then manipulate the DOM with JavaScript (I have found methods such as ExecuteJavaScript() but am facing the same problem with this as I am with viewing the DOM) that would be helpful too, but just an example on helping a beginner like me view the DOM through CEF would help tremendously.</p>