I use this code:
commit = driver.find_element(by=By.XPATH, value="/html/body/div[2]/div/div/div/form/div[1]/div[4]/button")
driver.execute_script("arguments[0].setAttribute('enabled', true)", commit)
But the attribute does not change.
I guess I'm using the .execute_script() function incorrectly.
I can change this attribute manually and it will give the result I want. Shown in screenshots:

How can i change this attribute with Selenium?
P.S. XPATH is correct.