0

I trying to make the Selenium python click on each link that I got but I just wanna the code click on the next link after the page loads. Could someone help?

The time.sleep() doesn't work because each link has a different time to load.

 for link in range(list_count, links_len):
    links[list_count].click()

  • Please don't use the `for item in range(iterable_count, iterable_len)` pattern. Iterate directly over the iterable: `for link in links: link.click()`. – MattDMo Jan 02 '23 at 22:03

0 Answers0