@patent sun
skill.lssue Uploaded Some Code
I've been trying to program this little thing where it automatically opens up google chrome then goes on youtube and searches for "rocket league". Everything works fine but once i get to the last setp(typing anything into the search box), the code just decides to not do it. Please someone let me know if I've anything wrong.
Attachment: opensup.py
import string
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
if __name__ == "__main__":
driver = webdriver.Chrome()
driver.get("https://www.youtube.com/")
search_input = driver.find_element((By.XPATH, "/html/body/ytd-app/div[1]/div/ytd-masthead/div[3]/div[2]/ytd-searchbox/form/div[1]/div[1]/input"))
search_input.send_keys("Rocket League")
driver.quit()
For safety reasons we do not allow file attachments.