<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -291,6 +291,27 @@ module SeleniumPoetry
     end
   end
   
+  # Is equivalent to Selenium's &lt;tt&gt;submit&lt;/tt&gt;.
+  #
+  # Suppose you have the selector file test/selectors/checkout.yml with this content:
+  #
+  # checkout form:
+  #     //form
+  # 
+  # Using submit_on: 
+  #
+  #   submit_on                   &quot;checkout form&quot;
+  #
+  # This is equivalent to the regular Selenium command:
+  #
+  #   submit                      '//form'
+  #
+  def submit_on(*selector_keys)
+    run_protected do
+      selector_keys.each { |key| submit @selectors[key] }
+    end
+  end
+  
   private
   
   def run_protected</diff>
      <filename>lib/selenium_poetry.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,8 @@ class SeleniumPoetryTest &lt; Test::Unit::TestCase
                 &quot;number of photos&quot;        =&gt; &quot;this.page().findElement('photos').select('a').length;&quot;,
                 &quot;number of addresses&quot;     =&gt; &quot;this.page().findElement('address').length;&quot;,
                 &quot;photos container empty&quot;  =&gt; &quot;this.page().findElement('photos').select('a').length == 0;&quot;, 
-                &quot;photos container full&quot;   =&gt; &quot;this.page().findElement('photos').select('a').length &gt;= 30;&quot; }
+                &quot;photos container full&quot;   =&gt; &quot;this.page().findElement('photos').select('a').length &gt;= 30;&quot;,
+                &quot;checkout form&quot;           =&gt; &quot;//form&quot; }
 
   include SeleniumPoetry
 
@@ -46,7 +47,8 @@ class SeleniumPoetryTest &lt; Test::Unit::TestCase
                                                            &quot;number of photos&quot;         =&gt; &quot;this.page().findElement('photos').select('a').length;&quot;,
                                                            &quot;number of addresses&quot;     =&gt; &quot;this.page().findElement('address').length;&quot;,
                                                            &quot;photos container empty&quot;  =&gt; &quot;this.page().findElement('photos').select('a').length == 0;&quot; , 
-                                                           &quot;photos container full&quot;   =&gt; &quot;this.page().findElement('photos').select('a').length &gt;= 30;&quot; })
+                                                           &quot;photos container full&quot;   =&gt; &quot;this.page().findElement('photos').select('a').length &gt;= 30;&quot;, 
+                                                           &quot;checkout form&quot;           =&gt; &quot;//form&quot; })
     File.expects(:read).with(SELECTORS_DIR + &quot;/contact_form.yml&quot;).returns(contact_file_mock)
     File.expects(:read).with(SELECTORS_DIR + &quot;/homepage.yml&quot;).returns(homepage_file_mock)
     
@@ -318,6 +320,12 @@ class SeleniumPoetryTest &lt; Test::Unit::TestCase
     end
   end
 
+  # submit_on
+  def test_submit_on
+    expects(:submit).with(&quot;//form&quot;)
+    submit_on &quot;checkout form&quot;
+  end
+
   private
   
   def verify_method_when_no_selector_key_is_given(selenium_poetry_method, selenium_original_method)</diff>
      <filename>test/selenium_poetry_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ed6ff7f7fca094bbbd4ac3edcc6ecf35c9049a9b</id>
    </parent>
  </parents>
  <author>
    <name>Vinicius Teles</name>
    <email>vinicius@improveit.com.br</email>
  </author>
  <url>http://github.com/viniciusteles/selenium_poetry/commit/ee741343e593786778d60ecc3276817f420a18be</url>
  <id>ee741343e593786778d60ecc3276817f420a18be</id>
  <committed-date>2008-10-02T10:23:42-07:00</committed-date>
  <authored-date>2008-10-02T10:23:42-07:00</authored-date>
  <message>Added:

* submit_on</message>
  <tree>3cd36cbf4fd62a8ca8fdde0242edadf8dd88a486</tree>
  <committer>
    <name>Vinicius Teles</name>
    <email>vinicius@improveit.com.br</email>
  </committer>
</commit>
