from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
import pyautogui
driver = webdriver.Chrome()
driver.get("https://www.youtube.com/")
time.sleep(1)
search_box = driver.find_element(By.XPATH, "/html/body/ytd-app/div[1]/div/ytd-masthead/div[4]/div[2]/ytd-searchbox/form/div[1]/div[1]/input")
search_box.send_keys("dexStap")
time.sleep(2)
pyautogui.press('enter')
time.sleep(5)