def find_field_by_class(browser, attribute):
    """ find an input by its class """
    xpath = "//input[@class='%s']" % attribute
    elems = browser.find_elements_by_xpath(xpath)
    return elems[0] if elems else False