I am trying to automate login to this website. While Python adds username and password, it couldn't click on login button "Inloggen". I do not get any error but it does not click on login button.
here is my code:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome(ChromeDriverManager().install())
url = "https://portal.spryngsms.com/login?redirect=%2F"
username = "cosmos"
password = "12345"
driver.get(url)
driver.get('https://portal.spryngsms.com/login?redirect=%2F')
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH,
"//span[text()='Gebruikersnaam']//following::div[1]//input"))).send_keys("cosmos")
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH,
"//span[text()='Wachtwoord']//following::div[1]//input"))).send_keys("12345")
driver.find_element_by_xpath("//span[text()='Wachtwoord']//following::div[1]//input").click()