I am working on python selenium with chrome webdriver in window 8. I faced a page that loads data while scrolling using ajax.I tried injecting jquery and the following links do not work for me. Link 1 Link 2 Link 3
Can any one give me a right path to follow.
EDIT-------------
This is my partial code after alecxe's answer
nam = driver.find_element(By.CLASS_NAME ,'_wu')
#get length of review
revcnt = driver.find_element(By.XPATH ,"//span[@class='_Mnc _yz']")
revcnt = int(revcnt.text.replace(" reviews","").strip())
print revcnt
# wait for reviews to appear
wait = WebDriverWait(driver, 10)
wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, "span.review-snippet")))
#reviews=[]
while True:
reviews = driver.find_elements_by_css_selector("div._ju")
if len(reviews)<revcnt:
driver.execute_script("arguments[0].scrollIntoView();", reviews[-1])
else:
driver.quit()
print len(reviews)
But problem in escaping from while loop!
I tried it.