Selenium / Python – Selecting via css selector

driver.find_element_by_css_selector(".test_button4[value="Update"]").click()

EDIT:
Because the selector needs a class, id, or tagname, but value.Update by itself is none of these.

.test_button4 provides a classname to match against, and from there, [value="Update"] specifies which particular match(es) to select.

Leave a Comment