title: How to get HTML from the browser in SWT after setting the URL
body: <p>I have tried using</p>
  
  <pre><code>String html = browser.getText();
  </code></pre>
  
  <p>But I am getting this error </p>
  
  <blockquote>
    <p>Exception in thread "main" org.eclipse.swt.SWTException: Failed to change Variant type result = -2147352571
        at org.eclipse.swt.ole.win32.OLE.error(Unknown Source)
        at org.eclipse.swt.ole.win32.Variant.getAutomation(Unknown Source)
        at org.eclipse.swt.browser.IE.getText(Unknown Source)
        at org.eclipse.swt.browser.Browser.getText(Unknown Source)</p>
  </blockquote>
  
  <p>I have read this bug report: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=433526" rel="nofollow">https://bugs.eclipse.org/bugs/show_bug.cgi?id=433526</a></p>
  
  <p>Could anyone help me with other way to get HTML out of the browser?</p>