<gh_stars>0
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium. webdriver.support.ui import WebDriverwait
from selenium. webdriver.support import expected_conditions as EC
import time

PATH = "C:Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(PATH)

driver.get("https://techwithtim.net")
print(driver.title)

search = driver.find_element_by_name("s")
search.send_keys("test")
search.send_keys(Keys.RETURN)

try:
  main = WebDriverwait(driver, 18).until(
     EC.presence_of_element_located((By.ID, "main")
                                    )
    articles = main.find_elements_by_tag_name("article")
       for article in articles:
       header - article.find_element_by_class_name("entry-summary")
        print(header.text)
     
finally:
driver.quit()
