test_button4 = driver.find_elements_by_class_name('test_button4')
submit_element = [x for x in test_button4 if x.get_attribute('value') ==
    'Update']
if len(submit_element):
    pass
Selenium / Python - Selecting via css selector