python selenium while 循环

while True:
    try:
        loadmore = browser.find_element_by_xpath('//div[@class="right"]/div[@class="loadMore"]')
        loadmore.click()
    except:
        break

 

posted @ 2019-04-26 10:53  hank-li  阅读(729)  评论(0编辑  收藏  举报