📜  selenium webdriver 向下滚动 python 代码示例

📅  最后修改于: 2022-03-11 14:46:03.772000             🧑  作者: Mango

代码示例2
while driver.find_element_by_tag_name('div'):
    driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
    Divs=driver.find_element_by_tag_name('div').text
    if 'End of Results' in Divs:
        print 'end'
        break
    else:
        continue