I need to fix this code. This comes with an error message saying
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="login_username"]"}
(Session info: chrome=92.0.4515.159)
The below is the code
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
# finq credentials
username = "[email protected]"
password = "xxxxxxxxx"
# initialize the Chrome driver
driver = webdriver.Chrome(executable_path=r'C:\Users\snyder\data\chromedriver.exe')
# head to finq login page
driver.get("https://www.finq.com/en/login")
# find username/email field and send the username itself to the input field
driver.find_element_by_id("login_username").send_keys(username)
# find password input field and insert password as well
driver.find_element_by_id("login_password").send_keys(password)
# click login button
driver.find_element_by_name("submit_login").click()