Q:

Capture html elements with selenium after clicking the search button

After clicking on the search button on the Homepage the giving results are shown on same page and the url is not changing at all. On the result page i am not able to find any html-elements.  
this is what i try:  
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys    

# webdriver
browser = webdriver.Chrome("C:/ChromeDriver/chromedriver.exe")
browser.get("http://homepage")

# click search
search_button = browser.find_element_by_name("searchButtonLabel")
search_button.click()

# click the element 
hit_list = browser.find_element_by_xpath("//*[@id=\"keresgrid\"]/div[2]/table/tbody/tr[2]/td[5]/a/div").click()  

and this is my error message:
no such element: Unable to locate element:  
How can i read again the newpage(results) and find the html-elements? 
thank you!

A:

I think what you need is Wait.
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

hit_list = WebDriverWait(driver, 10).until(
    EC.visibility_of_element_located((By.XPATH, "//*[@id='keresgrid']/div[2]/table/tbody/tr[2]/td[5]/a/div"))
)
hit_list.click()

