# Chrome webdriver: https://sites.google.com/chromium.org/driver/ from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options options = Options() options.headless = False driver = webdriver.Chrome( service=Service('driver/chromedriver'), options=options ) driver.get('https://www.google.com/') content = driver.find_element(By.CLASS_NAME, 'gLFyf') content.click() content.send_keys('bla bla bla') content.send_keys(Keys.ENTER) import time time.sleep(10000)