Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 splinter,我如何遍历使用查找功能收集的链接列表并按顺序单击每个链接?
Splinter 正在使用查找功能查找其中名称为“store”的每个元素的链接:
browser.find_link_by_partial_href('/store/')
然后如何将每个索引传递给以browser.click依次访问每个链接?
browser.click
links = browser.find_link_by_partial_href('/store/') for link in links: link.click()