2

Using splinter, how can I iterate through a list of links collected using the find feature and click on each one in sequence?

Splinter is finding the links for each element with the name "store" in it using the find feature:

browser.find_link_by_partial_href('/store/')

How can I then pass each index to browser.click to access each link in sequence?

Roger Fan
  • 4,945
  • 31
  • 38
Strick
  • 21
  • 2

1 Answers1

2
links = browser.find_link_by_partial_href('/store/')
for link in links:
    link.click()
Hugo Lopes Tavares
  • 28,528
  • 5
  • 47
  • 45