Selenium Python Seleccione Elementos Datos Atribido

elements = driver.find_elements_by_class_name('bar')
for element in elements:
    print element.text
    print element.get_attribute('data-value')
Dima Drop