element = driver.find_element_by_xpath("//button[@role='button']") driver.execute_script("arguments[0].click();", element)