I have the following code that I am using to log-in to my grocery store online, but I cannot get the send_keys() function to work. Any ideas what I am doing wrong?
Line 34, AttributeError: 'function' object has no attribute 'send_keys'
import time
import selenium
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
from pathlib import Path
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import InvalidArgumentException
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import os
import re
import shutil
import pandas as pd
import pyautogui as gui
options = selenium.webdriver.ChromeOptions()
#options.add_argument('headless')
driver = webdriver.Chrome(driver2, options=options)
driver.get("https://nourish.schnucks.com/web-ext/user/login?redirectUrl=https:%2F%2Fnourish.schnucks.com%2F")
gui.sleep(5)
element = WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.XPATH, '//*[@id="logonId"]'))).click
element.send_keys('email@yahoo.com')