<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,6 +12,7 @@ CHANGED: Due to a reorganization, if you're currently requiring &quot;webrat/rspec-ra
 
 * Minor enhancements
 
+  * When a timeout occurs in wait_for, include the HTML from Selenium in the exception
   * Update the Merb support to be based directly on Rack (Simon Rozet)
   * Support multiple select fields (Kieran P)
   * When locating select options, always match against text, not HTML</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -169,7 +169,19 @@ module Webrat
         sleep 0.25
       end
 
-      raise Webrat::TimeoutError.new(message + &quot; (after #{timeout} sec)&quot;)
+      error_message = &quot;#{message} (after #{timeout} sec)&quot;
+
+      if $browser
+        error_message += &lt;&lt;-EOS
+
+
+HTML of the page was:
+
+#{selenium.get_html_source}&quot;
+EOS
+      end
+
+      raise Webrat::TimeoutError.new(error_message)
       true
     end
 </diff>
      <filename>lib/webrat/selenium/selenium_session.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8dacd973aadfcecbc7e86b1450cd966379de2491</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/brynary/webrat/commit/f51b745e89b316f06cecf19afeccc5475419b92e</url>
  <id>f51b745e89b316f06cecf19afeccc5475419b92e</id>
  <committed-date>2009-09-22T12:23:49-07:00</committed-date>
  <authored-date>2009-09-22T12:23:49-07:00</authored-date>
  <message>When a timeout occurs in wait_for, include the HTML from Selenium in the exception</message>
  <tree>94e2e9192806f0bdaa982787a6b851f0249a3b92</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
