Valid point. In my case forms only had an action to identify them. Perhaps
it should be two steps, submit the form with action, and submit the form
with id.


On 26 September 2013 07:35, Nicholas Pilon <notifications@github.com> wrote:

> In lettuce_webdriver/webdriver.py:
>
> > @@ -275,6 +275,24 @@ def input_has_value(step, field_name, value):
> >          assert_equals(text_field.get_attribute('value'), value)
> >
> >
> > +@step(r'I submit the only form')
> > +def submit_the_only_form(step):
> > +    """
> > +    Look for a form on the page and submit it.
> > +    """
> > +    form = world.browser.find_element_by_xpath('//form')
> > +    form.submit()
> > +
> > +
> > +@step(r'I submit the form "([^"]*)"')
>
> Is action URL really the most natural thing to use here? Should this step
> offer fall-backs to finding by id or class, as many of the other form
> control steps do?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/bbangert/lettuce_webdriver/pull/33/files#r6586878>
> .
>