def submit(self, name=None):
    selector = 'input[type=submit]'
    if name:
        selector += ('[name=%s]' % name)
    self.selenium.find_element_by_css_selector(selector).click()
def submit(self, name=None):
    selector = 'input[type=submit]'
    if name:
        selector += ('[name=%s]' % name)
    self.selenium.find_element_by_css_selector(selector).click()