I want to automate a sign-up page. Everything works. But there is a "Next" button and I cannot press it automatically. Can anyone help me?

I want to automate a sign-up page. Everything works. But there is a "Next" button and I cannot press it automatically. Can anyone help me?

To click on the element with text as Weiter you can use either of the following Locator Strategies:
Using xpath:
driver.find_element_by_xpath("//button[@type='submit' and text()='Weiter']").click()
Ideally, to click on the element you need to induce WebDriverWait for the element_to_be_clickable() and you can use either of the following Locator Strategies:
Using XPATH:
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//button[@type='submit' and text()='Weiter']"))).click()
Note: You have to add the following imports :
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC