title: ruby watir to get html of a page
body: <p>I have looked through the examples on these pages  </p>
  
  <p><a href="http://watir.com/examples/" rel="noreferrer">http://watir.com/examples/</a>
  <a href="http://wiki.openqa.org/display/WTR/Examples" rel="noreferrer">http://wiki.openqa.org/display/WTR/Examples</a></p>
  
  <p>I still don't see a simple example of getting html of a page.</p>
  
  <pre><code>browser = Watir::Browser.new
  browser.goto 'mysite.com'
  </code></pre>
  
  <p>I have tried </p>
  
  <pre><code>puts browser.text
  </code></pre>
  
  <p>It seems not working.</p>
  
  <p>Thanks</p>