【发布时间】:2021-04-21 13:46:08
【问题描述】:
【问题讨论】:
标签: python selenium beautifulsoup
【问题讨论】:
标签: python selenium beautifulsoup
i=2
While True:
try:
#some wait
driver.find_element_by_xpath("//a[@class='btn btn-primary spacebutton' and .='{}']".format(str(i+1))).click()
i++
except:
break
只需遍历 a 标签并根据其文本单击它们。
【讨论】: