def submit(buttonName = nil)
        if (buttonName.nil?) then
          buttons.each { |button|
            next if button.type != 'submit'
            button.click
            return
          }
        else
          click_button_with_name(buttonName)
        end
      end
def submit(buttonName = nil)
        if (buttonName.nil?) then
          buttons.each { |button|
            next if button.type != 'submit'
            button.click
            return
          }
        else
          click_button_with_name(buttonName)
        end
      end
submit first submit button