title: Using CefSharp.Offscreen to retrieve a web page that requires Javascript to render
body: <p>I have what is hopefully a simple task, but it's going to take someone that's versed in CefSharp to solve it.</p>
  
  <p>I have an url that I want to retrieve the HTML from.  The problem is this particular url doesn't actually distribute the page on a GET.  Instead, it pushes a mound of Javascript to the browser, which then executes and produces the actual rendered page.  This means that the usual approaches involving <code>HttpWebRequest</code> and <code>HttpWebResponse</code> aren't going to work.</p>
  
  <p>I've looked at a number of different "headless" options, and the one that I <em>think</em> best meets my needs for a number of reasons is CefSharp.Offscreen.  But I'm at a loss as to how this thing works.  I see that there are several events that can be subscribed to, and some configuration options, but I don't need anything like an embedded browser.</p>
  
  <p>All I really need is a way to do something like this (pseudocode):</p>
  
  <pre><code>string html = CefSharp.Get(url);
  </code></pre>
  
  <p>I don't have a problem subscribing to events, if that's what's needed to wait for the Javascript to execute and produce the rendered page.</p>