I am trying to type in the search bar as seen in the picture in Sprouts. I've tried many different iterations but cannot type in the search bar. What am i doing wrong?
Code:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
options = webdriver.ChromeOptions()
website = webdriver.Chrome(executable_path='/Users/myPath/chromedriver',options = options)
sprouts = {"url" : "https://shop.sprouts.com/"}
website.get(sprouts['url'])
search_bar = website.find_element(By.CSS_SELECTOR,"css-4hd4ug")
search_bar.send_keys("bananas")
search_bar.send_keys(Keys.RETURN)