python selenium while 循环

2020-09-17 11:21:00 浏览数 (1)

代码语言:javascript复制
while True:
    try:
        loadmore = browser.find_element_by_xpath('//div[@class="right"]/div[@class="loadMore"]')
        loadmore.click()
    except:
        break

0 人点赞