<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -41,6 +41,10 @@ module Steam
         @page.executeJavaScript(javascript)
       end
 
+      def current_url
+        page.getWebResponse.getRequestSettings.getUrl.toString
+      end
+
       protected
 
         def respond!</diff>
      <filename>lib/steam/browser/html_unit.rb</filename>
    </modified>
    <modified>
      <diff>@@ -202,6 +202,17 @@ class HtmlUnitTest &lt; Test::Unit::TestCase
     end
   end
 
+  def test_current_url
+    perform :get, 'http://localhost:3000/', html(:field)
+    @mock.mock :get, 'http://localhost:3000/form?field=field', 'FIELD'
+
+    assert_equal 'http://localhost:3000/', @browser.current_url
+
+    @browser.fill_in('Label for field', :with =&gt; 'field')
+    @browser.submit_form('form')
+    assert_equal 'http://localhost:3000/form?field=field', @browser.current_url
+  end
+
   def test_drag_and_drop
     perform :get, 'http://localhost:3000/', html(:jquery, :jquery_ui, :drag)
 </diff>
      <filename>test/browser/html_unit_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ad3c57fbe5cf21208609c706a4c1b4308a8db1c8</id>
    </parent>
  </parents>
  <author>
    <name>Clemens Kofler</name>
    <email>clemens@railway.at</email>
  </author>
  <url>http://github.com/svenfuchs/steam/commit/1bb7a9162cb032f24dd6f103b02089f588c8027b</url>
  <id>1bb7a9162cb032f24dd6f103b02089f588c8027b</id>
  <committed-date>2009-11-09T06:48:55-08:00</committed-date>
  <authored-date>2009-11-09T06:48:55-08:00</authored-date>
  <message>Support for current_url.</message>
  <tree>32985aed37cd043a7380a3e97a5959d73f41aa31</tree>
  <committer>
    <name>Clemens Kofler</name>
    <email>clemens@railway.at</email>
  </committer>
</commit>
